I'm using the document class "memoir," and on the top of each odd page there is a header that gives the title of the current section. How can I change this so that it instead says the name of the current subsection?
Thanks in advance.
Page Layout ⇒ Replacing odd-page book header with subsection name
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Replacing odd-page book header with subsection name
Read the manual of the memoir class (Section 2.5 - Headers, Footers and marginal notes; p. 20ff).
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Replacing odd-page book header with subsection name
I almost found a solution. I inserted this at the beginning:
and then used \titledsubsection instead of \subsection. However, when there is a page on which a new subsection starts, the header at the top will give the name of the old subsection, rather than the new subsection. Any ideas on how to fix this?
Code: Select all
\newcommand{\titledsubsection}[1]{\renewcommand{\subsectiontitle}{#1} \subsection{#1}}
\renewcommand{\rightmark}{\subsectiontitle}