diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/mh/breqn.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/mh/breqn.sty | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/mh/breqn.sty b/Master/texmf-dist/tex/latex/mh/breqn.sty index fd4893e5734..162e11dfebe 100644 --- a/Master/texmf-dist/tex/latex/mh/breqn.sty +++ b/Master/texmf-dist/tex/latex/mh/breqn.sty @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1997-2003 by Michael J. Downes -%% Copyright (C) 2007 by Morten Hoegholm <mh.ctan@gmail.com> +%% Copyright (C) 2007-2008 by Morten Hoegholm <mh.ctan@gmail.com> %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -28,7 +28,7 @@ %% breqn.sty, breqn.pdf, breqn.ins, breqn.drv. %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{breqn}[2007/12/22 v0.97a] +\ProvidesPackage{breqn}[2008/07/28 v0.98] \edef\breqnpopcats{% \catcode\number`\"=\number\catcode`\" \relax} @@ -357,8 +357,12 @@ \@xp\newif\csname if@display\endcsname \everydisplay\@xp{\the\everydisplay \@displaytrue}% }{} -\define@key{breqn}{label}{\def\next@label{\label{#1}}} +\define@key{breqn}{label}{% + \edef\next@label{\noexpand\label{\next@label@pre#1}}% + \let\next@label@pre\@empty} +\define@key{breqn}{labelprefix}{\def\next@label@pre{#1}} \global\let\next@label\@empty +\global\let\next@label@pre\@empty \define@key{breqn}{number}{\def\eq@number{#1}% \let\@currentlabel\eq@number } @@ -608,6 +612,7 @@ \def\end#1{\csname end#1\endcsname \latex@end{#1}}% \def\check@punct@or@qed#1{% \xdef\found@punct{\@empty}% BRM: punctuation was being remembered past this eqn. + % WSPR: err, why isn't that just \global\let\found@punct\@empty ? \def\finish@end{\csname end@#1\endcsname\latex@end{#1}}% \check@punct } @@ -1923,27 +1928,17 @@ } \newskip\conditionsep \conditionsep=10pt minus5pt% \newcommand{\conditionpunct}{,} -\let\cond@gobble\@firstofone \newcommand\condition{% \begingroup\@tempswatrue - \@ifstar{\@tempswafalse \condition@a}\condition@a -} + \@ifstar{\@tempswafalse \condition@a}{\condition@a}} \newcommand\condition@a[2][\conditionpunct]{% \unpenalty\unskip\unpenalty\unskip % BRM Added \hbox{#1}% \penalty -201\relax\hbox{}% Penalty to allow breaks here. \hskip\conditionsep - \if@tempswa \@xp\hbox \else \@xp\condition@b\fi - {#2}% - \endgroup - \setbox\z@\if@tempswa\hbox{#2}\else\hbox{\textmath@setup #2}\fi - \global\eq@wdCond\wd\z@ - \let\cond@gobble\@gobble -} -\newcommand\condition@b[1]{% - \cond@gobble{\hskip\conditionsep}% - \textmath@setup #1% -} + \setbox\z@\if@tempswa\hbox{#2}\else\hbox{$\textmath@setup #2$}\fi + \usebox\z@ + \endgroup} \newenvironment{XXXXdsuspend}{% \global\setbox\EQ@box\vbox\bgroup \@parboxrestore \parshape 1 \displayindent \displaywidth\relax |