summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/breqn/flexisym.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-09-24 20:44:15 +0000
committerKarl Berry <karl@freefriends.org>2020-09-24 20:44:15 +0000
commitebcbd05e23bcb74a94c0685591632ca8fb8b9887 (patch)
treea227bd3de2b2b2c1b16ead5a3a8390c63554e1e4 /Master/texmf-dist/tex/latex/breqn/flexisym.sty
parent048134fdca06ff07423d480703be9cc2c53c3644 (diff)
breqn (24sep20)
git-svn-id: svn://tug.org/texlive/trunk@56422 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/breqn/flexisym.sty')
-rw-r--r--Master/texmf-dist/tex/latex/breqn/flexisym.sty39
1 files changed, 18 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/breqn/flexisym.sty b/Master/texmf-dist/tex/latex/breqn/flexisym.sty
index 6534a06236b..beac414fa82 100644
--- a/Master/texmf-dist/tex/latex/breqn/flexisym.sty
+++ b/Master/texmf-dist/tex/latex/breqn/flexisym.sty
@@ -11,8 +11,9 @@
%% 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-2020 by Will Robertson
%% Copyright (C) 2010-2017 by Joseph Wright
-%% Copyright (C) 2007-2019 by Will Robertson
+%% Copyright (C) 2020-2020 by Ulrike Fischer
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -30,7 +31,7 @@
%% flexisym.dtx, and mathstyle.dtx.
%%
\RequirePackage{expl3}[2009/08/05]
-\ProvidesExplPackage{flexisym}{2020/04/19}{0.98j}{Make math characters macros}
+\ProvidesExplPackage{flexisym}{2020/09/24}{0.98k}{Make math characters macros}
\edef\do{%
\noexpand\AtEndOfPackage{%
@@ -375,31 +376,27 @@
\math_sd_aux:nn { \math_char:NNn 0 } {#1{#2}}
}
\@ifpackageloaded{amsmath}{%
- \begingroup
- \long\def\next#1\mathchardef\std@minus\mathcode`\-\relax
- \mathchardef\std@equal\mathcode`\=\relax#2\flexi@stop{%
- \toks@{#1#2}%
- \xdef\@begindocumenthook{\the\toks@}%
- }%
- \expandafter\next\@begindocumenthook\flexi@stop
- \endgroup
}{}
\AtBeginDocument{%
-\def\newmcodes@{%
- \mathcode `\'39\space
- \mathcode `\*42\space
- \mathcode `\."613A\space
- \ifnum\mathcode`\-=45\space
- \else
+\ifx\Umathcode\@undefined
+\gdef\newmcodes@{\mathcode`\'39\mathcode`\*42\mathcode`\."613A%
+ \ifnum\mathcode`\-=45 \else
\ifnum\mathcode`\-=32768\space
\else
- \mathchardef \std@minus \mathcode `\-\relax
+ \mathchardef\std@minus\mathcode`\-\relax
+ \fi
+ \fi
+ \mathcode`\-45\mathcode`\/47\mathcode`\:"603A\relax}
+\else
+\gdef\newmcodes@{\mathcode`\'39\mathcode`\*42\mathcode`\."613A%
+ \ifnum\Umathcodenum`\-=45 \else
+ \ifnum\Umathcodenum`\-=16777216\space
+ \else
+ \Umathcharnumdef\std@minus\Umathcodenum`\-\relax
\fi
\fi
- \mathcode `\-45\space
- \mathcode `\/47\space
- \mathcode `\:"603A\space\relax
-}%
+ \mathcode`\-45\mathcode`\/47\mathcode`\:"603A\relax}
+\fi
}
\DeclareOption{mathstyleoff}{%
\PassOptionsToPackage{noactivechars}{mathstyle}}