LaTeX trick: customizing captions

29 January, 2008 - 16:34
Categories:

Captions of floats (figures and tables) in LaTeX are by default typeset the same way as the body text. For better readability it could be appropriate to use a different font, font size or margin for the captions. This is possible with the LaTeX package caption.

For example, with the following addition to the document preamble:

\usepackage[font=sf, labelfont={sf,bf}, margin=1cm]{caption}

captions will look like in this example:

Note the sans serif font of the caption (font=sf), the bold weight of label (labelfont={sf,bf}) and the bigger margin (margin=1cm).

More information in the documentation of the caption package.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • No HTML tags allowed
  • Lines and paragraphs break automatically.

More information about formatting options