Trying to put a footnote in subsection title:
\subsection{Effect of Lateral Confinement on SW Band Structure\footnote{Parts of this sub--section are based on \citet{Venkat2013}}}
produces the following error:
Argument of \@sect has an extra } ...section are based on \citet{Venkat2013}}}
I am using:
\documentclass[paper=A4, fontsize=12, toc=listof, toc=index, toc=bib]{scrreprt}
Please advise.
Best Answer
\footnote
is a fragile command and section (or subsection) titles are moving arguments (meaning they get written to an auxiliary file to be used in the table of contents). Fragile commands break in moving arguments and the standard solution is to protect them with\protect
:This will however also produce a footnote in the table of contents:
In order to avoid this use the optional argument of
\section
for the TOC or even better: don't use footnotes in headings.