I left biting marks in the table on this one. I don’t know if it’s a general issue or just my document. Anyway:
I wanted to have footnotes from inside sections, subsections, and subsubsections. They work similar to footnotes in tables, you need to address them similar to this:
\section{Some Section in my Document\footnotemark}
\footnotetext{My boring footnotetext.}
Only, when I did it like this, it worked on some occasions, but not on others (reason for me biting the wood).
I finally found out that it did not work on all occasions where I did it exactly like in above example, but always rendered
TeX capacity exceeded, sorry [input stack size=5000]
However, it did work on all the occasions where I specified the (optional) short title for section/subsection/&c:
\section[Section in Document]{Some Section in my Document\footnotemark}
\footnotetext{My boring footnotetext.}
The optional shorter title appears — as far as I know — in the table of contents and in left-/rightmark. Also, Kile uses it to display the document structure, too. So if you have rather long titles (like I do) it is a good idea specifying a short one anyway. If not, I guess you can just as well repeat the full title in the optional argument if you need a footnote.
When using the starred variant (\section*{My merry section}
), don’t provide a short title.
Jan
Apparently the real way to go is this: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ftnsect