I have a figure with many subplots created and labeled in Matlab. In the text of the tex file, I need to refer to each subplot separately e.g. 1a) 1b)..., nevertheless I can obviously link only the entire figure e.g. 1 in the text. How can I include the letters in the link? So far I have only changed the color of the letters manually, but I would also like to have the link if I go with the cursor above the letter.
For example I have a figure with three subplots and I need to discuss the first one:
\documentclass[%
reprint,
superscriptaddress,
amsmath,amssymb,
aps,
prb,
]{revtex4-2}
\hypersetup{
colorlinks = true,
citecolor = blue,
linkcolor = blue}
\begin{document}
\begin{figure}[t]
\centering
\includegraphics[width=1\textwidth]{img.eps}
\caption{(a) subplot1 (b) subplot2 (c) subplot3}
\label{fig:figure}
\end{figure}
Figure \ref{fig:figure}{\color{blue}{(a)}
\end{document}
Thank you!
\documentclass{...}
and ending with\end{document}
.subcaption
package has a\phantomsubcaption
command that can be used for such things. See an example at tex.stackexchange.com/a/497598draft
option if your problem includes images.