Cope with behavior change in newtxtext v1.738
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
Paul E. McKenney
AppliedQuoted 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
Signed-off-by Akira Yokosawa <[email protected]>
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@@ -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@@ -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@@ -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@@ -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@@ -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 romanbase-commit:
b0f4bfe76079bd952351ccd925832b161889e0aeSignature · 1 line
2.34.1