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.

Note that we can only set one value at a time, ‘margin’ or ‘width’. If \<strong>caption</strong>width<br />

is not zero we will take this value afterwards, o<strong>the</strong>rwise \<strong>caption</strong>margin and<br />

\<strong>caption</strong>margin@.<br />

135 \newdimen\<strong>caption</strong>margin<br />

136 \newdimen\<strong>caption</strong>margin@<br />

137 \newdimen\<strong>caption</strong>width<br />

138 \DeclareCaptionOption{margin}{\set<strong>caption</strong>margin{#1}}<br />

139 \DeclareCaptionOption{width}{\set<strong>caption</strong>width{#1}}<br />

140 \DeclareCaptionOption{twosi<strong>de</strong>}[1]{\<strong>caption</strong>@setbool{twosi<strong>de</strong>}{#1}}<br />

\set<strong>caption</strong>margin \set<strong>caption</strong>margin{〈amount〉} \set<strong>caption</strong>margin{〈amount〉}<br />

Please never use this in user documents, it’s just <strong>the</strong>re to provi<strong>de</strong> compatibility to<br />

<strong>caption</strong>2.sty v2.x.<br />

141 \newcommand*\set<strong>caption</strong>margin[1]{%<br />

142 \<strong>caption</strong>width\z@<br />

143 \<strong>caption</strong>@@setmargin#1,#1,\@nil\@@}<br />

144 \<strong>de</strong>f\<strong>caption</strong>@@setmargin#1,#2,#3\@@{%<br />

145 \setlength\<strong>caption</strong>margin{#1}%<br />

146 \setlength\<strong>caption</strong>margin@{#2}%<br />

147 \advance\<strong>caption</strong>margin@ by -\<strong>caption</strong>margin}<br />

\set<strong>caption</strong>width \set<strong>caption</strong>width{〈amount〉} \set<strong>caption</strong>width{〈amount〉}<br />

Please never use this in user documents, it’s just <strong>the</strong>re to provi<strong>de</strong> compatibility to<br />

<strong>caption</strong>2.sty v2.x.<br />

148 \newcommand\set<strong>caption</strong>width{%<br />

149 \setlength\<strong>caption</strong>width}<br />

\<strong>caption</strong>@count This counter numbers <strong>the</strong> <strong><strong>caption</strong>s</strong>. It will be used insi<strong>de</strong> \<strong>caption</strong>@ifoddpage only.<br />

150 \<strong>caption</strong>@newcounter\<strong>caption</strong>@count<br />

\<strong>caption</strong>@newlabel This command is a modified version of \newlabel from LATEX2e. It will be written to<br />

<strong>the</strong> .aux file to pass label information from one run to ano<strong>the</strong>r. It will be used insi<strong>de</strong><br />

\<strong>caption</strong>@ifoddpage and \<strong>caption</strong>@ragged.<br />

151 \newcommand*\<strong>caption</strong>@newlabel{\@newl@bel{<strong>caption</strong>}}<br />

\<strong>caption</strong>@<strong>the</strong>page This command is a modified version of \<strong>the</strong>page from LATEX2e. It will be used insi<strong>de</strong><br />

\<strong>caption</strong>@ifoddpage only.<br />

152 \newcommand*\<strong>caption</strong>@<strong>the</strong>page{\<strong>the</strong>\c@page}<br />

\<strong>caption</strong>@ifoddpage Note: This macro re-<strong>de</strong>fines itself so <strong>the</strong> .aux file will only be used once per group.<br />

153 \<strong>de</strong>f\<strong>caption</strong>@ifoddpage{%<br />

154 \<strong>caption</strong>@iftwosi<strong>de</strong>{%<br />

\refstepcounter{<strong>caption</strong>@count}<br />

155 \<strong>caption</strong>@stepcounter\<strong>caption</strong>@count<br />

\label{\<strong>the</strong>\<strong>caption</strong>@count}<br />

156 \protected@write\@auxout{\let\<strong>caption</strong>@<strong>the</strong>page\relax}%<br />

157 {\string\<strong>caption</strong>@newlabel{\<strong>caption</strong>@count}{\<strong>caption</strong>@<strong>the</strong>page}}%<br />

32

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

Saved successfully!

Ooh no, something went wrong!