Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
related: Is there a reliable footnote command? –  barbara beeton Jan 10 at 14:13
    
It is also OK, to give that footnote after the first sentence of that subsection. Footnotes in titles are sometimes unavoidable, but if they are avoidable, I think it is often better to avoid them. –  jon Jan 10 at 15:46

1 Answer 1

up vote 1 down vote accepted

\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:

\documentclass{scrartcl}
\begin{document}
\section{foo\protect\footnote{bar}}
\end{document}

This will however also produce a footnote in the table of contents:

\documentclass[paper=10cm:6cm]{scrartcl}% to get a small picture for tex.sx
\begin{document}

\tableofcontents

\section{foo\protect\footnote{bar}}

\end{document}

enter image description here

In order to avoid this use the optional argument of \section for the TOC or even better: don't use footnotes in headings.

\documentclass[paper=10cm:6cm]{scrartcl}
\begin{document}

\tableofcontents

\section[foo]{foo\footnote{bar}}

\end{document}

enter image description here

share|improve this answer
    
Yesterday I found, the approach of your answer, which I made a note for, would go terribly wrong in AMS classes, see Barbara Beetons first paragraph here: tex.stackexchange.com/a/123763/9237. Lucky, we are using KOMA-Script, where we can control this behaviour, as we want it to do, with these 3 options “headings=optionto…” (or leave in the traditional way). –  Speravir Jan 12 at 1:17
    
@Speravir That's why the real answer is: don't use footnotes in headings. And that's why questions need an MWE... –  cgnieder Jan 12 at 8:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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