diff options
author | Akira Yokosawa <akiyks@gmail.com> | 2024-02-19 20:56:40 +0900 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2024-02-24 09:57:00 -0800 |
commit | 6a0fdb930326ded7e3935cbb70374e2f3c8654ee (patch) | |
tree | e9b342bf7c6816819eec894f19572162a3d24f6b | |
parent | b0f4bfe76079bd952351ccd925832b161889e0ae (diff) | |
download | perfbook-6a0fdb930326ded7e3935cbb70374e2f3c8654ee.tar.gz |
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.
Link: [1] https://mirrors.ctan.org/fonts/newtx/README
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
-rw-r--r-- | SMPdesign/DiningPhilosopher4part-b.tex | 2 | ||||
-rw-r--r-- | SMPdesign/DiningPhilosopher5.tex | 2 | ||||
-rw-r--r-- | SMPdesign/DiningPhilosopher5PEM.tex | 2 | ||||
-rw-r--r-- | SMPdesign/DiningPhilosopher5TB.tex | 2 | ||||
-rw-r--r-- | perfbook-lt.tex | 1 |
5 files changed, 5 insertions, 4 deletions
diff --git a/SMPdesign/DiningPhilosopher4part-b.tex b/SMPdesign/DiningPhilosopher4part-b.tex index 2d1c307e..c004aa14 100644 --- a/SMPdesign/DiningPhilosopher4part-b.tex +++ b/SMPdesign/DiningPhilosopher4part-b.tex @@ -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} diff --git a/SMPdesign/DiningPhilosopher5.tex b/SMPdesign/DiningPhilosopher5.tex index a892f11b..9b471f70 100644 --- a/SMPdesign/DiningPhilosopher5.tex +++ b/SMPdesign/DiningPhilosopher5.tex @@ -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} diff --git a/SMPdesign/DiningPhilosopher5PEM.tex b/SMPdesign/DiningPhilosopher5PEM.tex index 55db3773..4c77f482 100644 --- a/SMPdesign/DiningPhilosopher5PEM.tex +++ b/SMPdesign/DiningPhilosopher5PEM.tex @@ -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} diff --git a/SMPdesign/DiningPhilosopher5TB.tex b/SMPdesign/DiningPhilosopher5TB.tex index c2015991..259d0f0f 100644 --- a/SMPdesign/DiningPhilosopher5TB.tex +++ b/SMPdesign/DiningPhilosopher5TB.tex @@ -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} diff --git a/perfbook-lt.tex b/perfbook-lt.tex index 7c4ad53a..fd598a56 100644 --- a/perfbook-lt.tex +++ b/perfbook-lt.tex @@ -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 |