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'?
Best Answer
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.
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.