Skip to contentSkip to conversation

Cope with behavior change in newtxtext v1.738

PATCH Applied Akira Yokosawa 2 participants 2 messages Feb 19, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Cope with behavior change in newtxtext v1.738

Recently, newtxtext's behavior of sans-serif font setting has become unstable and the option helvratio stopped working as of newtxtext v1.738.

As a workaround, load tgheros.sty provided by the tex-gyre package before loading newtxtext with the same scaling facter which works with previous versions of newtxtext.

Do similar changes in pstricks figures under SMPdesign/ which use sans-serif font only.

Note:
newtxtext's main feature is to provide improved Times Roman clone based on TeX Gyre Termes. The author of newtxtext doesn't pay much attention on sans-serif font behavior, it seems, and has made v1.738 and later respect default sans-serif font at the time of loading newtxtext.sty.

Changelog in newtx's README [1] reads:

Changes in version 1.738
1. Documentation updated for newtx.sty usage.
2. Modified newtx.sty and newtxtext.sty to ensure that default effects of \mathsf and \mathtt are the same in both cases, and to ensure that in both, the prior loading of a sf or tt text font would result in those being used for \mathsf, \mathtt without any further interventions.

---
 SMPdesign/DiningPhilosopher4part-b.tex | 2 +-
 SMPdesign/DiningPhilosopher5.tex       | 2 +-
 SMPdesign/DiningPhilosopher5PEM.tex    | 2 +-
 SMPdesign/DiningPhilosopher5TB.tex     | 2 +-
 perfbook-lt.tex                        | 1 +
 5 files changed, 5 insertions(+), 4 deletions(-)
SMPdesign/DiningPhilosopher4part-b.tex +1 -1
index 2d1c307e..c004aa14 100644
@@ -5,7 +5,7 @@
 \usepackage{pst-eps}
 \usepackage{multido}
 \usepackage{calc}
-\usepackage[helvratio=0.9]{newtxtext}
+\usepackage[scale=0.9]{tgheros}
 \renewcommand{\familydefault}{\sfdefault}
 
 \begin{document}
SMPdesign/DiningPhilosopher5.tex +1 -1
index a892f11b..9b471f70 100644
@@ -5,7 +5,7 @@
 \usepackage{pst-eps}
 \usepackage{multido}
 \usepackage{calc}
-\usepackage[helvratio=0.9]{newtxtext}
+\usepackage[scale=0.9]{tgheros}
 \renewcommand{\familydefault}{\sfdefault}
 
 \begin{document}
SMPdesign/DiningPhilosopher5PEM.tex +1 -1
index 55db3773..4c77f482 100644
@@ -5,7 +5,7 @@
 \usepackage{pst-eps}
 \usepackage{multido}
 \usepackage{calc}
-\usepackage[helvratio=0.9]{newtxtext}
+\usepackage[scale=0.9]{tgheros}
 \renewcommand{\familydefault}{\sfdefault}
 
 \begin{document}
SMPdesign/DiningPhilosopher5TB.tex +1 -1
index c2015991..259d0f0f 100644
@@ -5,7 +5,7 @@
 \usepackage{pst-eps}
 \usepackage{multido}
 \usepackage{calc}
-\usepackage[helvratio=0.9]{newtxtext}
+\usepackage[scale=0.9]{tgheros}
 \renewcommand{\familydefault}{\sfdefault}
 
 \begin{document}
perfbook-lt.tex +1 -0
index 7c4ad53a..fd598a56 100644
@@ -14,6 +14,7 @@
 % A more pleasant font
 \usepackage[full]{textcomp} % use symbols in TS1 encoding
 \usepackage{lmodern}
+\usepackage[scale=0.9]{tgheros}
 \usepackage[T1]{fontenc} % use postscript type 1 fonts
 \usepackage[table,svgnames]{xcolor} % newtxtext v1.73 loads xcolor without options
 \usepackage[defaultsups,helvratio=0.9]{newtxtext} % use nice, standard fonts for roman

base-commit: b0f4bfe76079bd952351ccd925832b161889e0ae

