diff options
author | Karl Berry <karl@freefriends.org> | 2025-01-18 21:04:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2025-01-18 21:04:51 +0000 |
commit | 389e1d5a29d2f19905379e867a8417fc2c861ad7 (patch) | |
tree | c84716aff351924ed7778887c174a03afc49e3b4 | |
parent | 19abdb051d817233ad2a9c74fb7b4d780603ff0c (diff) |
mathalpha (18jan25)
git-svn-id: svn://tug.org/texlive/trunk@73505 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/mathalpha/README | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/mathalpha/mathalpha-doc.pdf | bin | 1899045 -> 2075020 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/mathalpha/mathalpha-doc.tex | 29 | ||||
-rw-r--r-- | Master/texmf-dist/fonts/map/dvips/mathalpha/mathalpha.map | 6 | ||||
-rw-r--r-- | Master/texmf-dist/fonts/tfm/public/mathalpha/mathalpha-ncmbb-bold.tfm | bin | 0 -> 896 bytes | |||
-rw-r--r-- | Master/texmf-dist/fonts/tfm/public/mathalpha/mathalpha-ncmbb-book.tfm | bin | 0 -> 904 bytes | |||
-rw-r--r-- | Master/texmf-dist/fonts/tfm/public/mathalpha/mathalpha-ncmbb-regular.tfm | bin | 0 -> 912 bytes | |||
-rw-r--r-- | Master/texmf-dist/fonts/type1/public/mathalpha/mathalpha-ncmbb-bold.pfb | bin | 0 -> 34001 bytes | |||
-rw-r--r-- | Master/texmf-dist/fonts/type1/public/mathalpha/mathalpha-ncmbb-book.pfb | bin | 0 -> 35913 bytes | |||
-rw-r--r-- | Master/texmf-dist/fonts/type1/public/mathalpha/mathalpha-ncmbb-regular.pfb | bin | 0 -> 56888 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/latex/mathalpha/mathalpha.sty | 35 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/mathalpha.tlpsrc | 1 |
12 files changed, 64 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/mathalpha/README b/Master/texmf-dist/doc/latex/mathalpha/README index c20ee09b24d..d569a847836 100644 --- a/Master/texmf-dist/doc/latex/mathalpha/README +++ b/Master/texmf-dist/doc/latex/mathalpha/README @@ -11,7 +11,10 @@ It mostly bypasses the usual fd and sty files used to load these alphabets in order to allow each to be scaled independently and without silently quantizing the sizes. -Current version: 1.143 2021-11-18 +Current version: 1.145 2025-01-17 + +Version 1.145 adds a new Blackboard Bold alphabet derived from NewCMMath Blackboard Bold. +(Version 1.144 was not released.) 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. diff --git a/Master/texmf-dist/doc/latex/mathalpha/mathalpha-doc.pdf b/Master/texmf-dist/doc/latex/mathalpha/mathalpha-doc.pdf Binary files differindex 796fca00162..94fea2f9d83 100644 --- a/Master/texmf-dist/doc/latex/mathalpha/mathalpha-doc.pdf +++ b/Master/texmf-dist/doc/latex/mathalpha/mathalpha-doc.pdf diff --git a/Master/texmf-dist/doc/latex/mathalpha/mathalpha-doc.tex b/Master/texmf-dist/doc/latex/mathalpha/mathalpha-doc.tex index 03c3793c371..18667bb938c 100644 --- a/Master/texmf-dist/doc/latex/mathalpha/mathalpha-doc.tex +++ b/Master/texmf-dist/doc/latex/mathalpha/mathalpha-doc.tex @@ -1,6 +1,6 @@ % !TEX TS-program = pdflatexmk \documentclass[11pt]{article} -%\pdfmapfile{+bboldx.map} +\pdfmapfile{=mathalpha.map} %\pdfmapfile{+BOONDOXUprScr.map} \usepackage[margin=1in]{geometry} \usepackage[parfill]{parskip}\usepackage{url} @@ -20,6 +20,9 @@ \font\stixbbb=stix-mathbb-bold at 11pt \font\stixbbob=stix-mathbbit at 11pt \font\stixbbbob=stix-mathbbit-bold at 11pt +\font\ncmbbr=mathalpha-ncmbb-regular at 11pt +\font\ncmbbk=mathalpha-ncmbb-book at 11pt +\font\ncmbbb=mathalpha-ncmbb-bold at 11pt \usepackage{longtable} \usepackage{trace,fonttable} @@ -103,7 +106,7 @@ As initially configured, \textsf{mathalpha} makes available the following option \item[frakscaled=] Select a scale factor for \textsf{frak}. \item[bffrak] Force \verb|\mathfrak| to point to the bold version. \item[fraksymbols] Force the \texttt{frak} alphabet to load as a {\tt symbol} font. -\item[bb=] Select the Blackboard bold alphabet from \textsf{ams, lucida, mathpi, mma, mt, mth, pazo, fourier, esstix, boondox, px, tx, txof, libus, dsserif, bboldxLight, bboldx, dsfontserif, dsfontsans, stixtwo, stix}. +\item[bb=] Select the Blackboard bold alphabet from \textsf{ams, lucida, mathpi, mma, mt, mth, pazo, fourier, esstix, boondox, px, tx, txof, libus, dsserif, bboldxLight, bboldx, dsfontserif, dsfontsans, stixtwo, stix, ncmbbr, ncrbbk}. \item[bbscaled=] Select a scale factor for \textsf{bb}. \item[bfbb] Force \verb|\mathbb| to point to the bold version. \item[bbsymbols] Force the \texttt{bb} alphabet to load as a {\tt symbol} font. @@ -136,10 +139,11 @@ In particular, {\tt wolfram.map} must be enabled. Virtual fonts with metrics tha This provides virtual fonts with tfm names \textsf{esstixcal}, \textsf{esstixbb} and \textsf{esstixfrak}. \item The STIX fonts are currently (2021) distributed only in OpenType and PostScript ({\tt pfb}) formats. The PostScript BOONDOX fonts (in the USA, \emph{the boondocks} and \emph{the sticks} are essentially synonymous) containing their calligraphic, fraktur and double-struck (blackboard bold) alphabets in regular and bold weights were manufactured from STIX {\tt.otf} fonts using \textsf{FontForge}. Virtual fonts were then created using \textsf{fontinst} to customize the metrics for positioning accents and subscripts. \item STIX has now become a legacy package and is being replaced by STIX2, which has many similarities to STIX but also many dramatic differences. The calligraphic alphabets are quite different, the fraktur and blackboard bold not so much. +\item Two new BB options are available starting with {\tt mathalpha} 1.144---\textsf{ncmbbr} and \textsf{ncmbbk}, both derived from the BB alphabets in {\tt NewCMMath}, with suffixes \text{r, k} standing for regular and book weights respectively. (There is also a bold weight (more properly medium weight) with suffix \textsf{b}.) For comparison: weights \textsf{r, k, b} look like {\ncmbbr Ab12}, {\ncmbbk Ab12} and {\ncmbbb Ab12}. Regular is IMO suited only for Computer Modern based math fonts. \item TeX permits only 16 different math families, and a typical math font setup can easily lead to 7 or 8 before you even begin. The {\tt bm} package will add 4 additional bold families even if you don't make any use of them. It's easy to see that adding new math alphabets can lead to problems with the math families count, and the problems can be compounded if the alphabets were not set up with these issues in mind. There are two basic ways to construct a math alphabet. In both cases, one must construct the information normally provided in the {\.fd} file, but which may be set out just as well in the {\tt sty} file. This information links the font name and attributes (bold, medium, etc) to the name of the corresponding {\tt tfm} files.\\ -\textbf{Case 1:} You wish to be able to access at most the upper and lower case letters and the numeral 1 as mathematical symbols. The appropriate command is \verb|\DeclareMathAlphabet|, which does not add to the math families count if not used in the document.\\ +\textbf{Case 1:} You wish to be able to access at most the upper and lower case letters and any available numerals as mathematical symbols. The appropriate command is \verb|\DeclareMathAlphabet|, which does not add to the math families count if not used in the document. Moreover, in recent versions of \LaTeX, \verb|\DeclareMathAlphabet| does not add to that count except in the math fragment in which it is applied.\\ \textbf{Case 2:} You wish to be able to access other slots to create mathematic symbols. These requires that you use the less efficient \verb|\DeclareSymbolFont|, which does add to the math families count even if not used in the document. In this package I have tried to maximize the use of \verb|\DeclareMathAlphabet|. @@ -464,9 +468,16 @@ Here are some samples from the fonts mentioned above: \font\libus=libertinust1-mathbb \sample{{\tt\small\spc libus} (libertinust1-mathbb):} {\libus \al\\\alx} -\sample{{\tt\small\spc dsfont-serif} (Dsfont Serif):} {\usefont{U}{dsrom}{m}{n}\al\\\alx} +\sample{{\tt\small\spc ncmbbr} (mathalpha-ncmbb-regular):} {\ncmbbr \al\\\alx} + +\sample{{\tt\small\spc ncmbbk} (mathalpha-ncmbb-book):} {\ncmbbk \al\\\alx} -\vspace{4pt}\textsc{Geometric Shapes, Sans Serif:}\\[9pt] +\sample{{\tt\small\spc ncmbbb} (mathalpha-ncmbb-bold):} {\ncmbbb \al\\\alx} + +\sample{{\tt\small\spc dsfont-serif} (Dsfont Serif):} {\usefont{U}{dsrom}{m}{n}\al\\\alx} +\newpage +%\vspace{4pt} +\textsc{Geometric Shapes, Sans Serif:}\\[9pt] \sample{{\tt\small\spc lucida} (Lucida bb):} {\usefont{LMR}{hlcm}{m}{n}\al} \sample{{\tt\small\spc lucida} (Lucida Bold bb):} {\usefont{LMR}{hlcm}{b}{n}\al} @@ -516,7 +527,13 @@ Here are some samples from the fonts mentioned above: \textsc{Notes:} \begin{itemize} \item Not many Blackboard Bold fonts contain Greek alphabets. A notable exception is {\tt bbold} and its new successor, {\tt bboldx}. The latest version of {\tt dsserif} supports most uppercase Greek letters. -\item A growing number of Blackboard Bold fonts contain numerals: all {\tt STIX} and {\tt BOONDOX}, all {\tt bboldx}, {\tt dsserif}, {\tt tx} offer a full list of numerals, and {\tt pazo} contains the most import figure, $\mathbb{1}$. +\item Several Blackboard Bold fonts (\verb|STIX*|, \verb|\tt ncmbb*|) contain a few Greek, dotless and slanted symbols, typically {\ncmbbb \char123 \char124 \char128 \char129 \char130 \char131 \char132 \char133 \char134 \char135 \char136 \char137}. Using one of these symbols in a fragment of math is best handled by using \verb|\usefont| and the {\tt amsmath} \verb|\text| macro. For example, in the current math font, {\tt stixtwo}, $\mathbb{\Gamma}$ is in slot 0 and you can define a text character for it by +\begin{verbatim} +\def\txtbbGamma{{\usefont{U}{stixtwobb}{m}{n}\char0 }} +\end{verbatim} +\def\txtbbGamma{{\usefont{U}{stixtwobb}{m}{n}\char0 }} +and then use it in a math expression, like \verb|$\text{\txtbbGamma}+\frac{1}{\text{\txtbbGamma}}$|, which renders as $\text{\txtbbGamma}+\frac{1}{\text{\txtbbGamma}}$. Note the correct sizing in the denominator. (Actually, this definition is already in {\tt mathalpha.sty}, but that may not be the case with other math alphabets.) +\item A growing number of Blackboard Bold fonts contain numerals: all {\tt STIX} and {\tt BOONDOX}, all {\tt bboldx}, all \verb|ncmbb*|, {\tt dsserif}, {\tt tx} offer a full list of numerals, and {\tt pazo} contains the most import figure, $\mathbb{1}$. \item Unlike the original \textsc{stix} {\tt type1} fonts, \textsc{stix2} {\tt type1} does not provide bold weight for blackboard bold and blackboard bold italic, and the latter has no alphabetic glyphs as of October 2021. \item \textsf{Lucida} fonts generally need to be reduced in scale to match other math and text fonts. diff --git a/Master/texmf-dist/fonts/map/dvips/mathalpha/mathalpha.map b/Master/texmf-dist/fonts/map/dvips/mathalpha/mathalpha.map new file mode 100644 index 00000000000..181c1cbec7f --- /dev/null +++ b/Master/texmf-dist/fonts/map/dvips/mathalpha/mathalpha.map @@ -0,0 +1,6 @@ +% mathalpha.map is meant for fonts used in mathalpha.sty +% but which have no dedicated package. + +mathalpha-ncmbb-regular ncmbb-regular <mathalpha-ncmbb-regular.pfb +mathalpha-ncmbb-book ncmbb-book <mathalpha-ncmbb-book.pfb +mathalpha-ncmbb-bold ncmbb-bold <mathalpha-ncmbb-bold.pfb diff --git a/Master/texmf-dist/fonts/tfm/public/mathalpha/mathalpha-ncmbb-bold.tfm b/Master/texmf-dist/fonts/tfm/public/mathalpha/mathalpha-ncmbb-bold.tfm Binary files differnew file mode 100644 index 00000000000..2696f114593 --- /dev/null +++ b/Master/texmf-dist/fonts/tfm/public/mathalpha/mathalpha-ncmbb-bold.tfm diff --git a/Master/texmf-dist/fonts/tfm/public/mathalpha/mathalpha-ncmbb-book.tfm b/Master/texmf-dist/fonts/tfm/public/mathalpha/mathalpha-ncmbb-book.tfm Binary files differnew file mode 100644 index 00000000000..0f55cbfbd4f --- /dev/null +++ b/Master/texmf-dist/fonts/tfm/public/mathalpha/mathalpha-ncmbb-book.tfm diff --git a/Master/texmf-dist/fonts/tfm/public/mathalpha/mathalpha-ncmbb-regular.tfm b/Master/texmf-dist/fonts/tfm/public/mathalpha/mathalpha-ncmbb-regular.tfm Binary files differnew file mode 100644 index 00000000000..206d7f2ed17 --- /dev/null +++ b/Master/texmf-dist/fonts/tfm/public/mathalpha/mathalpha-ncmbb-regular.tfm diff --git a/Master/texmf-dist/fonts/type1/public/mathalpha/mathalpha-ncmbb-bold.pfb b/Master/texmf-dist/fonts/type1/public/mathalpha/mathalpha-ncmbb-bold.pfb Binary files differnew file mode 100644 index 00000000000..9e1e761931e --- /dev/null +++ b/Master/texmf-dist/fonts/type1/public/mathalpha/mathalpha-ncmbb-bold.pfb diff --git a/Master/texmf-dist/fonts/type1/public/mathalpha/mathalpha-ncmbb-book.pfb b/Master/texmf-dist/fonts/type1/public/mathalpha/mathalpha-ncmbb-book.pfb Binary files differnew file mode 100644 index 00000000000..bb677f2d5fd --- /dev/null +++ b/Master/texmf-dist/fonts/type1/public/mathalpha/mathalpha-ncmbb-book.pfb diff --git a/Master/texmf-dist/fonts/type1/public/mathalpha/mathalpha-ncmbb-regular.pfb b/Master/texmf-dist/fonts/type1/public/mathalpha/mathalpha-ncmbb-regular.pfb Binary files differnew file mode 100644 index 00000000000..50cf9e71ec2 --- /dev/null +++ b/Master/texmf-dist/fonts/type1/public/mathalpha/mathalpha-ncmbb-regular.pfb diff --git a/Master/texmf-dist/tex/latex/mathalpha/mathalpha.sty b/Master/texmf-dist/tex/latex/mathalpha/mathalpha.sty index c32088ce658..bab8cba86d0 100644 --- a/Master/texmf-dist/tex/latex/mathalpha/mathalpha.sty +++ b/Master/texmf-dist/tex/latex/mathalpha/mathalpha.sty @@ -1,6 +1,6 @@ \NeedsTeXFormat{LaTeX2e} -\def\mathalphaVersion{1.143} -\def\mathalphaDate{2021/11/18} +\def\mathalphaVersion{1.145} +\def\mathalphaDate{2025/01/17} \ProvidesPackage{mathalpha}[\mathalphaDate\space-\space\mathalphaVersion mathalpha (License LPPL) Michael Sharpe] \message{`mathalpha' v\mathalphaVersion, \mathalphaDate, a renaming of mathalfa (msharpe)} @@ -21,7 +21,7 @@ \def\mathalfa@scrm{m} % available choices -\def\bb@lst{ams, lucida, mathpi, mma, mt, mth, pazo, fourier, esstix, boondox, px, tx, txof, libus, dsserif, bboldxLight, bboldx, dsfontserif, dsfontsans, stixtwo, stix} +\def\bb@lst{ams, lucida, mathpi, mma, mt, mth, pazo, fourier, esstix, boondox, px, tx, txof, libus, dsserif, bboldxLight, bboldx, dsfontserif, dsfontsans, stixtwo, stix, ncmbbr, ncmbbk} \def\cal@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@lst{euler, lucida, mathpi, mma, mt, esstix, boondox, pxtx, stixtwo} \def\mathalfa@bbnr{-1}\def\mathalfa@calnr{-1} @@ -66,7 +66,7 @@ \define@boolkey{mathalfa}{bfbb}[true]{\def\mathalfa@bbm{b}\@nameuse{mathalfa@bbb#1}} % showoptions \DeclareOption{showoptions}{\PackageError{mathalpha}{Package Options:^^J bb=\bb@lst^^J cal=\cal@lst^^J frak=\frak@lst^^J scr=\cal@lst^^J bbscaled=1.0, calscaled=1.0, frakscaled=1.0, scrscaled=1.0^^J Bold versions may be forced by one of options bfbb, bfcal, bffrak, bfscr.^^J The following exceptions should be noted:^^J -bb: stix2, dsfontsans, dsfontserif, libusbb, tx, esstix,^^J\space\space pazo, mathpi, ams^^J +bb: stixtwo, dsfontsans, dsfontserif, libusbb, tx, esstix,^^J\space\space pazo, mathpi, ams, stix, ncmbbr, ncmbbk^^J cal and scr: esstix, zapfc, mtc, mathpical, rsfs, rsfso^^J frak: lucida, esstix, mathpi^^J }{}}%was scr=\scr@lst @@ -108,7 +108,7 @@ frak: lucida, esstix, mathpi^^J % Blackboard Bold %%%%%%%%%%%%%%%%%% START \mathbb % -\ifcase\mathalfa@bbnr\relax% item 0 of {ams, lucida, mathpi, mma, mt, mth, pazo, fourier, esstix, boondox, px, tx, txof, libus, dsserif, bboldx-light, bboldx, dsfont-serif, dsfont-sans, stix} +\ifcase\mathalfa@bbnr\relax% item 0 of {ams, lucida, mathpi, mma, mt, mth, pazo, fourier, esstix, boondox, px, tx, txof, libus, dsserif, bboldx-light, bboldx, dsfont-serif, dsfont-sans, stix, stixtwo, ncmbbr, ncmbbk} % ams \ifmathalfa@bbb\mathalpha@boldError{ams}{bb}\fi \DeclareFontFamily{U}{msb}{}% @@ -408,6 +408,31 @@ frak: lucida, esstix, mathpi^^J % \def\txtbbeight{{\usefont{U}{stixonebb}{m}{n}8}} % \def\txtbbnine{{\usefont{U}{stixonebb}{m}{n}9}} \fi +\or %ncmbbr + \DeclareFontFamily{U}{ncmbbr}{\skewchar \font =45} + \DeclareFontShape{U}{ncmbbr}{m}{n}{ + <-> \mathalfa@bbscaled mathalpha-ncmbb-regular}{} + \DeclareFontShape{U}{ncmbbr}{b}{n}{ + <-> \mathalfa@bbscaled mathalpha-ncmbb-bold}{} + \DeclareMathAlphabet{\mathbb}{U}{ncmbbr}{\mathalfa@bbm}{n} + \ifmathalfa@bbb\else + \SetMathAlphabet{\mathbb}{bold}{U}{ncmbbr}{b}{n} + \DeclareMathAlphabet{\mathbfbb} {U}{ncmbbr}{b}{n} + \fi +\or %ncmbbk + \DeclareFontFamily{U}{ncmbbk}{\skewchar \font =45} + \DeclareFontShape{U}{ncmbbk}{m}{n}{ + <-> \mathalfa@bbscaled mathalpha-ncmbb-book}{} + \DeclareFontShape{U}{ncmbbk}{b}{n}{ + <-> \mathalfa@bbscaled mathalpha-ncmbb-bold}{} + \DeclareMathAlphabet{\mathbb}{U}{ncmbbk}{\mathalfa@bbm}{n} + \ifmathalfa@bbb\else + \SetMathAlphabet{\mathbb}{bold}{U}{ncmbbk}{b}{n} + \DeclareMathAlphabet{\mathbfbb} {U}{ncmbbk}{b}{n} + \fi + + + \fi %%%%%%%%%%%%%%%%%% END \mathbb diff --git a/Master/tlpkg/tlpsrc/mathalpha.tlpsrc b/Master/tlpkg/tlpsrc/mathalpha.tlpsrc index e69de29bb2d..493569ed3f6 100644 --- a/Master/tlpkg/tlpsrc/mathalpha.tlpsrc +++ b/Master/tlpkg/tlpsrc/mathalpha.tlpsrc @@ -0,0 +1 @@ +execute addMap ${PKGNAME}.map |