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.

545 \<strong>de</strong>f\<strong>caption</strong>@tempb{\ignorespaces}%<br />

546 \ifx\<strong>caption</strong>@tempa\<strong>caption</strong>@tempb<br />

547 \let\<strong>caption</strong>@tempa\@empty<br />

548 \fi<br />

549 \ifx\<strong>caption</strong>@tempa\@empty<br />

550 \expandafter\@firstofone<br />

551 \else<br />

552 \expandafter\@gobble<br />

553 \fi}<br />

\<strong>caption</strong>@@par \<strong>caption</strong>@@par<br />

This command will be executed <strong>with</strong> every \par insi<strong>de</strong> <strong>the</strong> <strong>caption</strong>.<br />

554 \newcommand*\<strong>caption</strong>@@par{%<br />

555 \parin<strong>de</strong>nt\<strong>caption</strong>parin<strong>de</strong>nt\hangin<strong>de</strong>nt\<strong>caption</strong>hangin<strong>de</strong>nt}%<br />

subfig <strong>package</strong> support<br />

This is a very small bugfix for v1.2 and v1.3 or <strong>the</strong> subfig <strong>package</strong>, making \subfig<br />

robust. I do this here because it’s <strong>caption</strong> related stuff and I get all <strong>the</strong> bug reports ;-)<br />

556 \AtBeginDocument{%<br />

557 \<strong>de</strong>f\@tempa{\@ifstar\sf@@subref\sf@subref}%<br />

558 \ifx\subref\@tempa<br />

559 \PackageInfo{<strong>caption</strong>3}{subref 1.2 or 1.3 <strong>de</strong>tected}%<br />

560 \DeclareRobustCommand*\subref{\@ifstar\sf@@subref\sf@subref}%<br />

561 \fi<br />

562 }<br />

11.2 Main <strong>package</strong><br />

I<strong>de</strong>ntification<br />

563 \NeedsTeXFormat{LaTeX2e}[1994/12/01]<br />

564 \Provi<strong>de</strong>sPackage{<strong>caption</strong>}[2007/04/16 v3.0q Customising <strong><strong>caption</strong>s</strong> (AR)]<br />

Loading <strong>the</strong> kernel<br />

565 \RequirePackage{<strong>caption</strong>3}[2007/01/31] % needs v3.0l or newer<br />

Check against <strong>the</strong> obsolete <strong>caption</strong>2 <strong>package</strong><br />

566 \@if<strong>package</strong>loa<strong>de</strong>d{<strong>caption</strong>2}{%<br />

567 \<strong>caption</strong>@Error{You can’t use both <strong>the</strong> <strong>caption</strong> *and* <strong>caption</strong>2 <strong>package</strong>}%<br />

568 \endinput<br />

569 }{}<br />

Option for configuration files<br />

570 \DeclareCaptionOption{config}[<strong>caption</strong>]{%<br />

571 \InputIfFileExists{#1.cfg}{\typeout{*** Local configuration file<br />

572 #1.cfg used ***}}%<br />

573 {\PackageWarning{<strong>caption</strong>}{Configuration<br />

46

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

Saved successfully!

Ooh no, something went wrong!