diff options
author | Karl Berry <karl@freefriends.org> | 2023-07-27 19:52:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-07-27 19:52:38 +0000 |
commit | 939603b6090f08b7bca18dda001701b7f9b8e6a2 (patch) | |
tree | 5515ff1781fa676153167172db4b639e2f16f8b4 /Master/texmf-dist/tex/latex/mismath | |
parent | 435d514bd3bb9276376275345d687d5e5c57c551 (diff) |
mismath (27jul23)
git-svn-id: svn://tug.org/texlive/trunk@67745 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mismath')
-rw-r--r-- | Master/texmf-dist/tex/latex/mismath/mismath.sty | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/mismath/mismath.sty b/Master/texmf-dist/tex/latex/mismath/mismath.sty index da5545d56ee..fdace27a5bc 100644 --- a/Master/texmf-dist/tex/latex/mismath/mismath.sty +++ b/Master/texmf-dist/tex/latex/mismath/mismath.sty @@ -22,7 +22,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesPackage{mismath} - [2023/03/05 v2.7 .dtx mismath file] + [2023/07/27 v2.8 .dtx mismath file] \newif\ifmm@ibrackets % initialized to false \DeclareOption{ibrackets}{\mm@ibracketstrue} \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{amsmath}} @@ -169,16 +169,16 @@ \let\savedpi\pi \fi }{ - \@ifundefined{#1}{ - \PackageWarning{mismath}{% - Value #1 must be a valid - command name\MessageBreak for pinumber, - but command \bslash #1\space - is undefined.\MessageBreak - Perhaps a missing package} - }{\renewcommand{\pi}{% - \csname #1\endcsname} - } + \@ifundefined{#1}{ + \PackageWarning{mismath}{% + Value #1 must be a valid + command name\MessageBreak for pinumber, + but command \bslash #1\space + is undefined.\MessageBreak + Perhaps a missing package} + }{\renewcommand{\pi}{% + \csname #1\endcsname} + } } } @@ -264,11 +264,9 @@ \mm@macro{mathset}{\mathbf} \mm@macro{R}{\mathset{R}} -\@ifpackagewith{babel}{russian}{ - \PackageWarningNoLine{mismath}{Option russian of babel - is loaded\MessageBreak - Command \bslash C will not be redefined} - }{\mm@macro{C}{\mathset{C}}} +\mm@macro{C}{\mathset{C}} +\providecommand\onlymathC{\let\oldC\C + \renewcommand{\C}{\TextOrMath{\oldC}{\mathset{C}}} } \mm@macro{N}{\mathset{N}} \mm@macro{Z}{\mathset{Z}} \mm@macro{Q}{\mathset{Q}} |