From 939603b6090f08b7bca18dda001701b7f9b8e6a2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 27 Jul 2023 19:52:38 +0000 Subject: mismath (27jul23) git-svn-id: svn://tug.org/texlive/trunk@67745 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/mismath/mismath.sty | 30 ++++++++++++------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'Master/texmf-dist/tex/latex/mismath') 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}} -- cgit v1.2.3