Tagged Questions
3
votes
1answer
1k views
LaTeX algorithmic package: Undefined Control Sequence in for-Loop
I'm trying to specify an algorithm in pseudocode in a LaTeX document, but I'm having trouble with the for-Loop. My statement:
\for{$bin=0 to binCount$}
\item blablabla
\endfor
keeps on generating ...
4
votes
2answers
2k views
algorithm package: Comment on “for” loop does not work?
It seems that \COMMENT in the algorithm package is broken. It gives an error when used in a FOR or FORALL line, so the first comment gives a compilation error:
\begin{algorithm}[ht]
\caption{My ...