summaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-10-10 03:03:17 +0000
committerNorbert Preining <norbert@preining.info>2022-10-10 03:03:17 +0000
commit9c7942efff8183c8695ec824008847dd068dbfe7 (patch)
treee33fd003ccafdc5be2fae32625d9dd06c6e339b6 /fonts
parentfec5c6c870d9c855fe6be355b088ca729184bdff (diff)
CTAN sync 202210100303
Diffstat (limited to 'fonts')
-rw-r--r--fonts/sansmathfonts/README.txt2
-rw-r--r--fonts/sansmathfonts/sansmathfonts.pdfbin292658 -> 361001 bytes
-rw-r--r--fonts/sansmathfonts/sansmathfonts.tex14
-rw-r--r--fonts/sansmathfonts/tex/sansmathfonts.sty21
4 files changed, 23 insertions, 14 deletions
diff --git a/fonts/sansmathfonts/README.txt b/fonts/sansmathfonts/README.txt
index aa27d12846..9739dc19f8 100644
--- a/fonts/sansmathfonts/README.txt
+++ b/fonts/sansmathfonts/README.txt
@@ -1,6 +1,6 @@
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 version was released 2022/10/09.
This package is released under the LaTeX Project Public License. See
https://www.latex-project.org//lppl/
diff --git a/fonts/sansmathfonts/sansmathfonts.pdf b/fonts/sansmathfonts/sansmathfonts.pdf
index aac794de4f..6e52c9dbc9 100644
--- a/fonts/sansmathfonts/sansmathfonts.pdf
+++ b/fonts/sansmathfonts/sansmathfonts.pdf
Binary files differ
diff --git a/fonts/sansmathfonts/sansmathfonts.tex b/fonts/sansmathfonts/sansmathfonts.tex
index a565329640..08b721de50 100644
--- a/fonts/sansmathfonts/sansmathfonts.tex
+++ b/fonts/sansmathfonts/sansmathfonts.tex
@@ -1,4 +1,4 @@
-% !TEX TS-program = pdflatex
+% !TEX TS-program = LuaLaTeX
% sansmathfonts.tex
%
@@ -6,11 +6,11 @@
%
% author: Ariel Barton
%
-% Copyright Ariel Barton, 2013--2021
+% Copyright Ariel Barton, 2013--2022
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
-% version 1.3 of this license or (at your option) any
+% version 1.3c of this license or (at your option) any
% later version.
% The latest version of the license is in
% http://www.latex-project.org/lppl.txt
@@ -22,13 +22,13 @@
% The complete list of files considered part of this work is in
% the file `sansmathfonts.pdf' and its source code `sansmathfonts.tex'.
%
-% Date: 2021/06/22
+% Date: 2022/10/09
\documentclass{amsart}
\raggedbottom
-\usepackage[T1]{fontenc}
+\usepackage[OT1]{fontenc}
\usepackage[I]{sansmathfonts}
%\renewcommand{\sfdefault}{xcmss}\let\mathserif\mathrm
\usepackage{hyperref, amsfonts, esint, slantsc, bm}
@@ -84,7 +84,7 @@ 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{[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. It will work under \textsf{pdflatex}'s defaults; in Lua\LaTeX\ or Xe\LaTeX, you will need to change the text encoding by saying \texttt{\string\usepackage[OT1]{fontenc}}.
\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
@@ -517,5 +517,7 @@ April 2019: Fixed a bug in the file \texttt{ucmsmf.fd} that prevented the \textt
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.
+\item
+October 2022: Bug fix to allow compatibility with Lua\LaTeX\ and Xe\LaTeX.
\end{itemize}
\end{document} \ No newline at end of file
diff --git a/fonts/sansmathfonts/tex/sansmathfonts.sty b/fonts/sansmathfonts/tex/sansmathfonts.sty
index 3c2dfd41b8..ef8566c5ad 100644
--- a/fonts/sansmathfonts/tex/sansmathfonts.sty
+++ b/fonts/sansmathfonts/tex/sansmathfonts.sty
@@ -4,11 +4,11 @@
%
% author: Ariel Barton
%
-% Copyright Ariel Barton, 2013
+% Copyright Ariel Barton, 2013--2022
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
-% version 1.3 of this license or (at your option) any
+% version 1.3c of this license or (at your option) any
% later version.
% The latest version of the license is in
% http://www.latex-project.org/lppl.txt
@@ -21,7 +21,7 @@
% the file `sansmathfonts.pdf' and its source code `sansmathfonts.tex'.
%
-\ProvidesPackage{sansmathfonts}[2021/06/22]
+\ProvidesPackage{sansmathfonts}[2022/10/09]
\newif \ifmath@sansmathfonts \math@sansmathfontstrue
\newif \iftext@sansmathfonts \text@sansmathfontstrue
@@ -43,8 +43,10 @@
\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.}
+ {The [I] package option is only
+ compatible with the OT1 and U font encodings.
+ To use the [I] option, please use the fontenc
+ package with OT1 encoding: \string\usepackage[OT1]\string{fontenc\string}}
\ifx\TOne@sansmathfonts \f@encoding \else
\text@sansmathfontsfalse
\PackageWarning{sansmathfonts}
@@ -54,10 +56,13 @@
\fi\fi
\let\sfdefault@sansmathfonts\sfdefault
+\def\Usfdefault@sansmathfonts{cmss}
\iftext@sansmathfonts
\def\sfdefault@sansmathfonts{xcmss}
+ \def\Usfdefault@sansmathfonts{xcmss}
\ifI@sansmathfonts
\def\sfdefault@sansmathfonts{cmsmf}%
+ \def\Usfdefault@sansmathfonts{cmsmf}%
\fi
\fi
@@ -72,7 +77,7 @@
\DeclareFontSubstitution{OML}{cmssm}{m}{it}
\DeclareFontSubstitution{OMS}{cmsssy}{m}{n}
\DeclareFontSubstitution{OMX}{cmssex}{m}{n}
-\DeclareFontSubstitution{U}{\sfdefault@sansmathfonts}{m}{n}
+\DeclareFontSubstitution{U}{\Usfdefault@sansmathfonts}{m}{n}
\DeclareSymbolFont{operators} {OT1}{cmsmf} {m}{n}
\DeclareSymbolFont{letters} {OML}{cmssm} {m}{it}
\DeclareSymbolFont{symbols} {OMS}{cmsssy}{m}{n}
@@ -96,7 +101,9 @@
\ifI@sansmathfonts
\PackageError{sansmathfonts}
{The [I] package option is only compatible with
- the OT1 and U font encodings.}
+ the OT1 and U font encodings. To use the [I] option,
+ please use the fontenc package with OT1 encoding:
+ \string\usepackage[OT1]\string{fontenc\string}}
{Please do not use the [I] option for the sansmathfonts
package, or select your font encoding before you load
the sansmathfonts package.}