I would like to use subfig while using the autoref package. I have added the line


to my master tex file. The purpose of adding these lines was to see Figure 1(a) instead of Figure 1a each time I reference a subfigure. I wish to see the parenthesis. The problem is if use \autoref{fig:ABC} instead of seeing Figure 1(a) I see Figure 1a. However if I


You could use \renewcommand\thesubfigure{(\alph{subfigure})}, as shown below.


% subfig setup




\autoref{fig:firstpic} and \autoref{fig:secondpic}


enter image description here

Note that \autoref is from the \hyperref package.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.