Hi:
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*.
To include the name of the chapter authors in the Toc, I have follow a
method explained inĀ StackExchange:
https://tex.stackexchange.com/questions/156862/displaying-author-for-each-chapter-in-book?newreg=cc7bd951630649d0af0686b5a3446973
I tried to expand the method, including the following code in the Latex
Preamble, but it doesn't work.
Any idea of how to include the authors of the chapters in the TOC and in
the header?
\newcommand\chapterauthor[1]{\authortoc{#1}\printchapterauthor{#1}\thechapterauthor{#1}}
\makeatletter
\newcommand{\printchapterauthor}[1]{%
{\parindent0pt\vspace*{-25pt}%
\linespread{1.1}\large\scshape#1%
\par\nobreak\vspace*{35pt}}
\@afterheading%
}
\newcommand{\authortoc}[1]{%
\addtocontents{toc}{\vskip-10pt}%
\addtocontents{toc}{%
\protect\contentsline{chapter}%
{\hskip1.3em\mdseries\scshape\protect\scriptsize#1}{}{}}
\addtocontents{toc}{\vskip5pt}%
}
\newcommand{\thechapterauthor}[1]{\textit#1}
\makeatother
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[LO]{\textbf{\leftmark}}
\fancyhead[RE]{\thechapterauthor}