summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/breqn/breqn.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/breqn/breqn.sty')
-rw-r--r--Master/texmf-dist/tex/latex/breqn/breqn.sty44
1 files changed, 15 insertions, 29 deletions
diff --git a/Master/texmf-dist/tex/latex/breqn/breqn.sty b/Master/texmf-dist/tex/latex/breqn/breqn.sty
index aec20ed3411..13c927d6afc 100644
--- a/Master/texmf-dist/tex/latex/breqn/breqn.sty
+++ b/Master/texmf-dist/tex/latex/breqn/breqn.sty
@@ -31,7 +31,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\ProvidesExplPackage{breqn}{2019/10/15}{0.98g}{Breaking equations}
+\ProvidesExplPackage{breqn}{2020/02/16}{0.98h}{Breaking equations}
\ExplSyntaxOff
\edef\breqnpopcats{%
\catcode\number`\"=\number\catcode`\"
@@ -42,6 +42,8 @@
\PassOptionsToPackage{mathstyleoff}{flexisym}%
}
\ProcessOptions\relax
+\RequirePackage{amsmath}
+\RequirePackage{graphicx}
\@ifpackageloaded{flexisym}{}{%
\RequirePackage{flexisym}[2009/08/07]
\edef\breqnpopcats{\breqnpopcats
@@ -51,23 +53,7 @@
\catcode`\^=7 \catcode`\_=8 \catcode`\"=12 \relax
}
\RequirePackage{keyval,calc}\relax
-\@ifundefined{options}{%
-\newcommand{\options}[2]{%
- \expandafter\options@a\csname opt@#1.sty\endcsname{#2}%
- \setkeys{#1}{#2}%
-}
-\def\options@a#1#2{%
- \edef\@tempa{\options@b#2,\@empty\@nil}%
- \ifx#1\relax \let#1\@empty\fi
- \xdef#1{#1\ifx#1\@empty\@xp\@gobble\@tempa\@empty\else\@tempa \fi}%
-}
-\def\options@b#1,#2#3\@nil{%
- \options@c#1 \@nil
- \ifx#2\@empty \else\options@b#2#3\@nil\fi
-}
-\def\options@c#1 #2\@nil{\options@d#1=\@nil}
-\def\options@d#1=#2\@nil{\ifx\@empty #1\@empty\else,\fi#1}
-}{}% end @ifundefined test
+\newcommand{\breqnsetup}[1]{\setkeys{breqn}{#1}}
\let\@nx\noexpand
\let\@xp\expandafter
\@ifundefined{@emptytoks}{\newtoks\@emptytoks}{}
@@ -98,11 +84,11 @@
\futurelet\@tempc\@ifnexta
}
\def\@ifnexta{\ifx\@tempc\@tempd \let\@tempb\@tempa \fi \@tempb}
-\def\@ifstar#1#2{%
+\def\breqn@ifstar#1#2{%
\let\@tempd*\def\@tempa*{#1}\def\@tempb{#2}%
\futurelet\@tempc\@ifnexta
}
-\def\@optarg#1#2{\@ifnext[{#1}{#1[#2]}}
+\def\breqn@optarg#1#2{\@ifnext[{#1}{#1[#2]}}
\def\@True{00}
\def\@False{01}
\def\@Not#1{0\ifcase#11 \or\@xp 1\else \@xp 0\fi}
@@ -447,7 +433,7 @@
\let\@dgroup@start@hook\@empty
\newenvironment{dmath}{%
\@dmath@start@hook
- \let\eq@hasNumber\@True \@optarg\@dmath{}}{}
+ \let\eq@hasNumber\@True \breqn@optarg\@dmath{}}{}
\def\@dmath[#1]{%
\everydisplay\expandafter{\the\everydisplay \display@setup}%
\if@noskipsec \leavevmode \fi
@@ -473,7 +459,7 @@
}
\newenvironment{dmath*}{%
\@dmath@start@hook
- \let\eq@hasNumber\@False \@optarg\@dmath{}%
+ \let\eq@hasNumber\@False \breqn@optarg\@dmath{}%
}{}
\@namedef{end@dmath*}{\end@dmath}
\@namedef{enddmath*}#1{\check@punct@or@qed}
@@ -863,7 +849,7 @@
\EQ@displayinfo
}
\def\eq@newline{%
- \@ifstar{\eq@newlinea\@M}{\eq@newlinea\eqinterlinepenalty}}
+ \breqn@ifstar{\eq@newlinea\@M}{\eq@newlinea\eqinterlinepenalty}}
\def\eq@newlinea#1{%
\@ifnext[{\eq@newlineb{#1}}{\eq@newlineb{#1}[\maxdimen]}}
\def\eq@newlineb#1[#2]{\penalty-\@M}
@@ -1715,9 +1701,9 @@
\DeclareTwang{\rangle}{-.4}
\DeclareTwang{)}{-.33}
\DeclareTwang{\rbrace}{-.25}
-\newenvironment{dseries}{\let\eq@hasNumber\@True \@optarg\@dseries{}}{}%
+\newenvironment{dseries}{\let\eq@hasNumber\@True \breqn@optarg\@dseries{}}{}%
\def\enddseries#1{\check@punct@or@qed}%
-\newenvironment{dseries*}{\let\eq@hasNumber\@False \@optarg\@dseries{}}{}%
+\newenvironment{dseries*}{\let\eq@hasNumber\@False \breqn@optarg\@dseries{}}{}%
\@namedef{enddseries*}#1{\check@punct@or@qed}%
\@namedef{end@dseries*}{\end@dseries}%
\def\@dseries[#1]{%
@@ -1764,13 +1750,13 @@
\let\grp@aligned\@True
\newenvironment{dgroup}{%
\@dgroup@start@hook
- \let\grp@hasNumber\@True\@optarg\@dgroup{}%
+ \let\grp@hasNumber\@True\breqn@optarg\@dgroup{}%
}{%
\end@dgroup
}
\newtoks\GRP@queue
\newenvironment{dgroup*}{%
- \let\grp@hasNumber\@False\@optarg\@dgroup{}%
+ \let\grp@hasNumber\@False\breqn@optarg\@dgroup{}%
}{%
\end@dgroup
}
@@ -1952,7 +1938,7 @@
\def\col@box{%
\unhbox\z@
}
-\newenvironment{darray}{\@optarg\@darray{}}{}
+\newenvironment{darray}{\breqn@optarg\@darray{}}{}
\def\@darray[#1]{%
\if\eq@group\else\eq@prelim\fi
\global\let\@preamble\@empty
@@ -1995,7 +1981,7 @@
\newcommand{\conditionpunct}{,}
\newcommand\condition{%
\begingroup\@tempswatrue
- \@ifstar{\@tempswafalse \condition@a}{\condition@a}}
+ \breqn@ifstar{\@tempswafalse \condition@a}{\condition@a}}
\newcommand\condition@a[2][\conditionpunct]{%
\unpenalty\unskip\unpenalty\unskip % BRM Added
\hbox{#1}%