When I have a footnote with an \url in the section-header, the table of contents shows nothing with it. Why and how can I fix the issue?
Asked
Active
Viewed 7,008 times
9
Martin Thoma
- 18,799
hhh
- 8,743
-
1Please add a short example that reproduces the problem. – Ian Thompson Mar 09 '12 at 11:48
2 Answers
24
It's in general a bad idea to footnote section titles. The footnote can go, if really necessary, to the first paragraph.
In case you can't get without it, you have to use the optional argument:
\section[Section title]{Section title\footnote{A footnote}}
otherwise you'll footnote also the table of contents and the headers, which is wrong (and with a \url command you'll get many errors).
If the URL contains special characters, LaTeX would have a very hard job, so you should consider the \urldef command.
egreg
- 1,121,712
5
Use like this:
\section{Section title\protect\footnote{A footnote}}
Thorsten
- 12,872
Mu30 murugans2katgmail
- 2,155
-
-
1It does work for me, but egreg's solution seems to be better. See this similar question: http://tex.stackexchange.com/questions/153329/footnote-in-sub-section-title – Yorick Sijsling Nov 11 '15 at 13:35
-
@hhh It works for me (+1) in a quite large document with lots of packages, bibliography, complicated tikz drawings, and extra commands. May be you should revise the spelling; in the beginning I had a spelling error in
\protect, and because of that I got more errors. – loved.by.Jesus Nov 15 '15 at 11:59