summaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-01-26 03:00:51 +0000
committerNorbert Preining <norbert@preining.info>2024-01-26 03:00:51 +0000
commit2eae12e56ca15396e8ff63b3a9b0d450d675dc5e (patch)
tree7e6e61de2a219478694da749de27e15fe7c69ac8 /fonts
parent768d5db2700eb846ed6616dc4839993f193b22cd (diff)
CTAN sync 202401260300
Diffstat (limited to 'fonts')
-rw-r--r--fonts/newtxsf/README6
-rw-r--r--fonts/newtxsf/tex/newtxsf.sty27
2 files changed, 21 insertions, 12 deletions
diff --git a/fonts/newtxsf/README b/fonts/newtxsf/README
index 92a41e214f..a3c61736c9 100644
--- a/fonts/newtxsf/README
+++ b/fonts/newtxsf/README
@@ -2,7 +2,11 @@ This small package provides a math package that amounts to modifications of the
http://www.ctan.org/license/lppl1.3
for the details of that license.
-Current version: 1.055 2023-05-07
+Current version: 1.056 2024-01-25
+
+Changes in version 1.056
+Changed the definition for operators and related math alphabets to use OT1 encoding,
+fixing an issue with siunitx handling of \ohm.
Changes in version 1.055
1. Added option noSTIXops to newtxsf to allow forcing figures in math mode to be chosen from the text font rather than STIX sans serif.
diff --git a/fonts/newtxsf/tex/newtxsf.sty b/fonts/newtxsf/tex/newtxsf.sty
index 4105ce2702..2302e8b11d 100644
--- a/fonts/newtxsf/tex/newtxsf.sty
+++ b/fonts/newtxsf/tex/newtxsf.sty
@@ -2,8 +2,8 @@
%
% Michael Sharpe, msharpe at ucsd dot edu
-\def\fileversion{1.055}
-\def\filedate{2023/05/07}
+\def\fileversion{1.056}
+\def\filedate{2024/01/25}
\ProvidesPackage{newtxsf}
[\filedate\space v\fileversion]
@@ -50,21 +50,26 @@ amssymbols,uprightGreek}
\iftx@frenchm\tx@slantedGfalse\fi
\edef\bold@wt{b}
-\DeclareSymbolFont{operators}{\encodingdefault}{\familydefault}{m}{n}
-\SetSymbolFont{operators}{bold}{\encodingdefault}{\familydefault}{\bold@wt}{n}
+
+% 2024-01-24
+% Modify all \encodingdefault entries in this block to OT1
+% so that siunitx behaves with \ohm
+
+\DeclareSymbolFont{operators}{OT1}{\familydefault}{m}{n}
+\SetSymbolFont{operators}{bold}{OT1}{\familydefault}{\bold@wt}{n}
\def\operator@font{\mathgroup\symoperators}
\DeclareSymbolFontAlphabet{\mathrm}{operators}
-\DeclareMathAlphabet{\mathsf}{\encodingdefault}{\sfdefault}{m}{n}
-\DeclareMathAlphabet{\mathit}{\encodingdefault}{\familydefault}{m}{it}
-\DeclareMathAlphabet{\mathtt}{\encodingdefault}{\ttdefault}{m}{n}
+\DeclareMathAlphabet{\mathsf}{OT1}{\sfdefault}{m}{n}
+\DeclareMathAlphabet{\mathit}{OT1}{\familydefault}{m}{it}
+\DeclareMathAlphabet{\mathtt}{OT1}{\ttdefault}{m}{n}
\DeclareSymbolFontAlphabet{\mathrm}{operators}
-\DeclareMathAlphabet{\mathbf}{\encodingdefault}{\familydefault}{\bold@wt}{n}
-\SetMathAlphabet{\mathit}{bold}{\encodingdefault}{\familydefault}{\bold@wt}{it}
-\SetMathAlphabet{\mathsf}{bold}{\encodingdefault}{\sfdefault}{b}{n}
-\SetMathAlphabet{\mathtt}{bold}{\encodingdefault}{\ttdefault}{b}{n}
+\DeclareMathAlphabet{\mathbf}{OT1}{\familydefault}{\bold@wt}{n}
+\SetMathAlphabet{\mathit}{bold}{OT1}{\familydefault}{\bold@wt}{it}
+\SetMathAlphabet{\mathsf}{bold}{OT1}{\sfdefault}{b}{n}
+\SetMathAlphabet{\mathtt}{bold}{OT1}{\ttdefault}{b}{n}
%%%%%%%%%%%%%%%
% Math Italic %