summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mh/mathtools.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/mh/mathtools.sty')
-rw-r--r--Master/texmf-dist/tex/latex/mh/mathtools.sty36
1 files changed, 34 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/mh/mathtools.sty b/Master/texmf-dist/tex/latex/mh/mathtools.sty
index aa4391daa6c..64a293168d2 100644
--- a/Master/texmf-dist/tex/latex/mh/mathtools.sty
+++ b/Master/texmf-dist/tex/latex/mh/mathtools.sty
@@ -27,7 +27,7 @@
%% mathtools.sty, mathtools.pdf, mathtools.ins, mathtools.drv.
%%
\ProvidesPackage{mathtools}%
- [2007/12/03 v1.03 mathematical typesetting tools (MH)]
+ [2008/08/01 v1.06 mathematical typesetting tools (MH)]
\RequirePackage{keyval,calc}
\RequirePackage{mhsetup}[2007/12/03]
\MHInternalSyntaxOn
@@ -225,6 +225,14 @@
\MH_let:NwN \print@eqnum\@empty \MH_let:NwN \incr@eqnum\@empty
\global\@eqnswfalse
}
+\MHInternalSyntaxOff
+\newcommand\noeqref[1]{\@bsphack
+ \@for\@tempa:=#1\do{%
+ \edef\@tempa{\expandafter\@firstofone\@tempa}%
+ \if@filesw\protected@write\@auxout{}%
+ {\string\MT@newlabel{\@tempa}}\fi}
+ \@esphack}
+\MHInternalSyntaxOn
\providecommand*\xleftrightarrow[2][]{%
\ext@arrow 3095\MT_leftrightarrow_fill:{#1}{#2}}
\def\MT_leftrightarrow_fill:{%
@@ -559,7 +567,7 @@
{
\mathopen{\@nameuse {\MH_cs_to_str:N ##1 l} #2} ##2
\mathclose{\@nameuse {\MH_cs_to_str:N ##1 r} #3}}
- \newcommand{#1}{
+ \DeclareRobustCommand{#1}{
\@ifstar
{\@nameuse{MT_delim_\MH_cs_to_str:N #1 _star:}}
{\@nameuse{MT_delim_\MH_cs_to_str:N #1 _nostar:}}
@@ -777,6 +785,30 @@
\mathop{#4}\limits#5{#6}
\fi:
}
+\newcommand\MoveEqLeft[1][2]{%
+ \global\@tempdima=#1em%
+ \kern\@tempdima%
+ &
+ \kern-\@tempdima}
+\MHInternalSyntaxOff
+\def\ArrowBetweenLines{\relax
+ \iffalse{\fi\ifnum0=`}\fi
+ \@ifstar{\ArrowBetweenLines@auxI{00}}{\ArrowBetweenLines@auxI{01}}}
+\def\ArrowBetweenLines@auxI#1{%
+ \@ifnextchar[%
+ {\ArrowBetweenLines@auxII{#1}}%
+ {\ArrowBetweenLines@auxII{#1}[\Updownarrow]}}
+\def\ArrowBetweenLines@auxII#1[#2]{%
+ \ifnum0=`{\fi \iffalse}\fi
+ \crcr
+ \noalign{\nobreak\vskip-\baselineskip\vskip-\lineskip}%
+ \noalign{\expandafter\in@\expandafter{\@currenvir}%
+ {alignedat,aligned,gathered}%
+ \ifin@ \else\notag\fi%
+ }%
+ \if#1 &&\quad #2\else #2\quad\fi
+ \\\noalign{\nobreak\vskip-\lineskip}}
+\MHInternalSyntaxOn
\def\shortintertext#1{%
\ifvmode\else\\\@empty\fi
\noalign{%