diff options
Diffstat (limited to 'fonts/sansmathfonts/tex/sansmathfonts.sty')
-rw-r--r-- | fonts/sansmathfonts/tex/sansmathfonts.sty | 21 |
1 files changed, 14 insertions, 7 deletions
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.} |