Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
517 \eqnumcolor\eqnumsize\eqnumfont{\eqnumform{\eq@number}}%<br />
518 }%<br />
519 \global\eq@wdNum\wd\EQ@numbox\global\advance\eq@wdNum\eqnumsep<br />
520 % \let\eq@hasNumber\@True % locally true<br />
521 \fi<br />
522 \fi<br />
523 }<br />
\eq@finish The information available at this point from preliminary measuring includes the<br />
number of lines required, the width of the equation number, the total height of<br />
the equation body, and (most important) the parshape spec that was used in<br />
determining height and number of lines.<br />
Invoke the equation formatter for the requested centering/indentation having<br />
worked out the best parshape. BRM: This portion is extensively refactored to get<br />
common operations together (so corrections get consistently applied).<br />
MH: I’ve destroyed Bruce’s nice refactoring a bit to get the abovedisplayskips<br />
correct for both groups of equations and single dmath environments. I will have<br />
to redo that later.<br />
524 \newcount\eq@final@linecount<br />
525 \let\eq@GRP@first@dmath\@True<br />
526 \def\eq@finish{%<br />
527 \begingroup<br />
528 〈trace〉 \<strong>breqn</strong>@debugmsg{Formatting equation}%<br />
529 〈trace〉 \debug@showmeasurements<br />
530 \if F\eq@frame\else<br />
531 \freeze@glue\eqlinespacing \freeze@glue\eqlineskip<br />
532 \fi<br />
533 % \eq@topspace{\vskip\parskip}% Set top spacing<br />
534 \csname eq@\eqindent @setsides\endcsname % Compute \leftskip,\rightskip<br />
535 \adjust@parshape\eq@parshape% Final adjustment of parshape for left|right skips<br />
If we are in an a group of equations we don’t want to calculate the top space for<br />
the first one as that will be delayed until later when the space for the group is<br />
calculated. However, we do need to store the leftskip used here as that will be<br />
used later on for calculating the top space.<br />
536 \if\eq@group<br />
537 \if\eq@GRP@first@dmath<br />
538 \global\let\eq@GRP@first@dmath\@False<br />
539 \xdef\dmath@first@leftskip{\leftskip=\the\leftskip\relax}%<br />
540 〈trace〉 \<strong>breqn</strong>@debugmsg{Stored\space\dmath@first@leftskip}<br />
541 \else<br />
542 \eq@topspace{\vskip\parskip}% Set top spacing<br />
543 \fi<br />
544 \else<br />
545 \eq@topspace{\vskip\parskip}% Set top spacing<br />
546 \fi<br />
547 〈trace〉 \debug@showformat<br />
We now know the final line count of the display. If it is a single-line display, we<br />
want to know as that greatly simplifies the equation tag placement (until such a<br />
38