22.07.2013 Views

ntheorem.pdf. - Mirrors.med.harvard.edu

ntheorem.pdf. - Mirrors.med.harvard.edu

ntheorem.pdf. - Mirrors.med.harvard.edu

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

195 \newskip\mysavskip<br />

196 \gdef\@bbsphack{%<br />

197 \ifvmode\else\mysavskip\lastskip<br />

198 \unskip\fi}<br />

199 %<br />

200 \gdef\@eesphack{%<br />

201 \ifdim\mysavskip>\z@<br />

202 \vskip\mysavskip \else\fi}<br />

Note that @bbsphack and @eesphack are also part of the thmmarks option.<br />

Change both if you change them.<br />

Communication of theorem types for references. The thref functionality<br />

needs to know the respective theorem type of the referenced labels.<br />

Thisisincorporatedasadditionalargumentsinlabelandnewlabel/@newl@abel.<br />

Note that if the hyperref package is used, the handling is different (see Option<br />

hyperref).<br />

\label Theoriginal\labelmacrois extended (cf. ltxref.dtx) withan optional argument,<br />

containing the type of the labeled construct. (when option hyperref<br />

is used, )<br />

203 \def\label#1{%<br />

204 \@ifnextchar[%]<br />

205 {\label@optarg{#1}}%<br />

206 {\thm@makelabel{#1}}}<br />

207 %<br />

208 \def\thm@makelabel#1{%<br />

209 \@bbsphack<br />

210 \edef\thm@tmp{\expandafter\expandafter\expandafter\thm@meaning<br />

211 \expandafter\meaning\csname\InTheoType Keyword\endcsname\relax}%<br />

212 \protected@write\@auxout{}%<br />

213 {\string\newlabel{#1}{{\@currentlabel}{\thepage}}[\thm@tmp]}%<br />

214 \@eesphack}<br />

215 %<br />

216 \def\label@optarg#1[#2]{%<br />

217 \@bsphack<br />

218 \protected@write\@auxout{}%<br />

219 {\string\newlabel{#1}{{\@currentlabel}{\thepage}}[#2]}%<br />

220 \@esphack}<br />

thm@makelabel: If no optional argument is given, the keyword of the current<br />

environment type is used instead.<br />

label@optarg: The original definition, extended with the optional argument<br />

which is appended to the \newlabel-command to be written to the .auxfile.<br />

\newlabel The original behavior of \newlabel (called when evaluating the .aux-file) is<br />

also adapted.<br />

42

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

Saved successfully!

Ooh no, something went wrong!