2

Below is my Coding

\documentclass{article}

\usepackage[colorlinks]{hyperref}

\begin{document}

To test whether Figure \ref{fig1} a suspicious URL is vulnerable, we utilize the URL to download a representative Figure \ref{fig2}

\begin{figure}
\caption{Sample Figure 1\label{fig1}}
\end{figure}

\begin{figure}
\caption{Sample Figure 2\label{fig2}}
\end{figure}

\end{document}

what i need to achieve is explained below,

\documentclass{article}

\usepackage[colorlinks]{hyperref}

\begin{document}

To test whether \ref{fig1}{Figure 1} a suspicious URL is vulnerable, we utilize the URL to download a representative \ref{fig2}{Figure 2}

\begin{figure}
\caption{Sample Figure 1\label{fig1}}
\end{figure}

\begin{figure}
\caption{Sample Figure 2\label{fig2}}
\end{figure}

\end{document}

In figure citation, I want my custom text to be displayed \ref{fig1}{Figure 1} and i want to use the \ref{fig1} for just linking purpose,

Thanks in Advance, please guide,

user52124
  • 413

1 Answers1

1

As @moewe suggested i have found a solution, thanks to him as well

\documentclass{article}
\usepackage[colorlinks]{hyperref}

\begin{document}

To test whether \hyperref[fig1]{Figure 1} a suspicious URL is vulnerable, we utilize the URL to download a representative \hyperref[fig2]{Figure 2}

\begin{figure}
\caption{Sample Figure 1\label{fig1}}
\end{figure}

\begin{figure}
\caption{Sample Figure 2\label{fig2}}
\end{figure}


\end{document}
user52124
  • 413