I wonder if you can help me.
I'm trying to use \textcolor in the caption of a subfigure, but it keeps throwing an error.
!Argument of \@subfloat has an extra }.
Any way to make text appeared coloured in the subfigure caption would be of great help.
I have \usepackage{color} together with
Code: Select all
\begin{figure}
\subfigure[Observations \textcolor{red}{$\mathbf{y}_j$}.]{
\includegraphics[scale=0.8]{obs1.png}
}
\subfigure[An estimate \textcolor{blue}{$\mathbf{X}_b$}.]{
\includegraphics[scale=0.8]{background1.png}
}
\end{figure}
I don't know what I should be using to have coloured text in the caption of a subfigure.
Many thanks for any help.