The lack of any section in appendix "Glossary" causes its odd pages
to have empty header.

Define a pagestyle for it and print chapter title for both odd and
even pages.

Signed-off-by: Akira Yokosawa <[email protected]>
---
 perfbook-lt.tex | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/perfbook-lt.tex b/perfbook-lt.tex
index 78a26c21..5509d455 100644
--- a/perfbook-lt.tex
+++ b/perfbook-lt.tex
@@ -62,7 +62,10 @@
 \usepackage{tabularx}
 \usepackage[hyphens]{url}
 \usepackage{threeparttable}
-\usepackage{titlesec}[2016/03/21] % Suppress number in paragraph heading
+\usepackage[pagestyles]{titlesec}[2016/03/21] % Suppress number in paragraph 
heading
+% custom pagestyle for section-less appendix
+\newpagestyle{sectionless}{\sethead*{\chaptertitle}{}{\thepage}}
+\newcommand{\sectionlesspagestyle}{\pagestyle{sectionless}}
 \usepackage{fmtcount}
 \usepackage{draftwatermark}[2015/02/19]
 \SetWatermarkAngle{0.0}
@@ -188,6 +191,7 @@
 
 \IfEbookSize{
 \usepackage[section]{placeins}
+\renewcommand{\sectionlesspagestyle}{} % ebook size's header is empty
 }{
 \usepackage{placeins}
 }
@@ -708,7 +712,11 @@
 % Glossary
 %% Reset footnote count
 \setcounter{footnote}{0}
+\begingroup
+\sectionlesspagestyle
 \input{glossary.tex}
+\clearpage
+\endgroup
 
 % Bibliograpy
 %\bibliographystyle{alpha}   % Use genuine alpha style (In case of build 
failure, use this instead)
-- 
2.43.0



Reply via email to