diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/pm-isomath/pm-isomath.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/pm-isomath/pm-isomath.sty | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/pm-isomath/pm-isomath.sty b/Master/texmf-dist/tex/latex/pm-isomath/pm-isomath.sty index 3946ad56967..e26c254b70c 100644 --- a/Master/texmf-dist/tex/latex/pm-isomath/pm-isomath.sty +++ b/Master/texmf-dist/tex/latex/pm-isomath/pm-isomath.sty @@ -14,7 +14,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2019/01/01] \ProvidesPackage{pm-isomath}[% - 2021/05/15 v.1.1.07 + 2021/08/24 v.1.2.00 Poor man package for typesetting ISO compliant math when using pdfLaTeX] @@ -74,7 +74,13 @@ Poor man package for typesetting ISO compliant math when using pdfLaTeX] \switchvaruppercasegreekletters \@ifpackageloaded{alphabeta}{}{\RequirePackage{alphabeta}} -\def\ISOfam{lmr}\def\ISOser{m}\def\ISOsha{n} +\def\Def@Fam{lmr}\edef\ISOfam{\Def@Fam} +\def\ISOser{m} +\def\ISOsha{n} +\AtBeginDocument{% + \unless\ifx\f@family\Def@Fam\edef\ISOfam{\f@family}\fi +} + \NewDocumentCommand\MathLatin{m g O{m} D(){it}}{% \bgroup\edef\y{\IfNoValueTF{#2}{\ISOfam}{#2}}% \edef\x{\noexpand\egroup\noexpand\MLatin{\noexpand#1}{\y}}\x{#3}{#4}% @@ -208,7 +214,6 @@ Poor man package for typesetting ISO compliant math when using pdfLaTeX] \AfterEndPreamble{\let\ped\undefined\let\ap\undefined \DeclareRobustCommand*\ped[1]{% \textormath{\textsubscript{#1}}{_{\mathrm{#1}}}}% -\providecommand\ap{} \DeclareRobustCommand\ap[1]{% \textormath{\textsuperscript{#1}}{^{\mathrm{#1}}}}% \unless\ifcsname unit\endcsname |