If I define a figure, table, code listing or anything similar with a caption and a label, how can I get the item name together with the reference label?
For example, if I define a figure:
\begin{figure}
\includegraphics{figures/figure.png}
\caption{Some figure.}
\label{figure:some-figure}
\end{figure}
what do I need to do to avoid writing: Figure \ref{figure:some-figure} shows and write \ref{figure:some-figure} shows to produce the following output:
"Figure 1 shows" ?