[Tex/LaTex] Latex. Figure reference doesn’t work


Any idea why the figure referencing of the following code doesn't work ?


{\caption{A test figure with its caption side by side}\label{fig:tri}}

"See figure \ref{tri}" is compiled as "See figure ??"

Best Answer

You should simply use "See figure \ref{fig:tri}", the call to the reference \ref{} should use the same content as the label itself \label{}.

Related Question