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.

This is the mathoff fragment.<br />

...<br />

\glue(\baselineskip) 9.5<br />

\hbox(0.0+0.0)x16383.99998, glue set 1.6384<br />

.\mathoff<br />

.\penalty 10000<br />

.\glue(\parfillskip) 0.0<br />

.\glue(\rightskip) 0.0 plus 10000.0<br />

Figure 4: Preliminary equation contents, part 4<br />

747 \newdimen\eq@wdR\eq@wdR\z@%BRM<br />

748 \def\eq@capture{%<br />

749 \ifnum\lastpenalty>-\@M \penalty-\@Mi \fi<br />

We want to keep the mathoff kern from vanishing at the line break, so that we<br />

can reuse it later.<br />

750 \keep@glue\@@endmath<br />

751 \eq@addpunct<br />

752 \@@par<br />

753 \eq@wdL\z@<br />

First snip the last box, which contains the mathoff node, and put it into \EQ@box.<br />

Then when we call \eq@repack it will recurse properly.<br />

754 \setbox\tw@\lastbox<br />

755 \global\setbox\EQ@box\hbox{\unhbox\tw@\unskip\unskip\unpenalty}%<br />

756 \unskip\unpenalty<br />

757 \global\setbox\EQ@copy\copy\EQ@box<br />

758 %% \global\setbox\EQ@vimcopy\copy\EQ@vimbox<br />

759 \clubpenalty\z@<br />

760 %\batchmode\showboxbreadth\maxdimen\showboxdepth99\showlists\errorstopmode<br />

761 \eq@wdR\z@%BRM: eq@wdL patch<br />

762 \eq@repack % recursive<br />

Finally, add the mathon item to \EQ@box and \EQ@copy.<br />

763 \setbox\tw@\lastbox<br />

764 \global\setbox\EQ@box\hbox{\unhcopy\tw@\unskip\unpenalty \unhbox\EQ@box}%<br />

765 \global\setbox\EQ@copy\hbox{\unhbox\tw@\unskip\unpenalty \unhbox\EQ@copy}%<br />

766 %\batchmode\showbox\EQ@copy \showthe\eq@wdL\errorstopmode<br />

767 \ifdim\eq@wdR>\z@% BRM: eq@wdL patch<br />

768 \setlength\dim@a{\wd\EQ@box-\eq@wdR<br />

769 % Apparently missing a \thickmuskip = 5mu = 5/18em=0.27777777777.. ?<br />

770 + 0.2777777777777em}% FUDGE??!?!?!<br />

771 \ifdim\dim@a>\eq@wdL<br />

772 〈∗trace〉<br />

773 \<strong>breqn</strong>@debugmsg{Correcting LHS from \the\eq@wdL\space to<br />

774 \the\dim@a = \the\wd\EQ@box - \the\eq@wdR}%<br />

775 〈/trace〉<br />

50

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

Saved successfully!

Ooh no, something went wrong!