Fix warning of missing font shape
PATCH 1/3 Fix warning of missing font shape
Since commit 6be27f7414d8 ("Use Biolinum font family for epigraph"), new warning messages appear in the .log file which read:
LaTeX Font Warning: Font shape `OT1/minntx/sb/n' undefined
(Font) using `OT1/minntx/m/n' instead on input line 622.
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
This is because the netwxmath package detects boilinum/libertine fonts which have semi-bold shape and sets the option of semi-bold shape for bold math on top of newtxtext's default font (Times Roman clone), which doesn't provide semi-bold shape.
Using 'OT1/minntx/m/n' for bold math means it will be rendered in normal (non-bold) shape.
This might be a bug in newtxmath, but can be avoided by moving the load of biolinum after the load of newtxmath.
Currently, perfbook doesn't use \mathbf{} and there is no visible defect in rendered math equations. But it is better to fix this potential regression sooner rather than later.
After loading biolinum, restore newtxtext's \sfdefault (Helvetica clone).
--- perfbook-lt.tex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
perfbook-lt.tex +3 -1
@@ -13,7 +13,6 @@ % A more pleasant font \usepackage[full]{textcomp} % use symbols in TS1 encoding -\usepackage{biolinum} \usepackage{lmodern} \usepackage[T1]{fontenc} % use postscript type 1 fonts \usepackage[defaultsups,helvratio=0.9]{newtxtext} % use nice, standard fonts for roman
@@ -324,6 +323,9 @@ \DeclareFontShape{\encodingdefault}{\rmdefault}{bx}{sl}{<->ssub * ptm/b/sl}{}% } } +\usepackage{biolinum} +% restore \sfdefault of newtxtext +\renewcommand{\sfdefault}{qhv} \newcommand{\LstLineNo}{\makebox[5ex][r]{\arabic{VerbboxLineNo}\hspace{2ex}}}
base-commit: 2d2853f4b29d0369dd3b64435d5a53203380cf96
Signature · 1 line
2.25.1
PATCH 2/3 Stop loading fixltx2e
As is mentioned in the trailing comment and a warning in the log:
Package fixltx2e Warning: fixltx2e is not required with releases after 2015
(fixltx2e) All fixes are now in the LaTeX kernel.
(fixltx2e) See the latexrelease package for details.
, it should be safe to comment it out in 2023.
--- perfbook-lt.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
perfbook-lt.tex +1 -1
@@ -22,7 +22,7 @@ \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts \usepackage{etoolbox} -\usepackage{fixltx2e} % for \textsubscript, nop on Tex Live 2015 and later +%\usepackage{fixltx2e} % for \textsubscript, nop since Tex Live 2015 \usepackage{float} \floatstyle{ruled} \newfloat{listing}{tbp}{lst}[chapter]
Signature · 1 line
2.25.1
PATCH 3/3 parallel-latex-regress.sh: Pass WHICH=which to reference Makefile
In reply to Akira YokosawaCommit fbcd7ed25527 ("Stop using 'which' command in build scripts") broke utilities/parallel-latex-regress.sh due to the missing definition of WHICH in epstopdf-rule.mk and a2ping-rule.mk.
Resolve this by adding "WHICH=which" to the option list passed to the reference Makefile.
Note:
"which" should be the command for reference builds.
--- utilities/parallel-latex-regress.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
utilities/parallel-latex-regress.sh +1 -1
@@ -9,7 +9,7 @@ TARGETS=${TARGETS:-2c 1c eb} JOBS=${JOBS:-4} TMP=${TMP:-/tmp} -REFMAKE=${REFMAKE:-make -f Makefile.2022.01.25} +REFMAKE=${REFMAKE:-make -f Makefile.2022.01.25 WHICH=which} export LATEX_OPT=-synctex=1 copy_synctex_db () {
Signature · 1 line
2.25.1
Paul E. McKenney
AppliedQuoted 24 lines · Akira Yokosawa
Since commit
6be27f7414d8("Use Biolinum font family for epigraph"), new warning messages appear in the .log file which read:LaTeX Font Warning: Font shape `OT1/minntx/sb/n' undefined
(Font) using `OT1/minntx/m/n' instead on input line 622.LaTeX Font Warning: Some font shapes were not available, defaults substituted.
This is because the netwxmath package detects boilinum/libertine fonts which have semi-bold shape and sets the option of semi-bold shape for bold math on top of newtxtext's default font (Times Roman clone), which doesn't provide semi-bold shape.
Using 'OT1/minntx/m/n' for bold math means it will be rendered in normal (non-bold) shape.
This might be a bug in newtxmath, but can be avoided by moving the load of biolinum after the load of newtxmath.
Currently, perfbook doesn't use \mathbf{} and there is no visible defect in rendered math equations. But it is better to fix this potential regression sooner rather than later.
Quoted 5 lines
After loading biolinum, restore newtxtext's \sfdefault (Helvetica clone).
Fixes 6be27f7414d8 ("Use Biolinum font family for epigraph")Signed-off-by Akira Yokosawa <[email protected]>
Queued and pushed all three, thank you!
Thanx, Paul
Quoted 31 lines
--- perfbook-lt.tex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)perfbook-lt.tex +3
-1@@ -13,7 +13,6 @@ % A more pleasant font \usepackage[full]{textcomp} % use symbols in TS1 encoding -\usepackage{biolinum} \usepackage{lmodern} \usepackage[T1]{fontenc} % use postscript type 1 fonts \usepackage[defaultsups,helvratio=0.9]{newtxtext} % use nice, standard fonts for roman@@ -324,6 +323,9 @@ \DeclareFontShape{\encodingdefault}{\rmdefault}{bx}{sl}{<->ssub * ptm/b/sl}{}% } } +\usepackage{biolinum} +% restore \sfdefault of newtxtext +\renewcommand{\sfdefault}{qhv} \newcommand{\LstLineNo}{\makebox[5ex][r]{\arabic{VerbboxLineNo}\hspace{2ex}}}base-commit:
2d2853f4b29d0369dd3b64435d5a53203380cf96Signature · 1 line
2.25.1