I am using algorithm2e when I reference an algorithm it shows ?? which links to the correct algorithm, but it should show something like 1.1.
Any suggestions as to how I can fix this?
Here is an mwe:
\documentclass[12pt, a4paper, oneside, english]{Thesis}
\usepackage[boxed, ruled, ruled, algoruled]{./algorithm2e}
\usepackage{babel}
\begin{document}
\ref{alg:Stage1.2} shows the algorithm.
\begin{algorithm}[!htp]
\label{alg:Stage1.2}
\caption{Stage1.2}
\end{algorithm}
\clearpage
\end{document}
\documentclass{...}and ending with\end{document}. – yo' Dec 12 '13 at 14:30\labelafter (or inside)\caption, don't forget to compile twice, and you should be fine :) – yo' Dec 12 '13 at 14:47