[Tex/LaTex] Textsize in subfloat figure

fontsizesize;subfloats

Is there any way of controlling the size of the subcaptions in a subfloat?

I've used:

\begin{figure}
\centering
\subfloat[Subcaption 1]{\label{fig:Pic_a} \includegraphics[width = 2.9cm]{Picture1}} \quad
\subfloat[Subcaption 2]{\label{fig:Pic_b} \includegraphics[width = 2.9cm]{Picture2}}
\end{figure}

So I've like to make the Subcaption1 and Subcaption2 smaller in textsize.

Thank you!

Best Answer

As given in table 3 of the subfig manual, use e.g.

\usepackage[
 font=footnotesize
 ]{subfig}

Alternatively, scriptsize or small. You can also set the font of the number and caption separately, with labelfont=... and/or textfont=....

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage[
 font=footnotesize % or small or scriptsize
 ]{subfig}
\begin{document}
\begin{figure}
\centering
\subfloat[Subcaption 1]{\label{fig:Pic_a} \includegraphics[width = 2.9cm]{Picture1}} \quad
\subfloat[Subcaption 2]{\label{fig:Pic_b} \includegraphics[width = 2.9cm]{Picture2}}
\end{figure}
\end{document}