I'm editing a book written by different authors, each chapter one or several authors. I would like to include the name of the authors of each chapter in the ToC, and also in the headers.

The answer from karlkoeller to the question Displaying author for each chapter in book explain a method to include the authors in the ToC. I would like to modify this method a little bit in order to be able to print them in the headers.

Here is my Minimal NotWorking Example:





  \chapter{Chapter 1}
    \chapterauthor{Zê Povinho}
  \section{Section 1}
   \section{Section 2}
  \chapter{Chapter 2}
    \chapterauthor{L. Nemsei, P. Quemsabe}
  \section{Section 3}
  \subsection{Subsection 1}

Pdflatex does not print any warnings or errors, but the name of the authors does not appear in the headers. What to do?

  • 1
    Don't show only some snippets, create a small, complete example that demonstrates the problem. That makes it much easier to test. – Ulrike Fischer Dec 21 '18 at 16:31

It is sufficient to make \chapterauthor to define \thechapterauthor:

\newcommand\thechapterauthor{} % initialize

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.