I've used subfloat to include subfigures, with their relevant labels but with empty captions. what I'm going to do is to reference these figures with \subref in the main caption of the figure. But what I get is only ?? signs in the caption [main caption]. I can't figure out what's the problem. this is what I have:
\begin{figure}
\centering
\subfloat[][]
{
\includegraphics[scale=0.55]{signal}
\label{signal_model}
}
\subfloat[][]
{
\includegraphics[scale=0.55]{amplitude}
\label{amplitude_mod}
}
\caption{phase noise variability: \subref{signal model} some text \subref{amplitude_mod} some other text}
\end{figure}
subcaption
package (and not thesubfig
one) please use\subcaptionbox
instead of\subfloat
and put the\label
inside the caption text, not inside the sub-figure body.refcheck
can also mess with\subref
. Was getting??sub@<ref>
instead of(a)
, and it showed properly as(a)
when I turned off refcheck. Note that\protect\subref
whilerefcheck
was on didn't fix it.