Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
    
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. –  Steven B. Segletes Mar 9 '13 at 3:07

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.