[Tex/LaTex] How to change the caption font and size for figures and tables

captionsfontsize

I want to specify the figure caption font size in order to follow a stupid standard at my university. I need the font to be Arial (I am using Helvetica because Arial is not available for LaTeX) 11pt. I have found:

\usepackage[font=md,labelfont=bf]{caption}

I have defined Heveltica as the default font for the whole document, so this constrain is hold. However, I cannot specify the font size. Is there another way to solve this issue?

Best Answer

You can use \DeclareCaptionFont and \fontsize{<size>}{<baselineskip>}\selectfont (\mdseries in the example below applies \selectfont):

\documentclass[12pt]{book}
\usepackage{caption}
\usepackage{mathptmx}
\usepackage[scaled=.90]{helvet}

\DeclareCaptionFont{xipt}{\fontsize{11}{13}\mdseries}
\usepackage[font=xipt,labelfont=bf]{caption}

\begin{document}

Regular text for comparison
\begin{table}
\caption{A test caption for a table}
\end{table}

\begin{figure}
\caption{A test caption for a figure}
\end{figure}

\end{document}

The result:

enter image description here