Memoir marks and fonts

Lars Madsen daleif at
Wed Jan 15 09:50:06 CET 2020

(1) Please provide a full example others can test

(2) Which engine are you using (pdflatex, xelatex , ...)

(3) Are you 100% up to date, we know babel or similar at one point started to mess with the fonts in the headers by injecting their own code.

But as long as we do not have an example that we can test, it is hard to tell.

For example, what is \gingerspacedfont ?

/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info:<> / More information:<>

From: texhax < at> on behalf of Joel C. Salomon <joelcsalomon at>
Sent: 15 January 2020 04:47
To: ΤeXhax <texhax at>
Subject: Memoir marks and fonts

After applying some content updates to a book for a client, I tried to
recompile the book, but the page headers were being set in the wrong
font.  The code that worked about two years ago looked something like this:

        \def\chaptermark##1 { \markboth {\thetitle} {##1} }
    \makeevenhead{headings}{\headingsize \gingerfont \thepage \quad
\gingerspacedfont \leftmark}{}{}
    \makeoddhead{headings}{}{}{\headingsize \gingerspacedfont \rightmark
\quad \gingerfont\thepage}

(I’m taking advantage of ExplSyntaxOn to indent and space my code.)

Tonight, this left the `\leftmark` and `\rightmark` set in the default
text font.  A bit of experimenting pointed me to this fix:

        \def\chaptermark##1 { \markboth {\gingerspacedfont \thetitle}
{\gingerspacedfont ##1} }
    \makeevenhead{headings}{\headingsize \gingerfont \thepage \quad
    \makeoddhead{headings}{}{}{\headingsize \rightmark \quad

Has there been a recent change to Memoir that broke my old code?

—Joel C. Salomon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the texhax mailing list