From: Akira Yokosawa <akiyks@gmail.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: perfbook@vger.kernel.org, Akira Yokosawa <akiyks@gmail.com>
Subject: [PATCH -perfbook 6/7] Define pagestyle (of titlesec) for section-less appendix
Date: Mon, 2 Mar 2026 18:24:36 +0900 [thread overview]
Message-ID: <ca4287aa-bedf-4301-850d-6856e05d2d09@gmail.com> (raw)
In-Reply-To: <28c46b77-ceb8-4b4f-9f8e-d56ef6b2711d@gmail.com>
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 <akiyks@gmail.com>
---
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
next prev parent reply other threads:[~2026-03-02 9:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 9:16 [PATCH -perfbook 0/7] 2026 March updates Akira Yokosawa
2026-03-02 9:17 ` [PATCH -perfbook 1/7] CodeSamples/formal: Update rcu-test.dat for v6.19 Akira Yokosawa
2026-03-02 9:19 ` [PATCH -perfbook 2/7] formal: rcu-test-ratio: Adjust legends' position Akira Yokosawa
2026-03-02 9:20 ` [PATCH -perfbook 3/7] Give page number counts room on TOC pages in -1c builds Akira Yokosawa
2026-03-02 9:21 ` [PATCH -perfbook 4/7] defer/rcuapi: Tweak column widths for long APIs Akira Yokosawa
2026-03-02 9:23 ` [PATCH -perfbook 5/7] Adjust page header/footer widths for tweaked textwidths Akira Yokosawa
2026-03-02 9:24 ` Akira Yokosawa [this message]
2026-03-02 9:28 ` [PATCH -perfbook 7/7] intro/coarsen.svg: Tweak size of squares and use nuanced colors Akira Yokosawa
2026-03-02 18:19 ` [PATCH -perfbook 0/7] 2026 March updates Paul E. McKenney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ca4287aa-bedf-4301-850d-6856e05d2d09@gmail.com \
--to=akiyks@gmail.com \
--cc=paulmck@kernel.org \
--cc=perfbook@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.