ntheorem.pdf. - Mirrors.med.harvard.edu
ntheorem.pdf. - Mirrors.med.harvard.edu
ntheorem.pdf. - Mirrors.med.harvard.edu
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
48 \stepcounter{end\InTheoType ctr}%<br />
49 \@ifundefined{mark\thm@romannum{curr\InTheoType ctr}%<br />
50 \InTheoType\thm@romannum{end\InTheoType ctr}}{\relax}%<br />
51 {\ifx\csname\InTheoType Symbol\endcsname\@empty\else<br />
52 \end{array}\fi}%<br />
53 \addtocounter{end\InTheoType ctr}{-1}%<br />
54 \relax\ifmmode<br />
55 \ifinner<br />
56 \@badmath<br />
57 \else<br />
58 \PotEndMark{\eqno}\global\@ignoretrue$$%%$$ BRACE MATCH HACK<br />
59 \fi<br />
60 \else<br />
61 \@badmath<br />
62 \fi<br />
63 \ignorespaces}<br />
Lines 48–53: Look, ifanendmarkhastobesetinthisdisplaymath(analogous<br />
to lines 38–44 of \def\[) If so, there is an inner array which has to be<br />
closed (line 52).<br />
Lines 54–63: the old definition.<br />
Line 58: changed to set an endmark at the right of the line if necessary (this<br />
is done by \eqno).<br />
\endeqnarray For \eqnarrays, the end marks is set below the number of the last equation:<br />
64 \gdef\SetMark@endeqnarray#1{\llap{\raisebox{-1.3em}{#1}}}<br />
65 \gdef\endeqnarray{%<br />
66 \global\let\Oldeqnnum=\@eqnnum<br />
67 \gdef\@eqnnum{\Oldeqnnum\PotEndMark{\SetMark@endeqnarray}}%<br />
68 \@@eqncr<br />
69 \egroup<br />
70 \global\advance\c@equation\m@ne<br />
71 $$\global\@ignoretrue<br />
72 \global\let\@eqnnum\Oldeqnnum}<br />
Line 64: As default work for equation numbers at the right: Then, the endmark<br />
is placed below the last equation number at the right margin.<br />
New: Lines 66, 67, 72:<br />
Line 66: save \@eqnnum.<br />
Line 67: define\@eqnnumto carry out\Oldeqnnum,then a potential endmark<br />
position is handled: if an endmark is set, between the equation number<br />
and the endmark, the command sequence \SetMark@endeqnarray is<br />
carried out – there, since \SetMark@endeqnarray is a function of one<br />
argument, the endmark will be this argument.<br />
Lines 68–71: from latex.ltx. Line 68 sets the equation number.<br />
Line 72: restore \@eqnnum.<br />
35