I want to create a figure with 3 subfigures in which the caption of each of these subfigures includes a citation with a page reference. If I try to do this via the code below, I get an error.
Apparently, the problem is caused by the citing of the pages because a reference without pages (e.g., \citet{author1}) does not return an error.
Can anyone help me how to solve this?
Thanks!
Peter
\begin{figure}
\subfloat[Caption subfig1 \citet[p.~100]{author1}]{
\includegraphics{img1.pdf}
\label{fig:1}
} \hfill
\centering
\subfloat[Caption subfig2 \citet[p.~200]{author2}]{
\includegraphics{img2.pdf}
\label{fig:2}
} \hfill
\centering
\subfloat[Caption subfig3 \citet[p.~300]{author3}]{
\includegraphics{img3.pdf}
\label{fig:3}
}
\centering
\caption{General caption \label{fig}}
\end{figure}