0

This question already has an answer here:

This script:

\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}
See Fig. \ref{fig:exa}
\begin{figure}
  \centering
  \subfloat[example a]{
    \label{fig:exa}
    \includegraphics[width=0.5\textwidth]{example-image-a}
  }
  \subfloat[example b]{
    \label{fig:exb}
    \includegraphics[width=0.5\textwidth]{example-image-b}
  }
\end{figure}
\end{document}

renders output

enter image description here

How can I format the reference to subfloat as "Fig. 1(a)".

marked as duplicate by David Carlisle, leandriis, Community Apr 6 at 21:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.