I'm using algorithm package for writing algorithms. I'm using following code for generating a loop
\begin{algorithm}
\caption{My algorithm}\label{alg:myalgo}
\begin{algorithmic}[1]
\Procedure{Algo1}{}
\For{\texttt{<condition>}}
\State \texttt{<my stuff>}
\EndFor
\EndProcedure
\end{algorithmic}
\end{algorithm}
This code on compilation gives the output

The problem with this output is it is not showing the end for after line 3 as shown in this example.
Could someone tell me what is the problem with the above code.



algpseudocodewithout end block text – Werner Dec 09 '14 at 06:39