This is a question that arose in the comments here: Change Section titles to Small Caps only in ToC

I normally hide footnotes from the TOC by doing this:

\section[title]{title\footnote{This is a footnote.}}.

This works in a lot of document classes (memoir, article, ...), but not in all of them. amsbook, for example, uses the optional argument only for the running heads so the footnote mark still ends up in the TOC. So what is the 'universal solution'?

  • 2
    The only "universal" solution is: don't use footnotes. – Gonzalo Medina Jul 12 '13 at 14:23
  • I concur with Gonzalo. Footnoting titles is simply wrong. – egreg Jul 12 '13 at 14:36
  • You see it pretty often, though. E.g. when the author wants to thank some people for helping them with that particular section. And I suppose the point is more general. If you want the title to be different in the TOC from how it looks in the text, how does one do that? – Emiel Jul 12 '13 at 14:49

there is no "universal" solution. the ams document classes, based on the conclusion that the "basic" situation of headings and toc ("short" form used for both running heads and toc) is unsatisfactory, follow a a different approach: full title used for both body and toc, short (bracketed) version used only for running heads, and \mark... and other adjustments provided to handle exceptions.

the approach originally tried was to insert a command, \SkipTocEntry, to suppress the "next" entry in the .toc file, and use \addcontentsline to insert the replacement. (examples in Excluding chapters from ToC in amsbook and Is there a way to show the short title of a chapter in the TOC instead of the long?) this suffered from timing problems, and has been superseded by a different approach.

two commands, \exclude{toc}{...} and \for{toc}{...}, are now provided to include the instructions for "variants" directly in the text of the title or heading. this is not yet well documented in user manuals, but is described in an entry in the ams author faq.

the possibilities are best understood through an (exhaustive/exhausting) example.




\chapter[Title with two footnotes]%
  {Title\except{toc}{\protect\footnote{The first footnote}}
  with two footnotes\except{toc}{\protect\footnote{The second footnote}}}

There is some text in this chapter.\footnote{With a footnote}

Footnotes should be avoided on chapter titles whenever possible.
However, if a footnote---or other material that should not go
into the table of contents, such as a line break---is present, the
command \verb+\except{toc}{...}+ should be wrapped around that element
to suppress it from the contents.

If the header with such a modification may be used in a running head,
either the \verb+[...]+ option or a suitable \verb+\mark...+ command
must be given to omit the modification from the running head.


There is a second page in this chapter.

\chapter*{A starred title\except{toc}{\protect\footnotemark}\ with two

\footnotetext{This is the first footnote}
\footnotetext{This is the second footnote}

Notice that footnote numbering isn't reset for ``starred'' chapters.
Also, the bracketed \verb+[...]+ option doesn't work to provide alternate
titles for such chapters so a \verb+\mark...+ must be used
(this may be changed in the future).
Furthermore, a \verb+\footnotemark+, although enclosed in braces as an
argument of \verb+\except+, will gobble the next space, so an explicit
space must be provided.

Section headings can also have footnotes\footnote{An irrelevant footnote}
excluded from the TOC.

\section[A section heading with a footnote]%
  {A section heading, with a
  footnote,\except{toc}{\protect\footnote{And yet another.}}
  that is very long\except{toc}{\protect\\}
  so that it has\for{toc}{\protect\\} to be broken under input control}

There is also a command \verb+\for+ that can be used to \emph{include}
selected material in the TOC, such as an explicit linebreak different
from one used in the body.


There is a second page in this chapter.

\chapter[Another chapter title]{Another chapter title with a
  footnote\except{toc}{\protect\footnote{This is another footnote}}}

Footnote numbering \emph{is} reset for numbered chapters.


There is also a second page in this chapter too.


owing to the length of the example the output isn't shown here. however, after processing, the input is shown, verbatim, at the end of the processed output, to make it easier to cope with.


Normally the \protect system makes footnotes "safe" while the argument is moving to the toc file, but you can use a variant that simply removes it in that case:





\section{CCC\myfnt{the other}}


The above solutions would give you a footnote marker using the same fontsize of the section title, which might be undesirable.

If you want it small:




\section{Your Title \textsuperscript{\footnotesize{\footnote{Your foonote}}}}

Use the footmisc package, with package option stable — this modifies footnotes so that they softly and silently vanish away if used in a moving argument. With this, you simply need:

% in the document preamble
% in the body of the document
\section{title\footnote{title ftnt}}


\section*{TITLE\footnote{first note} foloowing fo TITLE\footnote{second note}}

Comments: The asterisk hides the number of the section and removes it from the TOC. \addcontentsline{toc}{section}{title}: this command adds a line in the TOC.

I tested it with chapters, sections, and parts and that works perfectly for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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