Typesetting captions with the caption package - Departamento de ...
Typesetting captions with the caption package - Departamento de ...
Typesetting captions with the caption package - Departamento de ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Each single <strong>package</strong> support can be switched on or off by using <strong>the</strong> appropriate option.<br />
By <strong>de</strong>fault all of <strong>the</strong>m are enabled.<br />
611 \newcommand*\<strong>caption</strong>@<strong>de</strong>clare<strong>package</strong>[1]{%<br />
612 \<strong>caption</strong>@setbool{pkt@#1}{1}%<br />
613 \DeclareCaptionOption*{#1}{\<strong>caption</strong>@setbool{pkt@#1}{##1}}}<br />
614 \AtEndOfPackage{\let\<strong>caption</strong>@<strong>de</strong>clare<strong>package</strong>\@un<strong>de</strong>fined}<br />
\<strong>caption</strong>@if<strong>package</strong> \<strong>caption</strong>@if<strong>package</strong>{〈<strong>package</strong> name〉}{〈<strong>package</strong> macro〉}{〈co<strong>de</strong>〉}<br />
If a certain <strong>package</strong> support is requested <strong>the</strong> appropriate co<strong>de</strong> will be used. ‘Requested’<br />
means that <strong>the</strong> option belonging to it is set to true and <strong>the</strong> macro called 〈<strong>package</strong> macro〉<br />
is <strong>de</strong>fined. (If 〈<strong>package</strong> macro〉 is not yet <strong>de</strong>fined we use \AtBeginDocument here,<br />
so <strong>the</strong> <strong>package</strong> could be loa<strong>de</strong>d after this <strong>package</strong>, too.)<br />
615 \newcommand\<strong>caption</strong>@if<strong>package</strong>[3]{%<br />
616 \e<strong>de</strong>f\<strong>caption</strong>@tempa{%<br />
617 \<strong>caption</strong>@ifbool{pkt@#1}%<br />
618 {\@ifun<strong>de</strong>fined{#2}{AtBeginDocument}{firstofone}}%<br />
619 {gobble}}%<br />
620 \<strong>caption</strong>@Info{#1=\<strong>caption</strong>@ifbool{pkt@#1}{1}{0} %<br />
621 (\@ifun<strong>de</strong>fined{#2}{not }{}loa<strong>de</strong>d->\<strong>caption</strong>@tempa)}%<br />
622 \<strong>caption</strong>@ifbool{pkt@#1}{%<br />
623 \@ifun<strong>de</strong>fined{#2}%<br />
624 {\let\<strong>caption</strong>@tempa\AtBeginDocument}%<br />
625 {\let\<strong>caption</strong>@tempa\@firstofone}%<br />
626 }{%<br />
627 \let\<strong>caption</strong>@tempa\@gobble<br />
628 }%<br />
629 \<strong>caption</strong>@tempa{\@ifun<strong>de</strong>fined{#2}{}{#3}}%<br />
630 \<strong>caption</strong>@un<strong>de</strong>fbool{pkt@#1}}<br />
631 \AtEndOfPackage{\let\<strong>caption</strong>@if<strong>package</strong>\@un<strong>de</strong>fined}<br />
You can also switch <strong>the</strong> <strong>caption</strong> support off using <strong>the</strong> <strong>package</strong> option <strong>caption</strong>=false.<br />
This may look strange, but <strong>the</strong>re are certain circumstances where this could be useful.<br />
Such a situation might be <strong>the</strong> usage of <strong>the</strong> subfig <strong>package</strong> <strong>with</strong>out disturbing <strong>the</strong> main<br />
<strong>caption</strong> co<strong>de</strong> of <strong>the</strong> document class.<br />
Note: This mechanism is obsolete now, it has been supersee<strong>de</strong>d by <strong>the</strong> subfig <strong>package</strong><br />
option <strong>caption</strong>=false which causes that only <strong>the</strong> <strong>caption</strong> kernel <strong>caption</strong>3 is loa<strong>de</strong>d.<br />
632 \<strong>caption</strong>@<strong>de</strong>clare<strong>package</strong>{<strong>caption</strong>}<br />
These are <strong>the</strong> <strong>package</strong>s we support:<br />
633 \<strong>caption</strong>@<strong>de</strong>clare<strong>package</strong>{float}<br />
634 \<strong>caption</strong>@<strong>de</strong>clare<strong>package</strong>{floatrow}<br />
635 \<strong>caption</strong>@<strong>de</strong>clare<strong>package</strong>{hyperref}<br />
636 \<strong>caption</strong>@<strong>de</strong>clare<strong>package</strong>{hypcap}<br />
637 \<strong>caption</strong>@<strong>de</strong>clare<strong>package</strong>{listings}<br />
638 \<strong>caption</strong>@<strong>de</strong>clare<strong>package</strong>{longtable}<br />
639 \<strong>caption</strong>@<strong>de</strong>clare<strong>package</strong>{picins}<br />
640 \<strong>caption</strong>@<strong>de</strong>clare<strong>package</strong>{rotating}<br />
48