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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

New <strong>de</strong>scription<br />

in<strong>de</strong>ntion=<br />

this object is a ‘Figure’ or ‘Table’ and what number is associated <strong>with</strong> it, <strong>the</strong> <strong>caption</strong> text<br />

itself, which is normally a short <strong>de</strong>scription of contents, and <strong>the</strong> <strong>caption</strong> separator which<br />

separates <strong>the</strong> text from <strong>the</strong> label.<br />

The <strong>caption</strong> format <strong>de</strong>termines how this information will be presented; it is specified <strong>with</strong><br />

<strong>the</strong> option<br />

format=〈format name〉 ,<br />

having <strong>the</strong> name of <strong>the</strong> <strong>caption</strong> format as its argument.<br />

There are two standard <strong>caption</strong> formats:<br />

plain Typesets <strong>the</strong> <strong><strong>caption</strong>s</strong> as a normal paragraph. (This is <strong>the</strong> <strong>de</strong>fault bev3.0h<br />

haviour, it is adapted from <strong>the</strong> standard LATEX document classes.)<br />

hang In<strong>de</strong>nts <strong>the</strong> <strong>caption</strong> text, so it will ‘hang’ un<strong>de</strong>r <strong>the</strong> first line of <strong>the</strong> text.<br />

... Own formats can be <strong>de</strong>fined using \DeclareCaptionFormat.<br />

(See section 5: “Do it yourself”)<br />

An example: Specifying <strong>the</strong> option<br />

format=hang<br />

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

Figure 3: White sand beaches. The pink smoothness of <strong>the</strong> conch shell. A sea abundant<br />

<strong>with</strong> possibilities. Duty-free shops filled <strong>with</strong> Europe’s finest gifts and perfumes.<br />

Play your favorite game of golf amidst <strong>the</strong> tropical greens on one of <strong>the</strong><br />

many championship courses.<br />

For both formats (plain and hang) you can setup an extra in<strong>de</strong>ntion starting at <strong>the</strong><br />

second line of <strong>the</strong> <strong>caption</strong>. You do this <strong>with</strong> <strong>the</strong> option<br />

in<strong>de</strong>ntion=〈amount〉.<br />

Two examples:<br />

format=plain,in<strong>de</strong>ntion=.5cm<br />

Figure 4: White sand beaches. The pink smoothness of <strong>the</strong> conch shell. A sea abundant<br />

<strong>with</strong> possibilities. Duty-free shops filled <strong>with</strong> Europe’s finest gifts and perfumes. Play<br />

your favorite game of golf amidst <strong>the</strong> tropical greens on one of <strong>the</strong> many championship<br />

courses.<br />

format=hang,in<strong>de</strong>ntion=-0.5cm<br />

Figure 5: White sand beaches. The pink smoothness of <strong>the</strong> conch shell. A sea abundant<br />

<strong>with</strong> possibilities. Duty-free shops filled <strong>with</strong> Europe’s finest gifts and perfumes.<br />

Play your favorite game of golf amidst <strong>the</strong> tropical greens on one of <strong>the</strong> many<br />

championship courses.<br />

4

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

Saved successfully!

Ooh no, something went wrong!