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.sty20
1 files changed, 13 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/breqn/breqn.sty b/Master/texmf-dist/tex/latex/breqn/breqn.sty
index 93b49aa70b8..aec20ed3411 100644
--- a/Master/texmf-dist/tex/latex/breqn/breqn.sty
+++ b/Master/texmf-dist/tex/latex/breqn/breqn.sty
@@ -11,8 +11,8 @@
%% Copyright (C) 1997-2003 by Michael J. Downes
%% Copyright (C) 2007-2008 by Morten Hoegholm
%% Copyright (C) 2007-2014 by Lars Madsen
-%% Copyright (C) 2007-2018 by Will Robertson
%% Copyright (C) 2010-2017 by Joseph Wright
+%% Copyright (C) 2007-2019 by Will Robertson
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -26,13 +26,12 @@
%%
%% The Current Maintainer of this work is Will Robertson.
%%
-%% This work consists of the main source file breqn.dtx
-%% and the derived files
-%% breqn.sty, breqn.pdf, breqn.ins.
+%% This work consists of the main source file breqn.dtx,
+%% flexisym.dtx, and mathstyle.dtx.
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\ProvidesExplPackage{breqn}{2018/09/14}{0.98f}{Breaking equations}
+\ProvidesExplPackage{breqn}{2019/10/15}{0.98g}{Breaking equations}
\ExplSyntaxOff
\edef\breqnpopcats{%
\catcode\number`\"=\number\catcode`\"
@@ -645,8 +644,15 @@
\end{#2}%
}
\def\@tempa#1\endcsname#2\@nil{\def\latex@end##1{#2}}
-\expandafter\@tempa\end{#1}\@nil
-\def\end#1{\csname end#1\endcsname \latex@end{#1}}%
+\ifcsname end \endcsname
+ % 2019: \end was made robust
+ \expandafter\expandafter\expandafter\@tempa\csname end \endcsname{#1}\@nil
+ \@namedef{end }#1{\csname end#1\endcsname \latex@end{#1}}%
+\else
+ % pre-2019: the old approach
+ \expandafter\@tempa\end{#1}\@nil
+ \def\end#1{\csname end#1\endcsname \latex@end{#1}}%
+\fi
\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 ?