[OS X TeX] Problem with refs to label in algorithmic

Christopher Brewster C.Brewster at dcs.shef.ac.uk
Sun Apr 13 12:08:59 EDT 2008


I am using the 'algorithm' and 'algorithmic' styles to lay out an  
algorithm.
Using \ref{} to a label inside them produces an error:
"Latex Error: ./Chapters/chap10.tex:187 Undefined control sequence."

*However*, the references are correctly typeset.
Any suggestions?

Thanks,
Christopher


Example usage is this:
------
\begin{algorithm}[t]
	\caption{The Abraxas Algorithm}\label{al:abraxas}
	\begin{algorithmic}[1]
		\Procedure{Abraxas}{$C_i, P_i, T_i$}
....
		\State Increment iteration index:  $\{C_i, P_i, T_i| i = i + 1\}$
		\Until{\textbf{StoppingCriterion}}
		\EndProcedure
	\end{algorithmic}	
\end{algorithm}

We can describe the procedure presented in Algorithm \ref{al:abraxas}  
as follows: .....



*****************************************************
Department of Computer Science, University of Sheffield
Regent Court, 211 Portobello Street
Sheffield   S1 4DP   UNITED KINGDOM




More information about the MacOSX-TeX mailing list