[Tex/LaTex] Font size of figures and table captions

captionsfloatsfontsize

I need my figure and table captions to be of font size 8pt, how do I achieve this?

Best Answer

If you are using one of the standard classes (book, report, article) or a class compatible with the caption package, then you can declare your default font specification using \DeclareCaptionFont and then use this new declaration in \captionsetup:

\documentclass{article}
\usepackage{caption}

\DeclareCaptionFont{mysize}{\fontsize{8}{9.6}\selectfont}
\captionsetup{font=mysize}

\begin{document}

\begin{figure}
\centering
A
\caption{The caption of the figure will be typeset using \texttt{8pt} font size}
\end{figure}
Regular text.

\end{document}

The result:

enter image description here