[Tex/LaTex] Change font size of selected captions

captionsfontsize

Caption font size can be changed globally using

\usepackage[font=small]{caption}

However, suppose I need only one/two captions' fontsize be changed, not all. How can I do that?

Best Answer

You can change caption setup locally with the \captionsetup command:

\documentclass{article}

\usepackage[font=small]{caption}

\begin{document}

\begin{figure}
\caption{First caption}
\end{figure}

\begin{figure}
\captionsetup{font={Large,it}}
\caption{Second caption}
\end{figure}

\begin{figure}
\caption{Third caption}
\end{figure}

\end{document}