\usepackage{subcaption}
\begin{figure}[t]
\begin{subfigure}{1\linewidth}
Figure1
\caption{Hello}~\label{fig:TBS}
\end{subfigure}
\begin{subfigure}{1\linewidth}
Figure2
\caption{Hello1}
\end{subfigure}~\label{fig:TBSCompensate}
\caption{BigHello}
\end{figure}
Following is the what appears:
When I use Figure~\ref{fig:TBS}
to refer the figure
It appears Figure 2a
in the pdf,
I wish that it could appear as Figure 2(a)
, is the a way to tweat the formatting of caption for subfigure?
\ref{fig:TBSCompensate}\subref{fig:TBS}
be an option?~
and the\label
command should go immediately after the\caption
command it refers to.