summaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-06-23 03:01:05 +0000
committerNorbert Preining <norbert@preining.info>2021-06-23 03:01:05 +0000
commita809a190ff669feb11cb64db915b763abd0bed81 (patch)
tree6794c6d439e4e4afe002c5230493427c330b959e /fonts
parent2a49c67eee870febe71143a093f3c304e0033153 (diff)
CTAN sync 202106230301
Diffstat (limited to 'fonts')
-rw-r--r--fonts/sansmathfonts/README.txt (renamed from fonts/sansmathfonts/README)5
-rw-r--r--fonts/sansmathfonts/doc/sansmathfonts.pdfbin264428 -> 0 bytes
-rw-r--r--fonts/sansmathfonts/sansmathfonts.map (renamed from fonts/sansmathfonts/map/sansmathfonts.map)0
-rw-r--r--fonts/sansmathfonts/sansmathfonts.pdfbin0 -> 292658 bytes
-rw-r--r--fonts/sansmathfonts/sansmathfonts.tex (renamed from fonts/sansmathfonts/doc/sansmathfonts.tex)44
-rw-r--r--fonts/sansmathfonts/tex/omxcmssex.fd2
-rw-r--r--fonts/sansmathfonts/tex/ot1cmsmf.fd8
-rw-r--r--fonts/sansmathfonts/tex/ot1xcmss.fd8
-rw-r--r--fonts/sansmathfonts/tex/sansmathfonts.sty64
-rw-r--r--fonts/sansmathfonts/tex/t1xcmss.fd8
-rw-r--r--fonts/sansmathfonts/tex/ucmsmf.fd8
-rw-r--r--fonts/sansmathfonts/tex/uxcmss.fd8
12 files changed, 127 insertions, 28 deletions
diff --git a/fonts/sansmathfonts/README b/fonts/sansmathfonts/README.txt
index b6eb356eb1..aa27d12846 100644
--- a/fonts/sansmathfonts/README
+++ b/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/fonts/sansmathfonts/doc/sansmathfonts.pdf b/fonts/sansmathfonts/doc/sansmathfonts.pdf
deleted file mode 100644
index d420ca7e9a..0000000000
--- a/fonts/sansmathfonts/doc/sansmathfonts.pdf
+++ /dev/null
Binary files differ
diff --git a/fonts/sansmathfonts/map/sansmathfonts.map b/fonts/sansmathfonts/sansmathfonts.map
index c92f41f520..c92f41f520 100644
--- a/fonts/sansmathfonts/map/sansmathfonts.map
+++ b/fonts/sansmathfonts/sansmathfonts.map
diff --git a/fonts/sansmathfonts/sansmathfonts.pdf b/fonts/sansmathfonts/sansmathfonts.pdf
new file mode 100644
index 0000000000..aac794de4f
--- /dev/null
+++ b/fonts/sansmathfonts/sansmathfonts.pdf
Binary files differ
diff --git a/fonts/sansmathfonts/doc/sansmathfonts.tex b/fonts/sansmathfonts/sansmathfonts.tex
index a0721b7c16..a565329640 100644
--- a/fonts/sansmathfonts/doc/sansmathfonts.tex
+++ b/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/fonts/sansmathfonts/tex/omxcmssex.fd b/fonts/sansmathfonts/tex/omxcmssex.fd
index 434b6b2734..2df949dce1 100644
--- a/fonts/sansmathfonts/tex/omxcmssex.fd
+++ b/fonts/sansmathfonts/tex/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/fonts/sansmathfonts/tex/ot1cmsmf.fd b/fonts/sansmathfonts/tex/ot1cmsmf.fd
index 98f17cf6b2..ad57f77c0d 100644
--- a/fonts/sansmathfonts/tex/ot1cmsmf.fd
+++ b/fonts/sansmathfonts/tex/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/fonts/sansmathfonts/tex/ot1xcmss.fd b/fonts/sansmathfonts/tex/ot1xcmss.fd
index 68ef66e78a..38e3618d91 100644
--- a/fonts/sansmathfonts/tex/ot1xcmss.fd
+++ b/fonts/sansmathfonts/tex/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/fonts/sansmathfonts/tex/sansmathfonts.sty b/fonts/sansmathfonts/tex/sansmathfonts.sty
index bb47e5ff75..3c2dfd41b8 100644
--- a/fonts/sansmathfonts/tex/sansmathfonts.sty
+++ b/fonts/sansmathfonts/tex/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/fonts/sansmathfonts/tex/t1xcmss.fd b/fonts/sansmathfonts/tex/t1xcmss.fd
index 225221fde2..dc1a25d4a2 100644
--- a/fonts/sansmathfonts/tex/t1xcmss.fd
+++ b/fonts/sansmathfonts/tex/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/fonts/sansmathfonts/tex/ucmsmf.fd b/fonts/sansmathfonts/tex/ucmsmf.fd
index e7fbd1a876..e2cec723cc 100644
--- a/fonts/sansmathfonts/tex/ucmsmf.fd
+++ b/fonts/sansmathfonts/tex/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/fonts/sansmathfonts/tex/uxcmss.fd b/fonts/sansmathfonts/tex/uxcmss.fd
index 91e045eba7..86aa793694 100644
--- a/fonts/sansmathfonts/tex/uxcmss.fd
+++ b/fonts/sansmathfonts/tex/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}
{%