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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Please add a short example that reproduces the problem. – Ian Thompson Mar 9 '12 at 11:48
up vote 21 down vote accepted

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.

share|improve this answer
...this is it, thanks! +1 – hhh Mar 9 '12 at 12:33

Use like this:

\section{Section title\protect\footnote{A footnote}}
share|improve this answer
...does not work, even more errors -1 unless clarified. – hhh Mar 9 '12 at 12:24
It does work for me, but egreg's solution seems to be better. See this similar question: tex.stackexchange.com/questions/153329/… – 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

Your Answer


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.