summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Yokosawa <akiyks@gmail.com>2023-07-07 21:09:17 +0900
committerPaul E. McKenney <paulmck@kernel.org>2023-07-07 09:29:10 -0700
commitd6421cdf77f7ceb1aace30cb781c2bd9bab88251 (patch)
treecc22df584433cd680894efa50f27173618a1cf98
parent853ca25284b9c3b30b09602c27b81e79899c36e5 (diff)
downloadperfbook-d6421cdf77f7ceb1aace30cb781c2bd9bab88251.tar.gz
Silence font warning in sf (sans serif) builds
There are a couple of warnings in sf (sans serif) builds: LaTeX Font Warning: Font shape `T1/qhv/m/sl' in size <7.3> not available (Font) Font shape `T1/qhv/m/it' tried instead on input line 367. This is because the qhv (Helvetica clone) font family doesn't provide slanted shape to be used in the header area of the page (chapter and section title) and LaTeX uses its italic shape as a fallback. This is OK as italic and slanted shapes would look mostly the same for sans-serif font families. Suppress the warning by using the silence package. Giving "save" option to silence makes it save filtered-out warnings in $basename.sil. This is better than discarding silenced warnings. Add $basename.sil to .gitignore and Makefile's "clean" target. Signed-off-by: Akira Yokosawa <akiyks@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
-rw-r--r--.gitignore1
-rw-r--r--Makefile1
-rw-r--r--perfbook-lt.tex4
3 files changed, 6 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 1604a4d8..fa20ccb5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -45,6 +45,7 @@ autodate.tex
/perfbook*.gls
/perfbook*.glsdefs
/perfbook*.ist
+/perfbook*.sil
extraction
embedfonts
CodeSamples/snippets.d
diff --git a/Makefile b/Makefile
index 6a389089..bffdd2da 100644
--- a/Makefile
+++ b/Makefile
@@ -597,6 +597,7 @@ clean:
rm -f perfbook*.idx perfbook*.ind perfbook*.ilg perfbook*.ist
rm -f perfbook*.acn perfbook*.acr perfbook*.alg
rm -f perfbook*.glg perfbook*.glo perfbook*.gls perfbook*.glsdefs
+ rm -f perfbook*.sil
rm -f CodeSamples/snippets.d
rm -f *.synctex*
@rm -f $(OBSOLETE_FILES) $(EPSSOURCES_TMP)
diff --git a/perfbook-lt.tex b/perfbook-lt.tex
index 842e0fc6..fdfde195 100644
--- a/perfbook-lt.tex
+++ b/perfbook-lt.tex
@@ -330,6 +330,10 @@
\renewcommand{\familydefault}{\sfdefault}
\normalfont
\usepackage[slantedGreek,scaled=.96]{newtxsf}
+% Silence inevitable warnings on missing slanted shape
+\RequirePackage[save]{silence}
+\WarningFilter[sansslant]{latexfont}{Font shape `T1/qhv/m/sl'}
+\ActivateWarningFilters[sansslant]
}{
\usepackage[slantedGreek]{newtxmath} % math package to be used with newtxtext
% Poor person's slanted shape for roman --- newtxtext lacks slanted shape