ntheorem.pdf. - Mirrors.med.harvard.edu
ntheorem.pdf. - Mirrors.med.harvard.edu
ntheorem.pdf. - Mirrors.med.harvard.edu
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
\SetTagPlusEndMark<br />
in equation*; this is executed in endmathdisplay@a when it comes to<br />
\veqno\alt@tag\df@tag).<br />
336 \newdimen{\tagwidth}<br />
337 \gdef\SetTagPlusEndMark{%<br />
338 \iftagsleft@<br />
339 \gdef\maketag@@@##1{%<br />
340 \settowidth{\tagwidth}{$##1$}%% %% WM 17.10.2007<br />
341 \hbox to \tagwidth{%<br />
342 \hbox to \displaywidth{\m@th\normalfont##1%<br />
343 \hss\PotEndMark{\hss}}\hss}}%<br />
344 \else<br />
345 \gdef\maketag@@@##1{\hbox{\m@th\normalfont##1%<br />
346 \llap{\hss\PotEndMark{\raisebox{-1.3em}}}}}%<br />
347 \fi}<br />
Set a tag and an end mark:<br />
Lines 337–346: redefine the \maketag@@@ macro:<br />
Lines 338–342: iftagsaresettotheleft, buildaboxofthewholedisplaywidth<br />
and put the original tag on the left, and the (potential) endmark at the<br />
right. Put this box with width 0 and continue.<br />
Lines 343, 344: if the tags are set to the right, the (potential) end mark is<br />
put below it.<br />
\tagform@ \maketag@@@is also used via\tagform@in\eqrefthat may becalled inside<br />
an environment. There, the original functionality must be used. The<br />
(small) commands \th@ams@tagopen{(} and \th@ams@tagopen{(} are<br />
provided as a hook for the empheq package.<br />
\RestoreTags<br />
348 \let\th@ams@@maketag@@@\maketag@@@<br />
349 \gdef\th@ams@tagopen{(}<br />
350 \gdef\th@ams@tagclose{)}<br />
351 \gdef\th@ams@tagform@#1{%<br />
352 \th@ams@@maketag@@@{\th@ams@tagopen\ignorespaces#1%<br />
353 \unskip\@@italiccorr\th@ams@tagclose}}<br />
354 \gdef\eqref#1{\textup{\th@ams@tagform@{\ref{#1}}}}<br />
355 \gdef\RestoreTags{%<br />
356 \global\let\maketag@@@=\Old@maketag@@@<br />
357 \global\let\df@tag=\Old@df@tag}<br />
Lines 356, 357: restore the original macros.<br />
\endgather In the gather environment, just the augmented tag is used:<br />
358 \gdef\endgather{%<br />
359 \TagsPlusEndmarks %