0

I want to add footnote to chapter title in memoir. It works as expected with numbered chapters (\chapter), but shows lots of errors in unnumbered chapter (\chapter*). MWE:

\documentclass{memoir}

\begin{document}
\chapter*{this fails\footnotemark{}}
\chapter[this works fine]{this works fine\footnotemark{}}
\end{document}

There are more than 100 errors, but first is The control sequence marked <to be read again> should not appear between \csname and \endcsname.

What can be a solution?

2
  • 3
    Protect it: \protect\footnotemark
    – daleif
    Sep 29, 2020 at 11:08
  • Thanks, it worked. Can you post it as answer - so I can accept? Sep 29, 2020 at 11:15

1 Answer 1

4

Honestly, I'm not 100% sure why this happens. But with stuff like this the issue can often be resolved if one protects the problematic question.

In this case \protect\footnotemark{} seems to work.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .