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.

\mark\env,<br />

which is defined in the .aux file to be the end symbol are called.<br />

The construction 〈cmd seq〉{...} in line 118 allows the handling of the<br />

end symbol as an argument of 〈cmd seq〉 as needed for \endeqnarray.<br />

Line 119: By \hskip-\rightmargin\hbox to 0cm{}, a negative hspace of<br />

amount \rightmargin is added after the end symbol – thus, the symbol<br />

is set as there were no right margin (this concerns, e.g., \quote environments).<br />

(applied onlyif\rightmarginismorethan0–otherwisebugif preceding<br />

line ends with hyphenation.)<br />

Writing to .aux file. (copied from \def\label (ltxref.dtx))<br />

121 \newskip\mysavskip<br />

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

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

124 \unskip\fi}<br />

125 %<br />

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

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

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

Lines 122–124 and 125–127 are similar to \@bsphack and \@bsphack of latex.ltx.<br />

They undo resp. redo the last skip.<br />

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

Change both if you change them.<br />

\OrganizeTheoremSymbol The information for setting the end marks is written to the .aux file:<br />

129 \gdef\OrganizeTheoremSymbol{%<br />

130 \@bbsphack<br />

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

132 \expandafter\meaning\csname\InTheoType Symbol\endcsname\relax}%<br />

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

134 {\string\global\string\def\string\mark%<br />

135 \thm@romannum{curr\InTheoType ctr}\InTheoType \thm@romannum{end\InTheoType ctr}%<br />

136 {\thm@tmp}}%<br />

137 \@eesphack}<br />

Lines 133–135: Write<br />

\global\def\mark〈env〉

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

Saved successfully!

Ooh no, something went wrong!