diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/breqn/mathstyle.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/breqn/mathstyle.sty | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/breqn/mathstyle.sty b/Master/texmf-dist/tex/latex/breqn/mathstyle.sty index 70feea50762..6910ff6f92a 100644 --- a/Master/texmf-dist/tex/latex/breqn/mathstyle.sty +++ b/Master/texmf-dist/tex/latex/breqn/mathstyle.sty @@ -11,8 +11,8 @@ %% Copyright (C) 1997-2003 by Michael J. Downes %% Copyright (C) 2007-2011 by Morten Hoegholm et al %% Copyright (C) 2007-2014 by Lars Madsen -%% Copyright (C) 2007-2014 by Will Robertson -%% Copyright (C) 2015 by Will Robertson, Joseph Wright +%% Copyright (C) 2007-2017 by Will Robertson +%% Copyright (C) 2010-2017 by Joseph Wright %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -32,7 +32,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{mathstyle} - [2015/08/11 v0.98d Tracking mathstyle implicitly] + [2017/01/27 0.98e Tracking mathstyle implicitly] \providecommand\@saveprimitive[2]{% \begingroup \edef\@tempa{\string#1}\edef\@tempb{\meaning#1}% @@ -122,7 +122,7 @@ \def\sb#1{\mathsub{\protect\subsupstyle#1}}% \def\sp#1{\mathsup{\protect\subsupstyle#1}}% \def\mathchoice{% - \relax\ifcase\mathstyle + \relax\ifcase\numexpr\mathstyle\relax \expandafter\@firstoffour % Display \or \expandafter\@firstoffour % Cramped display @@ -161,10 +161,11 @@ \renewcommand{\binom}{\genfrac{}(){0pt}} \renewcommand{\dbinom}{\genfrac\displaystyle(){0pt}} \renewcommand{\tbinom}{\genfrac\textstyle(){0pt}} + \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname directlua\endcsname\relax \def\fracstyle{% - \ifcase\mathstyle + \ifcase\numexpr\mathstyle\relax \chardef\mathstyle=\@ne \or \chardef\mathstyle=\@ne @@ -180,7 +181,7 @@ \def\fracstyle{} \fi \def\currentmathstyle{% - \ifcase\mathstyle + \ifcase\numexpr\mathstyle\relax \@@displaystyle \or \@@displaystyle |