Signature · 1 line
2.34.1
#1 lore raw
Quoted 26 lines · Akira Yokosawa

Recently, newtxtext's behavior of sans-serif font setting has become unstable and the option helvratio stopped working as of newtxtext v1.738.

As a workaround, load tgheros.sty provided by the tex-gyre package before loading newtxtext with the same scaling facter which works with previous versions of newtxtext.

Do similar changes in pstricks figures under SMPdesign/ which use sans-serif font only.

Note:
newtxtext's main feature is to provide improved Times Roman clone based on TeX Gyre Termes. The author of newtxtext doesn't pay much attention on sans-serif font behavior, it seems, and has made v1.738 and later respect default sans-serif font at the time of loading newtxtext.sty.

Changelog in newtx's README [1] reads:

Changes in version 1.738
1. Documentation updated for newtx.sty usage.
2. Modified newtx.sty and newtxtext.sty to ensure that default effects of \mathsf and \mathtt are the same in both cases, and to ensure that in both, the prior loading of a sf or tt text font would result in those being used for \mathsf, \mathtt without any further interventions.

Quoted 2 lines

Queued, thank you very much!

Some of these packages do seem to take some keeping up with, and thank you for doing that.

Thanx, Paul

Quoted 77 lines
---
 SMPdesign/DiningPhilosopher4part-b.tex | 2 +-
 SMPdesign/DiningPhilosopher5.tex       | 2 +-
 SMPdesign/DiningPhilosopher5PEM.tex    | 2 +-
 SMPdesign/DiningPhilosopher5TB.tex     | 2 +-
 perfbook-lt.tex                        | 1 +
 5 files changed, 5 insertions(+), 4 deletions(-)
SMPdesign/DiningPhilosopher4part-b.tex +1 -1
index 2d1c307e..c004aa14 100644
@@ -5,7 +5,7 @@
 \usepackage{pst-eps}
 \usepackage{multido}
 \usepackage{calc}
-\usepackage[helvratio=0.9]{newtxtext}
+\usepackage[scale=0.9]{tgheros}
 \renewcommand{\familydefault}{\sfdefault}
 
 \begin{document}
SMPdesign/DiningPhilosopher5.tex +1 -1
index a892f11b..9b471f70 100644
@@ -5,7 +5,7 @@
 \usepackage{pst-eps}
 \usepackage{multido}
 \usepackage{calc}
-\usepackage[helvratio=0.9]{newtxtext}
+\usepackage[scale=0.9]{tgheros}
 \renewcommand{\familydefault}{\sfdefault}
 
 \begin{document}
SMPdesign/DiningPhilosopher5PEM.tex +1 -1
index 55db3773..4c77f482 100644
@@ -5,7 +5,7 @@
 \usepackage{pst-eps}
 \usepackage{multido}
 \usepackage{calc}
-\usepackage[helvratio=0.9]{newtxtext}
+\usepackage[scale=0.9]{tgheros}
 \renewcommand{\familydefault}{\sfdefault}
 
 \begin{document}
SMPdesign/DiningPhilosopher5TB.tex +1 -1
index c2015991..259d0f0f 100644
@@ -5,7 +5,7 @@
 \usepackage{pst-eps}
 \usepackage{multido}
 \usepackage{calc}
-\usepackage[helvratio=0.9]{newtxtext}
+\usepackage[scale=0.9]{tgheros}
 \renewcommand{\familydefault}{\sfdefault}
 
 \begin{document}
perfbook-lt.tex +1 -0
index 7c4ad53a..fd598a56 100644
@@ -14,6 +14,7 @@
 % A more pleasant font
 \usepackage[full]{textcomp} % use symbols in TS1 encoding
 \usepackage{lmodern}
+\usepackage[scale=0.9]{tgheros}
 \usepackage[T1]{fontenc} % use postscript type 1 fonts
 \usepackage[table,svgnames]{xcolor} % newtxtext v1.73 loads xcolor without options
 \usepackage[defaultsups,helvratio=0.9]{newtxtext} % use nice, standard fonts for roman

base-commit: b0f4bfe76079bd952351ccd925832b161889e0ae

Signature · 1 line
2.34.1