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.

\AtBeginCaption<br />

\AtEndCaption<br />

418 \e<strong>de</strong>f\<strong>caption</strong>@tempa{\<strong>the</strong>\prev<strong>de</strong>pth}%<br />

419 \<strong>caption</strong>@Debug{\protect\prev<strong>de</strong>pth=\<strong>caption</strong>@tempa}%<br />

420 % \<strong>caption</strong>@setposition{\ifdim\prev<strong>de</strong>pth>-\p@ b\else t\fi}%<br />

421 \ifdim\prev<strong>de</strong>pth>-\p@<br />

422 \let\<strong>caption</strong>@position\@secondoftwo<br />

423 \else<br />

424 \let\<strong>caption</strong>@position\@firstoftwo<br />

425 \fi<br />

426 \else<br />

427 \<strong>caption</strong>@Debug{no \protect\prev<strong>de</strong>pth}%<br />

428 % \<strong>caption</strong>@setposition{b}%<br />

429 \let\<strong>caption</strong>@position\@secondoftwo<br />

430 \fi}<br />

Hooks<br />

\AtBeginCaption {〈co<strong>de</strong>〉}<br />

\AtEndCaption {〈co<strong>de</strong>〉}<br />

These hooks can be used analogous to \AtBeginDocument and \AtEndDocument.<br />

431 \newcommand\<strong>caption</strong>@beginhook{}<br />

432 \newcommand\<strong>caption</strong>@endhook{}<br />

433 \newcommand\AtBeginCaption{\l@addto@macro\<strong>caption</strong>@beginhook}<br />

434 \newcommand\AtEndCaption{\l@addto@macro\<strong>caption</strong>@endhook}<br />

Miscellaneous options<br />

435 \DeclareCaptionOption{listof}{\<strong>caption</strong>@setbool{lof}{#1}}<br />

436 \DeclareCaptionOption{singlelinecheck}{\<strong>caption</strong>@setbool{slc}{#1}}<br />

437 \DeclareCaptionOption{strut}{\<strong>caption</strong>@setbool{strut}{#1}}<br />

Debug option<br />

438 \DeclareCaptionOption{<strong>de</strong>bug}[1]{%<br />

439 \<strong>caption</strong>@setbool{<strong>de</strong>bug}{#1}%<br />

440 \<strong>caption</strong>@if<strong>de</strong>bug{%<br />

441 \<strong>de</strong>f\<strong>caption</strong>@Debug{\PackageInfo{<strong>caption</strong>3}}%<br />

442 }{%<br />

443 \let\<strong>caption</strong>@Debug\@gobble<br />

444 }}<br />

445 \setkeys{<strong>caption</strong>}{<strong>de</strong>bug=0}<br />

Initialization of parameters<br />

446 \<strong><strong>caption</strong>s</strong>etup{style=<strong>de</strong>fault,position=<strong>de</strong>fault,listof=1,%<br />

447 twosi<strong>de</strong>=\if@twosi<strong>de</strong> 1\else 0\fi}<br />

\if<strong>caption</strong>@star If <strong>the</strong> starred form of \<strong>caption</strong> is used, this will be set to true. (It will be reset to<br />

false at <strong>the</strong> end of \<strong>caption</strong>@@make.)<br />

448 \newif\if<strong>caption</strong>@star<br />

42

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

Saved successfully!

Ooh no, something went wrong!