15.07.2013 Views

breqn

breqn

breqn

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

\dmath*<br />

\enddmath*<br />

460 \begingroup<br />

461 \eq@setup@a<br />

462 \eq@startup<br />

463 }<br />

Before it finishes off the box holding the equation body, \enddmath needs to look<br />

ahead for punctuation (and \qed?).<br />

464 \def\enddmath#1{\check@punct@or@qed}<br />

465 \def\end@dmath{%<br />

466 \gdef\EQ@setwdL{}% Occasionally undefined ???<br />

467 \eq@capture<br />

468 \endgroup<br />

469 \EQ@setwdL<br />

Measure (a copy of) the equation body to find the minimum width required to get<br />

acceptable line breaks, how many lines will be required at that width, and whether<br />

the equation number needs to be shifted to avoid overlapping. This information<br />

will then be used by \eq@finish to do the typesetting of the real equation body.<br />

470 \eq@measure<br />

Piece together the equation from its constituents, recognizing current constraints.<br />

If we are in an equation group, this might just save the material on a stack for<br />

later processing.<br />

471 \if\eq@group \grp@push \else \eq@finish\fi<br />

472 }<br />

Ah yes, now the lovely dmath* environment.<br />

473 \newenvironment{dmath*}{%<br />

474 \let\eq@hasNumber\@False \@optarg\@dmath{}%<br />

475 }{}<br />

476 \@namedef{end@dmath*}{\end@dmath}<br />

477 \@namedef{enddmath*}#1{\check@punct@or@qed}<br />

\eq@prelim If \everypar has a non-null value, it’s probably some code from \@afterheading<br />

that sets \clubpenalty and/or removes the parindent box. Both of those actions<br />

are irrelevant and interfering for our purposes and need to be deflected for the<br />

time being. If an equation appears at the very beginning of a list item (possibly<br />

from a trivlist such as proof), we need to trigger the item label.<br />

478 \def\eq@prelim{%<br />

479 \if@inlabel \indent \par \fi<br />

480 \if@nobreak \global\@nobreakfalse \predisplaypenalty\@M \fi<br />

481 \everypar\@emptytoks<br />

If for some reason dmath is called between paragraphs, \noindent is better than<br />

\leavevmode, which would produce an indent box and an empty line to hold it. If<br />

we are in a list environment, \par is defined as {\@@par} to preserve \parshape.<br />

482 \noindent<br />

483 \eq@nulldisplay<br />

484 \par %% \eq@saveparinfo %% needs work<br />

485 \let\intertext\<strong>breqn</strong>@intertext<br />

486 }<br />

36

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

Saved successfully!

Ooh no, something went wrong!