15

I wish to set the font size for caption package, how should I do it, now I have this in my preamble

\usepackage[skip=2pt]{caption}
1
  • I don't use the caption package, but if you aren't tied to it, you could consider the boxhandler package that gives extensive control over caption style and placement. Mar 9, 2013 at 3:07

1 Answer 1

25

You can use the font key with one of the values scriptsize, footnotesize, small, normalsize, large or Large. A little example:

\documentclass{article}
\usepackage[skip=2pt,font=scriptsize]{caption}

\begin{document}

\begin{figure}
\caption{A test caption}
\end{figure}
Some regular text

\end{document}

enter image description here

If you want other sizes, you can declare a new format and use \fontsize as in the following (just illustrative) example:

\documentclass{article}
\usepackage[skip=2pt]{caption}

\DeclareCaptionFormat{myformat}{\fontsize{5}{6}\selectfont#1#2#3}
\captionsetup{format=myformat}

\begin{document}

\begin{figure}
\caption{A test caption}
\end{figure}
Some regular text

\end{document}

enter image description here

1
  • Thanks. For some reason normalsize wasn't working for one of my figures, and the \DeclareCaptionFormat variant saved the day! Jan 13, 2016 at 20:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .