[Tex/LaTex] Why, using \ref{fig:customers} to show the label, is the word “Figure” missing

cross-referencingfloats

I have a figure to be referenced as below. Why, using \ref{fig:customers} to show the label, is the word "Figure" missing? Only the figure number is shown: "3.2". How can I change it to "Figure 3.2"?

Potential customers are listed in the `\ref{fig:customers}` below.

\begin{figure}[htbp!]
\centering
\includegraphics[scale=0.8]{needs_customers.png}
%[clip=true]
\caption{Potential Customers, Requirement and Constraints}
\label{fig:customers}
\end{figure}

Best Answer

There are packages that do that. One of them is hyperref:

\documentclass{scrartcl}

\usepackage{graphicx}
\usepackage{hyperref}

\begin{document}
\begin{figure}
\centering
\includegraphics[width=0.2\textwidth]{example-image}
\caption{An example}
\label{fig:example}
\end{figure}

Please see \autoref{fig:example}.
\end{document}

results

Another option is the cleveref-package:

\documentclass{scrartcl}

\usepackage{graphicx}
\usepackage{cleveref}

\begin{document}
\begin{figure}
\centering
\includegraphics[width=0.2\textwidth]{example-image}
\caption{An example}
\label{fig:example}
\end{figure}

Please see \cref{fig:example}
\end{document}
Related Question