[Tex/LaTex] Changing the way figure reference appears in LaTeX


How can one make LaTeX insert Figure into \ref calls automatically, i.e. instead of writing:

See data in Figure ~\ref{fig:JobInformationDialog}

simply write:

See data in \ref{fig:jobInformationDialog}

and have LaTeX insert Figure [fignum] when it gets compiled?

Best Answer

A very easy way is provided by the prettyref package:



  \captionof{figure}{This is my caption}

Please see \prettyref{fig:first}.

enter image description here

Related Question