28.03.2013 Views

Typesetting captions with the caption package - Departamento de ...

Typesetting captions with the caption package - Departamento de ...

Typesetting captions with the caption package - Departamento de ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

\<strong><strong>caption</strong>s</strong>etup<br />

is for; it should be used as first command insi<strong>de</strong> <strong>the</strong> floating environment. It prevents <strong>the</strong><br />

increment of <strong>the</strong> relevant counter (usually done by \<strong>caption</strong>) so a figure or table <strong>with</strong> a<br />

\ContinuedFloat in it gets <strong>the</strong> same reference number as <strong>the</strong> figure or table before.<br />

An example:<br />

\begin{table}<br />

\<strong>caption</strong>{A table}<br />

. . .<br />

\end{table}<br />

. . .<br />

\begin{table}\ContinuedFloat<br />

\<strong>caption</strong>{A table (cont.)}<br />

. . .<br />

\end{table}<br />

gives <strong>the</strong> following result:<br />

Table 7: A table<br />

. . .<br />

Table 7: A table (cont.)<br />

We already know <strong>the</strong> \<strong><strong>caption</strong>s</strong>etup command (see section 2: “Using <strong>the</strong> <strong>package</strong>”),<br />

but this time we get enlighten about its optional argument 〈float type〉.<br />

Remember, <strong>the</strong> syntax of this command is<br />

\<strong><strong>caption</strong>s</strong>etup[〈float type〉]{〈options〉} .<br />

If a 〈float type〉 gets specified, all <strong>the</strong> 〈options〉 don’t change anything at this time. Instead<br />

<strong>the</strong>y only get marked for a later use, when a <strong>caption</strong> insi<strong>de</strong> of a floating environment of<br />

<strong>the</strong> particular type 〈float type〉 gets typeset. For example<br />

\<strong><strong>caption</strong>s</strong>etup[figure]{〈options〉}<br />

forces <strong><strong>caption</strong>s</strong> <strong>with</strong>in a figure environment to use <strong>the</strong> given 〈options〉.<br />

Here comes an example to illustrate this:<br />

\<strong><strong>caption</strong>s</strong>etup{font=small}<br />

\<strong><strong>caption</strong>s</strong>etup[figure]{labelfont=bf}<br />

gives <strong><strong>caption</strong>s</strong> like this:<br />

Figure 22: A figure<br />

Table 8: A table<br />

As you see <strong>the</strong> command \<strong><strong>caption</strong>s</strong>etup[figure]{labelfont=bf} only changed<br />

<strong>the</strong> font of <strong>the</strong> figure <strong>caption</strong> labels, not touching all o<strong>the</strong>r ones.<br />

14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!