texlive[61089] Master/texmf-dist: mathalpha (18nov21)

commits+karl at tug.org commits+karl at tug.org
Thu Nov 18 21:58:14 CET 2021


Revision: 61089
          http://tug.org/svn/texlive?view=revision&revision=61089
Author:   karl
Date:     2021-11-18 21:58:14 +0100 (Thu, 18 Nov 2021)
Log Message:
-----------
mathalpha (18nov21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/mathalpha/README
    trunk/Master/texmf-dist/tex/latex/mathalpha/mathalpha.sty

Modified: trunk/Master/texmf-dist/doc/latex/mathalpha/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathalpha/README	2021-11-18 00:48:55 UTC (rev 61088)
+++ trunk/Master/texmf-dist/doc/latex/mathalpha/README	2021-11-18 20:58:14 UTC (rev 61089)
@@ -11,8 +11,10 @@
 alphabets in order to allow each to be scaled independently and 
 without silently quantizing the sizes.
 
-Current version: 1.142 2021-11-01
+Current version: 1.143 2021-11-18
 
+Version 1.143 fixes a problem where mathalpha would erase a prior choice of Blackboard Bold font, due to a code duplication that made a test false on the first round but true on the second.
+
 Version 1.142 corrects for missing \fi in a number of \mathfrak definitions due, I think, to an erroneous mass copy and paste in 1.14.
 
 Version 1.14 marks a rather major revision, incorporating a number of suggestions from Frank Mittelbach. 

Modified: trunk/Master/texmf-dist/tex/latex/mathalpha/mathalpha.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mathalpha/mathalpha.sty	2021-11-18 00:48:55 UTC (rev 61088)
+++ trunk/Master/texmf-dist/tex/latex/mathalpha/mathalpha.sty	2021-11-18 20:58:14 UTC (rev 61089)
@@ -1,6 +1,6 @@
 \NeedsTeXFormat{LaTeX2e}
-\def\mathalphaVersion{1.142}
-\def\mathalphaDate{2021/11/01}
+\def\mathalphaVersion{1.143}
+\def\mathalphaDate{2021/11/18}
 \ProvidesPackage{mathalpha}[\mathalphaDate\space-\space\mathalphaVersion
  mathalpha (License LPPL) Michael Sharpe]
 \message{`mathalpha' v\mathalphaVersion, \mathalphaDate, a renaming of mathalfa (msharpe)}
@@ -24,6 +24,9 @@
 \def\bb at lst{ams, lucida, mathpi, mma, mt, mth, pazo, fourier, esstix, boondox, px, tx, txof, libus, dsserif, bboldxLight, bboldx, dsfontserif, dsfontsans, stixtwo, stix}
 \def\cal at lst{cm, euler, rsfso, rsfs, lucida, mathpi, mma, mt, mtc, zapfc, esstix, boondox, boondoxo, dutchcal, pxtx, bickham, bickhams, stix, txupr, boondoxupr, kp, stixplain, stixfancy, stixtwoplain, stixtwofancy}
 \def\frak at lst{euler, lucida, mathpi, mma, mt, esstix, boondox, pxtx, stixtwo}
+\def\mathalfa at bbnr{-1}\def\mathalfa at calnr{-1}
+\def\mathalfa at fraknr{-1}\def\mathalfa at scrnr{-1}
+\def\minusone{-1}
 % aliases
 \newif\ifmathalfa at oldbold
 \define at boolkey{mathalfa}{oldbold}[true]{\@nameuse{mathalfa at oldbold#1}}
@@ -32,8 +35,8 @@
 \define at boolkey{mathalfa}{calsymbols}[true]{\@nameuse{mathalfa at calsym#1}}
 \define at boolkey{mathalfa}{scrsymbols}[true]{\@nameuse{mathalfa at scrsym#1}}
 
-\edef\mathalfa at bbnr{\m at ne}\edef\mathalfa at calnr{\m at ne}
-\edef\mathalfa at fraknr{\m at ne}\edef\mathalfa at scrnr{\m at ne}
+%\edef\mathalfa at bbnr{\m at ne}\edef\mathalfa at calnr{\m at ne}
+%\edef\mathalfa at fraknr{\m at ne}\edef\mathalfa at scrnr{\m at ne}
 % scaled
 \define at key{mathalfa}{scaled}[1.0]{%
 \def\mathalfa at bbscaled{s*[#1]}\def\mathalfa at bbrawscaled{#1} \def\mathalfa at calscaled{s*[#1]}\def\mathalfa at calrawscaled{#1} \def\mathalfa at frakscaled{s*[#1]}\def\mathalfa at frakrawscaled{#1} \def\mathalfa at scrscaled{s*[#1]}\def\mathalfa at scrrawscaled{#1}}% all at once
@@ -74,11 +77,17 @@
   \x}
 \ProcessOptions* % run \DeclareOption* on each option specified, in order
 % Convert scaled choices to macros
-\expandafter\ifx\csname mathalfa at bbscaled\endcsname\relax \let\mathalfa at bbscaled\@empty
-\fi
-\expandafter\ifx\csname mathalfa at calscaled\endcsname\relax \let\mathalfa at calscaled\@empty\fi
-\expandafter\ifx\csname mathalfa at frakscaled\endcsname\relax \let\mathalfa at frakscaled\@empty\fi
-\expandafter\ifx\csname mathalfa at scrscaled\endcsname\relax \let\mathalfa at scrscaled\@empty\fi
+%\expandafter\ifx\csname mathalfa at bbscaled\endcsname\relax \let\mathalfa at bbscaled\@empty
+%\fi
+%\expandafter\ifx\csname mathalfa at calscaled\endcsname\relax \let\mathalfa at calscaled\@empty\fi
+%\expandafter\ifx\csname mathalfa at frakscaled\endcsname\relax \let\mathalfa at frakscaled\@empty\fi
+%\expandafter\ifx\csname mathalfa at scrscaled\endcsname\relax \let\mathalfa at scrscaled\@empty\fi
+\ifx\mathalfa at bbnr\minusone\else\let\mathbb\relax\let\mathbbb\relax\fi
+%\ifnum \mathalfa at bbnr<0
+%\else\let\mathbb\relax\let\mathbbb\relax\fi
+%\ifx\mathalfa at calnr\minusone\else\let\mathcal\relax\fi
+\ifx\mathalfa at fraknr\minusone\else\let\mathfrak\relax\let\mathbfrak\relax\fi
+\ifx\mathalfa at scrnr\minusone\else\let\mathscr\relax\fi
 % Check for lucida loaded
 \newif\iflucid at loaded \lucid at loadedfalse
 \expandafter\ifx\csname DeclareLucidaFontShape\endcsname\relax\else\lucid at loadedtrue\fi% 
@@ -90,11 +99,6 @@
 \@ifpackageloaded{amsfonts}{%
   \let\amsloaded=Y%
 }{}%
-% Undefine some previous settings
-\ifx\mathalfa at bbnr\m at ne\else\let\mathbb\relax\let\mathbfbb\relax\fi
-%\ifx\mathalfa at calnr\m at ne\else\let\mathcal\relax\fi
-\ifx\mathalfa at fraknr\m at ne\else\let\mathfrak\relax\let\mathbffrak\relax\fi
-\ifx\mathalfa at scrnr\m at ne\else\let\mathscr\relax\fi
 % Some error messages
 \newcommand*\mathalpha at boldError[2]{%#1=item specified, #2 from bb,cal,scr,frak
 \PackageError{mathalpha}{You specified `#2=#1,b#2', but `#1' has no bold\space#2}{}}



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