summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-06-22 21:07:38 +0000
committerKarl Berry <karl@freefriends.org>2021-06-22 21:07:38 +0000
commitdeb2b67ec39e0fed53848b55b8c8fb58477df8f3 (patch)
tree2cc49f8703501754afa31d3cc892e37f2281a699 /Master/texmf-dist
parent92291f51b83a8f778bc5e630ff7b521a3329b6c5 (diff)
sansmathfonts (22jun21)
git-svn-id: svn://tug.org/texlive/trunk@59673 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/fonts/sansmathfonts/README.txt (renamed from Master/texmf-dist/doc/fonts/sansmathfonts/README)5
-rw-r--r--Master/texmf-dist/doc/fonts/sansmathfonts/sansmathfonts.pdfbin264428 -> 292658 bytes
-rw-r--r--Master/texmf-dist/doc/fonts/sansmathfonts/sansmathfonts.tex44
-rw-r--r--Master/texmf-dist/tex/latex/sansmathfonts/omxcmssex.fd2
-rw-r--r--Master/texmf-dist/tex/latex/sansmathfonts/ot1cmsmf.fd8
-rw-r--r--Master/texmf-dist/tex/latex/sansmathfonts/ot1xcmss.fd8
-rw-r--r--Master/texmf-dist/tex/latex/sansmathfonts/sansmathfonts.sty64
-rw-r--r--Master/texmf-dist/tex/latex/sansmathfonts/t1xcmss.fd8
-rw-r--r--Master/texmf-dist/tex/latex/sansmathfonts/ucmsmf.fd8
-rw-r--r--Master/texmf-dist/tex/latex/sansmathfonts/uxcmss.fd8
10 files changed, 127 insertions, 28 deletions
diff --git a/Master/texmf-dist/doc/fonts/sansmathfonts/README b/Master/texmf-dist/doc/fonts/sansmathfonts/README.txt
index b6eb356eb12..aa27d128469 100644
--- a/Master/texmf-dist/doc/fonts/sansmathfonts/README
+++ b/Master/texmf-dist/doc/fonts/sansmathfonts/README.txt
@@ -1,5 +1,7 @@
The sansmathfonts package provides math fonts designed to work with the Computer Modern sans serif typeface, as well as some missing Computer Modern sans serif text fonts.
+This version was released 2021/06/22.
+
This package is released under the LaTeX Project Public License. See
https://www.latex-project.org//lppl/
or
@@ -8,4 +10,5 @@ for the details of that license.
This package has the LPPL maintenance status ``maintained''. The package author is Ariel Barton; she may be contacted at origamist@gmail.com.
-For more information, see the documentation file sansmathfonts.pdf. \ No newline at end of file
+For more information, see the documentation file sansmathfonts.pdf.
+
diff --git a/Master/texmf-dist/doc/fonts/sansmathfonts/sansmathfonts.pdf b/Master/texmf-dist/doc/fonts/sansmathfonts/sansmathfonts.pdf
index d420ca7e9ad..aac794de4f5 100644
--- a/Master/texmf-dist/doc/fonts/sansmathfonts/sansmathfonts.pdf
+++ b/Master/texmf-dist/doc/fonts/sansmathfonts/sansmathfonts.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/fonts/sansmathfonts/sansmathfonts.tex b/Master/texmf-dist/doc/fonts/sansmathfonts/sansmathfonts.tex
index a0721b7c165..a565329640c 100644
--- a/Master/texmf-dist/doc/fonts/sansmathfonts/sansmathfonts.tex
+++ b/Master/texmf-dist/doc/fonts/sansmathfonts/sansmathfonts.tex
@@ -6,7 +6,7 @@
%
% author: Ariel Barton
%
-% Copyright Ariel Barton, 2013--2019
+% Copyright Ariel Barton, 2013--2021
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -22,17 +22,21 @@
% The complete list of files considered part of this work is in
% the file `sansmathfonts.pdf' and its source code `sansmathfonts.tex'.
%
-% Date: 2019/04/04
+% Date: 2021/06/22
\documentclass{amsart}
\raggedbottom
-\usepackage{sansmathfonts}
+\usepackage[T1]{fontenc}
+\usepackage[I]{sansmathfonts}
+%\renewcommand{\sfdefault}{xcmss}\let\mathserif\mathrm
\usepackage{hyperref, amsfonts, esint, slantsc, bm}
%\let\mathserif\mathrm
-%\usepackage[T1]{fontenc}
+
+\typeout{********************************}
+\typeout{Current font encoding: \csname f@encoding\endcsname}
\def\sectionautorefname{Section}
@@ -45,15 +49,19 @@
\begin{document}
+
+
\maketitle
+
+
The Computer Modern font family has a sans serif typeface. However, compared to the serif typeface, it is incomplete: there are no sans serif small caps or math fonts. Furthermore, the bold slanted font is not available as an outline font.
This leads to highly unsatisfactory typography of documents that use sans serif for the body text.
The \textsf{sansmathfonts} package provides these ``missing'' fonts. Most of the usefulness of the package is in the fonts; \texttt{sansmathfonts.sty} is a small package providing \LaTeX\ support. To use it, simply say \texttt{\char`\\usepackage\char`\{sansmathfonts\char`\}} in the document preamble.
-This will redefine the document's default sans serif font family from \textsf{cmss} to \textsf{xcmss}; this will make the \textsf{\textbf{\textit{bold slanted}}} and \textsf{\textsc{Caps and small caps}} fonts available via normal \LaTeX\ font commands (\verb|\textbf|, \verb|\textit| and \verb|\textsc|). If you additionally load Harald Harder's \textsf{slantsc} package, this will make \textsf{\textit{\textsc{slanted caps and small caps}}} available.
+In the default (OT1) text font encoding, and also in the T1 and U font encodings, this will redefine the document's default sans serif font family from \textsf{cmss} to \textsf{xcmss}; this will make the \textsf{\textbf{\textit{bold slanted}}} and \textsf{\textsc{Caps and small caps}} fonts available via normal \LaTeX\ font commands (\verb|\textbf|, \verb|\textit| and \verb|\textsc|). If you additionally load Harald Harder's \textsf{slantsc} package, this will make \textsf{\textit{\textsc{slanted caps and small caps}}} available.
This will also switch the math fonts to sans serif:
\[\Im \mathop{\mathrm{exp}}(i\omega)=\sin(\omega) \]
@@ -63,20 +71,26 @@ By default, the commands \verb|\mathrm| and \verb|\mathsf| both produce sans ser
\[\mathrm{mathrm}\quad\mathsf{mathsf}\quad\mathserif{mathserif}\]
\textsf{sansmathfonts} knows about the \textsf{beamer} document class and will automatically use \textsf{beamer}'s \texttt{professionalfonts} theme.
-
-If you prefer roman math fonts, either use the \texttt{[notmath]} package option, or don't use the package at all; instead use the line \texttt{\char`\\renewcommand\char`\{\char`\\sfdefault\char`\}\char `\{xcmss\char`\}}
-in the document preamble.
-
The math fonts differ slightly from Knuth's standard sans serif fonts. Specifically, for ease of reading I have chosen to put the serifs back on the uppercase I, Pi and~Xi:
-\[I\quad\mathrm{I}\quad\mathbf{I}\quad\bm{I}\quad
-\mathit{\Pi}\quad\Pi\quad\mathbf{\Pi}\quad
-\mathit{\Xi}\quad\Xi\quad\mathbf{\Xi}\quad
-\text{and not\quad \textsf{I\quad \char5\quad\char4}}\]
-\textsf{Sans serif Is outside of math mode} still have no serifs unless the package option \texttt{[I]} is used; note that this option is incompatible with the T1 encoding.
+\[{I}\quad\mathrm{I}\quad\mathbf{I}\quad\bm{I}\quad
+\mathit{\Pi}\quad{\Pi}\quad\mathbf{\Pi}\quad
+\mathit{\Xi}\quad{\Xi}\quad\mathbf{\Xi}\quad
+\text{and not\quad \textsf{\font \rawfont = cmss10 \rawfont I\quad \char5\quad\char4}}\]
+\textsf{Sans serif Is outside of math mode} still have no serifs unless the package option \texttt{[I]} is used; note that this option as yet only works with the OT1 and U font encodings.
Feedback is appreciated and may be sent to \texttt{origamist@gmail.com}.
+\section{Package options}
+
+\begin{itemize}
+\item \texttt{[I]} The \texttt{[I]} package option puts the serifs back on the capital I even in text mode. This option only works with the OT1 and U font encodings.
+\item \texttt{[onlymath]}, \texttt{[nottext]}. These options provide sans serif math but do not change the text sans serif font.
+\item \texttt{[onlytext]}, \texttt{[notmath]}. These options provide sans serif text fonts and improve the behavior of \texttt{\char`\\mathsf} but do not change the default math font from roman to sans serif. You can get a similar effect by not using the \textsf{sansmathfonts} package and using the line \texttt{\char`\\renewcommand\char`\{\char`\\sfdefault\char`\}\char `\{xcmss\char`\}}
+or
+\texttt{\char`\\renewcommand\char`\{\char`\\sfdefault\char`\}\char `\{cmsmf\char`\}}
+in the document preamble.
+\end{itemize}
@@ -501,5 +515,7 @@ February 2017: Corrected the font names in \texttt{sansmathfonts.map}; this allo
April 2019: Fixed a bug in the file \texttt{ucmsmf.fd} that prevented the \texttt{[I]} package option from working correctly; rewrote most of the \texttt{.fd} files to allow fonts to be loaded at arbitrary sizes; changed maintenance status from ``author-maintained'' to ``maintained''.
\item
June 2019: Rewrote the file \texttt{omxcmssex.fd} to allow the math extended characters to be loaded at arbitrary sizes.
+\item
+June 2021: Rewrote the OT1, T1, and U font definition files to substitute bold-extended fonts for bold fonts as necessary. Added some package errors and warnings if the document font encoding is not supported.
\end{itemize}
\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/sansmathfonts/omxcmssex.fd b/Master/texmf-dist/tex/latex/sansmathfonts/omxcmssex.fd
index 434b6b27348..2df949dce1c 100644
--- a/Master/texmf-dist/tex/latex/sansmathfonts/omxcmssex.fd
+++ b/Master/texmf-dist/tex/latex/sansmathfonts/omxcmssex.fd
@@ -14,7 +14,7 @@
%%
%%
\ProvidesFile{omxcmssex.fd}
- [2019/06/10]
+ [2021/06/22]
\DeclareFontFamily{OMX}{cmssex}{}
\DeclareFontShape{OMX}{cmssex}{m}{n}{
<-7.5> cmssex7
diff --git a/Master/texmf-dist/tex/latex/sansmathfonts/ot1cmsmf.fd b/Master/texmf-dist/tex/latex/sansmathfonts/ot1cmsmf.fd
index 98f17cf6b26..ad57f77c0d2 100644
--- a/Master/texmf-dist/tex/latex/sansmathfonts/ot1cmsmf.fd
+++ b/Master/texmf-dist/tex/latex/sansmathfonts/ot1cmsmf.fd
@@ -14,7 +14,7 @@
%%
%%
\ProvidesFile{ot1cmsmf.fd}
- [2019/04/04]
+ [2021/06/22]
\DeclareFontFamily{OT1}{cmsmf}{\hyphenchar\font45 }
% Serifed I, Pi, Xi
\DeclareFontShape{OT1}{cmsmf}{m}{n}
@@ -78,6 +78,12 @@
{%
<->cmsmfxicsc10%
}{}
+\DeclareFontShape{OT1}{cmsmf}{b}{n}{<->sub*xcmss/bx/n}{}
+\DeclareFontShape{OT1}{cmsmf}{b}{it}{<->sub*xcmss/bx/it}{}
+\DeclareFontShape{OT1}{cmsmf}{b}{sl}{<->sub*xcmss/bx/sl}{}
+\DeclareFontShape{OT1}{cmsmf}{b}{sc}{<->sub*xcmss/bx/sc}{}
+\DeclareFontShape{OT1}{cmsmf}{b}{scsl}{<->sub*xcmss/bx/scsl}{}
+\DeclareFontShape{OT1}{cmsmf}{b}{scit}{<->sub*xcmss/bx/scit}{}
% Odd shapes
\DeclareFontShape{OT1}{cmsmf}{sbc}{n}
{%
diff --git a/Master/texmf-dist/tex/latex/sansmathfonts/ot1xcmss.fd b/Master/texmf-dist/tex/latex/sansmathfonts/ot1xcmss.fd
index 68ef66e78a8..38e3618d91c 100644
--- a/Master/texmf-dist/tex/latex/sansmathfonts/ot1xcmss.fd
+++ b/Master/texmf-dist/tex/latex/sansmathfonts/ot1xcmss.fd
@@ -13,7 +13,7 @@
%%
%%
\ProvidesFile{ot1xcmss.fd}
- [2019/04/04]
+ [2021/06/22]
\DeclareFontFamily{OT1}{xcmss}{\hyphenchar\font45 }
\DeclareFontShape{OT1}{xcmss}{m}{n}
{%
@@ -77,6 +77,12 @@
{%
<->cmssxicsc10%
}{}
+\DeclareFontShape{OT1}{xcmss}{b}{n}{<->sub*xcmss/bx/n}{}
+\DeclareFontShape{OT1}{xcmss}{b}{it}{<->sub*xcmss/bx/it}{}
+\DeclareFontShape{OT1}{xcmss}{b}{sl}{<->sub*xcmss/bx/sl}{}
+\DeclareFontShape{OT1}{xcmss}{b}{sc}{<->sub*xcmss/bx/sc}{}
+\DeclareFontShape{OT1}{xcmss}{b}{scsl}{<->sub*xcmss/bx/scsl}{}
+\DeclareFontShape{OT1}{xcmss}{b}{scit}{<->sub*xcmss/bx/scit}{}
% Odd shapes
\DeclareFontShape{OT1}{xcmss}{sbc}{n}
{%
diff --git a/Master/texmf-dist/tex/latex/sansmathfonts/sansmathfonts.sty b/Master/texmf-dist/tex/latex/sansmathfonts/sansmathfonts.sty
index bb47e5ff753..3c2dfd41b87 100644
--- a/Master/texmf-dist/tex/latex/sansmathfonts/sansmathfonts.sty
+++ b/Master/texmf-dist/tex/latex/sansmathfonts/sansmathfonts.sty
@@ -21,17 +21,46 @@
% the file `sansmathfonts.pdf' and its source code `sansmathfonts.tex'.
%
-\ProvidesPackage{sansmathfonts}[2013/03/22]
+\ProvidesPackage{sansmathfonts}[2021/06/22]
\newif \ifmath@sansmathfonts \math@sansmathfontstrue
+\newif \iftext@sansmathfonts \text@sansmathfontstrue
+\newif \ifI@sansmathfonts \I@sansmathfontsfalse
-\def\sfdefault@sansmathfonts{xcmss}
-
-\DeclareOption{notmath}{\math@sansmathfontsfalse}
-\DeclareOption{I}{\def\sfdefault@sansmathfonts{cmsmf}}
+\DeclareOption{notmath} {\math@sansmathfontsfalse}
+\DeclareOption{onlytext}{\math@sansmathfontsfalse}
+\DeclareOption{onlymath}{\text@sansmathfontsfalse}
+\DeclareOption{nottext} {\text@sansmathfontsfalse}
+\DeclareOption{I}{\I@sansmathfontstrue}
\ProcessOptions
+\def\OTOne@sansmathfonts{OT1}
+\def\TOne@sansmathfonts{T1}
+\def\U@sansmathfonts{U}
+
+\ifx\OTOne@sansmathfonts \f@encoding \else
+\ifx\U@sansmathfonts \f@encoding \else
+ \I@sansmathfontsfalse
+ \PackageWarning{sansmathfonts}
+ {The [I] package option is only compatible with the OT1 and U
+ font encodings. I will ignore the [I] package option.}
+ \ifx\TOne@sansmathfonts \f@encoding \else
+ \text@sansmathfontsfalse
+ \PackageWarning{sansmathfonts}
+ {Sans serif text fonts are only provided for OT1, T1, and U font
+ encodings. I will not change the sans serif text font.}
+ \fi
+\fi\fi
+
+\let\sfdefault@sansmathfonts\sfdefault
+\iftext@sansmathfonts
+ \def\sfdefault@sansmathfonts{xcmss}
+ \ifI@sansmathfonts
+ \def\sfdefault@sansmathfonts{cmsmf}%
+ \fi
+\fi
+
\ifmath@sansmathfonts
% Turn off Beamer math replacements
@@ -61,6 +90,27 @@
\@ifpackageloaded{esint}{%
\DeclareSymbolFont{largesymbolsA}{U}{ssesint}{m}{n}
}{}
+ %
+ \ifx\OTOne@sansmathfonts \f@encoding \else
+ \ifx\U@sansmathfonts \f@encoding \else
+ \ifI@sansmathfonts
+ \PackageError{sansmathfonts}
+ {The [I] package option is only compatible with
+ the OT1 and U font encodings.}
+ {Please do not use the [I] option for the sansmathfonts
+ package, or select your font encoding before you load
+ the sansmathfonts package.}
+ \fi
+ \ifx\TOne@sansmathfonts \f@encoding \else
+ \iftext@sansmathfonts
+ \PackageError{sansmathfonts}
+ {Sans serif text fonts are only
+ provided for OT1, T1, and U font encodings.}
+ {Please use the [onlymath] option for the sansmathfonts
+ package, or select your font encoding before you
+ load the sansmathfonts package.}
+ \fi \fi
+ \fi \fi
}
% beamer currently sets
@@ -77,7 +127,6 @@
\DeclareSymbolFontAlphabet{\mathnormal}{letters}
\DeclareSymbolFontAlphabet{\mathcal} {symbols}
\DeclareMathAlphabet {\mathbf}{OT1}{cmsmf}{bx}{n}
-\DeclareMathAlphabet {\mathsf}{OT1}{cmsmf}{m}{n}
\DeclareMathAlphabet {\mathit}{OT1}{cmsmf}{m}{it}
\DeclareMathAlphabet {\mathtt}{OT1}{cmtt}{m}{n}
\SetMathAlphabet\mathsf{bold}{OT1}{cmsmf}{bx}{n}
@@ -86,8 +135,9 @@
\fi
\DeclareMathAlphabet {\mathserif}{OT1}{cmr}{m}{n}
+\DeclareMathAlphabet {\mathsf}{OT1}{cmsmf}{m}{n}
% Use the improved sans family
% (provides sans serif small caps fonts)
-\def\sfdefault{\sfdefault@sansmathfonts}
+\let\sfdefault\sfdefault@sansmathfonts
diff --git a/Master/texmf-dist/tex/latex/sansmathfonts/t1xcmss.fd b/Master/texmf-dist/tex/latex/sansmathfonts/t1xcmss.fd
index 225221fde24..dc1a25d4a2d 100644
--- a/Master/texmf-dist/tex/latex/sansmathfonts/t1xcmss.fd
+++ b/Master/texmf-dist/tex/latex/sansmathfonts/t1xcmss.fd
@@ -14,7 +14,7 @@
%%
%%
\ProvidesFile{t1xcmss.fd}
- [2019/04/04]
+ [2021/06/22]
\providecommand{\EC@family}[5]{%
\DeclareFontShape{#1}{#2}{#3}{#4}%
{
@@ -46,6 +46,12 @@
\EC@family{T1}{xcmss}{bx}{sc}{eczx} % New: bold sans serif small caps
\EC@family{T1}{xcmss}{bx}{scsl}{eczo} % New: slanted bold sans serif small caps
\EC@family{T1}{xcmss}{bx}{scit}{eczo} % New: slanted bold sans serif small caps
+\DeclareFontShape{T1}{xcmss}{b}{n}{<->sub*xcmss/bx/n}{}
+\DeclareFontShape{T1}{xcmss}{b}{it}{<->sub*xcmss/bx/it}{}
+\DeclareFontShape{T1}{xcmss}{b}{sl}{<->sub*xcmss/bx/sl}{}
+\DeclareFontShape{T1}{xcmss}{b}{sc}{<->sub*xcmss/bx/sc}{}
+\DeclareFontShape{T1}{xcmss}{b}{scsl}{<->sub*xcmss/bx/scsl}{}
+\DeclareFontShape{T1}{xcmss}{b}{scit}{<->sub*xcmss/bx/scit}{}
%%%%%%% semibold condensed series
\DeclareFontShape{T1}{xcmss}{sbc}{n}{%
<->ecssdc10
diff --git a/Master/texmf-dist/tex/latex/sansmathfonts/ucmsmf.fd b/Master/texmf-dist/tex/latex/sansmathfonts/ucmsmf.fd
index e7fbd1a876c..e2cec723cc0 100644
--- a/Master/texmf-dist/tex/latex/sansmathfonts/ucmsmf.fd
+++ b/Master/texmf-dist/tex/latex/sansmathfonts/ucmsmf.fd
@@ -14,7 +14,7 @@
%%
%%
\ProvidesFile{ucmsmf.fd}
- [2019/04/04]
+ [2021/06/22]
\DeclareFontFamily{U}{cmsmf}{\hyphenchar\font45 }
% Serifed I, Pi, Xi
\DeclareFontShape{U}{cmsmf}{m}{n}
@@ -78,6 +78,12 @@
{%
<->cmsmfxicsc10%
}{}
+\DeclareFontShape{U}{cmsmf}{b}{n}{<->sub*xcmss/bx/n}{}
+\DeclareFontShape{U}{cmsmf}{b}{it}{<->sub*xcmss/bx/it}{}
+\DeclareFontShape{U}{cmsmf}{b}{sl}{<->sub*xcmss/bx/sl}{}
+\DeclareFontShape{U}{cmsmf}{b}{sc}{<->sub*xcmss/bx/sc}{}
+\DeclareFontShape{U}{cmsmf}{b}{scsl}{<->sub*xcmss/bx/scsl}{}
+\DeclareFontShape{U}{cmsmf}{b}{scit}{<->sub*xcmss/bx/scit}{}
% Odd shapes
\DeclareFontShape{U}{cmsmf}{sbc}{n}
{%
diff --git a/Master/texmf-dist/tex/latex/sansmathfonts/uxcmss.fd b/Master/texmf-dist/tex/latex/sansmathfonts/uxcmss.fd
index 91e045eba78..86aa7936945 100644
--- a/Master/texmf-dist/tex/latex/sansmathfonts/uxcmss.fd
+++ b/Master/texmf-dist/tex/latex/sansmathfonts/uxcmss.fd
@@ -13,7 +13,7 @@
%%
%%
\ProvidesFile{uxcmss.fd}
- [2019/04/04]
+ [2021/06/22]
\DeclareFontFamily{U}{xcmss}{\hyphenchar\font45 }
\DeclareFontShape{U}{xcmss}{m}{n}
{%
@@ -77,6 +77,12 @@
{%
<->cmssxicsc10%
}{}
+\DeclareFontShape{U}{xcmss}{b}{n}{<->sub*xcmss/bx/n}{}
+\DeclareFontShape{U}{xcmss}{b}{it}{<->sub*xcmss/bx/it}{}
+\DeclareFontShape{U}{xcmss}{b}{sl}{<->sub*xcmss/bx/sl}{}
+\DeclareFontShape{U}{xcmss}{b}{sc}{<->sub*xcmss/bx/sc}{}
+\DeclareFontShape{U}{xcmss}{b}{scsl}{<->sub*xcmss/bx/scsl}{}
+\DeclareFontShape{U}{xcmss}{b}{scit}{<->sub*xcmss/bx/scit}{}
% Odd shapes
\DeclareFontShape{U}{xcmss}{sbc}{n}
{%