texlive[66310] Master/texmf-dist: mismath (2mar23)

commits+karl at tug.org commits+karl at tug.org
Thu Mar 2 22:05:24 CET 2023


Revision: 66310
          http://tug.org/svn/texlive?view=revision&revision=66310
Author:   karl
Date:     2023-03-02 22:05:24 +0100 (Thu, 02 Mar 2023)
Log Message:
-----------
mismath (2mar23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/mismath/mismath.pdf
    trunk/Master/texmf-dist/source/latex/mismath/mismath.dtx
    trunk/Master/texmf-dist/tex/latex/mismath/mismath.sty

Modified: trunk/Master/texmf-dist/doc/latex/mismath/mismath.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/mismath/mismath.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/mismath/mismath.dtx	2023-03-02 21:05:00 UTC (rev 66309)
+++ trunk/Master/texmf-dist/source/latex/mismath/mismath.dtx	2023-03-02 21:05:24 UTC (rev 66310)
@@ -20,7 +20,7 @@
 %<*package> 
 \NeedsTeXFormat{LaTeX2e}[2005/12/01]
 \ProvidesPackage{mismath}   
-    [2023/02/24 v2.5 .dtx mismath file]
+    [2023/03/01 v2.6 .dtx mismath file]
 %</package>
 %<*driver>
 \documentclass{ltxdoc}
@@ -71,7 +71,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{634}
+% \CheckSum{635}
 %
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -182,6 +182,11 @@
 %    - a new `tensor' command,
 %    - small changes in the documentation}
 %
+% \changes{v2.6}{2023/03/01}{
+%    - A bug correction with the \C macro when using babel with russian
+%        (thanks to Murray Eisenberg for this bug report on TeX StackExchange)
+%    - Tiny changes in the documentation}
+%
 % \GetFileInfo{mismath.sty}
 %
 % \title{\textsf{mismath}\\ Miscellaneous mathematical macros\thanks{This document
@@ -188,7 +193,7 @@
 % corresponds to \textsf{mismath}~\fileversion, dated \filedate. 
 % Thanks to François Bastouil for help in English translation.}}
 % \author{Antoine Missier \\ \texttt{antoine.missier at ac-toulouse.fr}}
-% \date{February 24, 2023}
+% \date{March 1, 2023}
 %
 % \maketitle
 % \tableofcontents
@@ -229,11 +234,10 @@
 % if there is not another command with the same name in the packages loaded 
 % before \textsf{mismath}. If a macro is already defined,
 % a warning message will be produced and the \textsf{mismath} definition 
-% will simply be ignored. To keep \textsf{mismath} command, 
-% either load \textsf{mismath} before the other package 
-% with which it is in conflict for the name of that command 
-% (assuming the other package supports it), or use 
-% |\let\|\meta{command}|\relax| before loading \textsf{mismath}.
+% will simply be ignored. To keep the \textsf{mismath} command or the other one, use 
+% |\let\|\meta{command}|\relax|, before loading \textsf{mismath}, or after.
+% If the other one is defined with |\AtBeginDocument|, do the same for 
+% |\let\|\meta{command}|\relax| and for loading mismath.
 %
 % \medskip
 % \DescribeEnv{\oarg{options}}
@@ -626,7 +630,9 @@
 % whereas ``openwork'' letters ($\mathbb{R}, \mathbb{Z}, \ldots$) 
 % are reserved for writing at blackboard~\cite{LSHORT};
 % and likewise to designate a field: $\F$ or $\K$ (Körper in German).
-% We get these symbols with the macros:
+% We get these symbols with the macros
+% \footnote{The \texttt{\bslash C} macro is incompatible with \texttt{russian} option
+% of \textsf{babel}; then it will not be defined by \textsf{mismath}.}:
 % \begin{center}
 % |\R|, |\C|, |\Z|, |\N|, |\Q|, |\F|, |\K|.
 % \end{center}
@@ -665,7 +671,6 @@
 % |$\dlim_{x\to +\infty}\frac{1}{x}$| \quad  gives \quad  $\dlim_{x \to +\infty}\frac{1}{x}$.
 % \end{center}
 %
-% \medskip 
 % \DescribeMacro{\lbar} \DescribeMacro{\hlbar}
 % Large bars over expressions are obtained with |\overline|
 % or, shorter, its alias |\lbar|, to get for instance $\lbar{z_1z_2}$.
@@ -676,6 +681,7 @@
 % is better than $\lbar{z+z'}=\lbar{z}+\lbar{z'}$.
 % \end{center}
 %
+% \pagebreak
 % \DescribeMacro{\eqdef} \DescribeMacro{\eqdef*}
 % The |\eqdef| macro writes equality symbol topped with `def'
 % or with `$\scriptstyle \Delta$' for |\eqdef*|
@@ -992,7 +998,7 @@
 % \setlength{\extrarowheight}{1pt}
 % \begin{tabular}{ll}
 % \hline
-% \textsf{Deprecated command} & \textsf{New alternative} \\
+% Deprecated command & New alternative \\
 % \hline
 % |\enumber| & |\MathUp{e}| \\
 % |\inumber| & |\MathUp{i}| \\
@@ -1026,6 +1032,7 @@
 \@ifpackageloaded{mathtools}{}{\RequirePackage{mathtools}}
 \@ifpackageloaded{esvect}{}{\RequirePackage[b]{esvect}}
 \RequirePackage{ifthen}
+\RequirePackage{xparse} % for \NewDocumentCommand
 \RequirePackage{xspace}
 \RequirePackage{iftex}
 \ifmm at ibrackets\RequirePackage{ibrackets}\fi
@@ -1058,13 +1065,12 @@
 \newcommand\mm at macro[2]{
     \@ifundefined{#1}{
         \expandafter\def\csname #1\endcsname{#2}
-    }{\\mm at warning{#1}}
+    }{\mm at warning{#1}}
 }
-\newcommand\mm at operator[3][]{% 
-    \ifthenelse{\equal{#1}{}}{\def\tempa{#3}}{\def\tempa{#1}}
-    \@ifundefined{\tempa}{
+\NewDocumentCommand\mm at operator{O{#3}mm}{%
+    \@ifundefined{#1}{
         \DeclareMathOperator{#2}{#3}
-    }{\mm at warning{\tempa}}
+    }{\mm at warning{#1}}
 }
     
 %    \end{macrocode}
@@ -1075,7 +1081,7 @@
 % This command works also fine with other sans serif fonts like \textsf{cmbright}.
 %
 % Moreover for \textsf{beamer}, which changes the family default font (sans serif)
-% $\e, \i, \j$ have no effect without |\AtBeginDocument|.
+% |\e|, |\i|, |\j| have no effect without |\AtBeginDocument|.
 % 
 % |\AtBeginDocument| is also necessary to redefine |\i| when calling 
 % the \textsf{hyperref} package which overwrites the |\i| definition.
@@ -1369,7 +1375,10 @@
 
 \mm at macro{mathset}{\mathbf}
 \mm at macro{R}{\ensuremath{\mathset{R}}\xspace} 
-\mm at macro{C}{\ensuremath{\mathset{C}}\xspace}
+%\mm at macro{C}{\ensuremath{\mathset{C}}\xspace}
+\AtBeginDocument{\@ifpackagewith{babel}{russian}{\mm at warning{C}
+    }{\mm at macro{C}{\ensuremath{\mathset{C}}\xspace}}
+}
 \mm at macro{N}{\ensuremath{\mathset{N}}\xspace}
 \mm at macro{Z}{\ensuremath{\mathset{Z}}\xspace}
 \mm at macro{Q}{\ensuremath{\mathset{Q}}\xspace}
@@ -1388,12 +1397,14 @@
     \providecommand*{\hlbar}[1]{\overline{\vphantom{t}#1}}}{
     \mm at warning{hlbar} }
 \newcommand\@eqdef{\stackrel{\mathup{def}}{=}}
-\newcommand\@@eqdef{\stackrel{\Delta}{=}}
+\newcommand\@@eqdef{\stackrel{\mathrm{\Delta}}{=}}
 \mm at macro{eqdef}{\@ifstar{\@@eqdef}{\@eqdef}}
 \mm at macro{unbr}{\underbrace}
 \mm at macro{iif}{if and only if\xspace}
 
 %    \end{macrocode}
+% We used |\mathurm| before |\Delta| in the case of defining capital Greek letters
+% in italic (for example with the \textsf{fixmath} package).
 % Without |\mbox{}|, space produced by |\| in macro |\then| would be suppressed in tables.
 % \medskip
 %    \begin{macrocode}

Modified: trunk/Master/texmf-dist/tex/latex/mismath/mismath.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mismath/mismath.sty	2023-03-02 21:05:00 UTC (rev 66309)
+++ trunk/Master/texmf-dist/tex/latex/mismath/mismath.sty	2023-03-02 21:05:24 UTC (rev 66310)
@@ -22,7 +22,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2005/12/01]
 \ProvidesPackage{mismath}
-    [2023/02/24 v2.5 .dtx mismath file]
+    [2023/03/01 v2.6 .dtx mismath file]
 \newif\ifmm at ibrackets % initialized to false
 \DeclareOption{ibrackets}{\mm at ibracketstrue}
 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{amsmath}}
@@ -31,6 +31,7 @@
 \@ifpackageloaded{mathtools}{}{\RequirePackage{mathtools}}
 \@ifpackageloaded{esvect}{}{\RequirePackage[b]{esvect}}
 \RequirePackage{ifthen}
+\RequirePackage{xparse} % for \NewDocumentCommand
 \RequirePackage{xspace}
 \RequirePackage{iftex}
 \ifmm at ibrackets\RequirePackage{ibrackets}\fi
@@ -44,13 +45,12 @@
 \newcommand\mm at macro[2]{
     \@ifundefined{#1}{
         \expandafter\def\csname #1\endcsname{#2}
-    }{\\mm at warning{#1}}
+    }{\mm at warning{#1}}
 }
-\newcommand\mm at operator[3][]{%
-    \ifthenelse{\equal{#1}{}}{\def\tempa{#3}}{\def\tempa{#1}}
-    \@ifundefined{\tempa}{
+\NewDocumentCommand\mm at operator{O{#3}mm}{%
+    \@ifundefined{#1}{
         \DeclareMathOperator{#2}{#3}
-    }{\mm at warning{\tempa}}
+    }{\mm at warning{#1}}
 }
 
 \providecommand{\mathup}[1]{{\operatorfont #1}} % also in kpfonts
@@ -264,7 +264,9 @@
 
 \mm at macro{mathset}{\mathbf}
 \mm at macro{R}{\ensuremath{\mathset{R}}\xspace}
-\mm at macro{C}{\ensuremath{\mathset{C}}\xspace}
+\AtBeginDocument{\@ifpackagewith{babel}{russian}{\mm at warning{C}
+    }{\mm at macro{C}{\ensuremath{\mathset{C}}\xspace}}
+}
 \mm at macro{N}{\ensuremath{\mathset{N}}\xspace}
 \mm at macro{Z}{\ensuremath{\mathset{Z}}\xspace}
 \mm at macro{Q}{\ensuremath{\mathset{Q}}\xspace}
@@ -283,7 +285,7 @@
     \providecommand*{\hlbar}[1]{\overline{\vphantom{t}#1}}}{
     \mm at warning{hlbar} }
 \newcommand\@eqdef{\stackrel{\mathup{def}}{=}}
-\newcommand\@@eqdef{\stackrel{\Delta}{=}}
+\newcommand\@@eqdef{\stackrel{\mathrm{\Delta}}{=}}
 \mm at macro{eqdef}{\@ifstar{\@@eqdef}{\@eqdef}}
 \mm at macro{unbr}{\underbrace}
 \mm at macro{iif}{if and only if\xspace}



More information about the tex-live-commits mailing list.