emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-wiki-discuss] Bug: Latex Footnotes in headers


From: Jim Ottaway
Subject: Re: [emacs-wiki-discuss] Bug: Latex Footnotes in headers
Date: Tue, 09 May 2006 20:17:07 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>>>> hornedowl06  <address@hidden> writes:

> Seems there is a bug when trying to get footnotes on headings, following text
> causes error consistently.

> * Testing 
> The following will generate an error in both latex and pdf mode, but will
> work fine in html
> ** watch the footnoteq[1]

> Footnotes: 
> [1]  a footnote in a heading does not work 

That's because in LaTeX, which is used by the pdf mode as well, you
have to protect \footnote commands against their being expanded in
inappropriate places like the table of contents.

The correct code generated from

> ** watch the footnoteq[1]

> Footnotes: 
> [1]  a footnote in a heading does not work 

would be

\subsection{watch the footnote\protect\footnote{a footnote in a
   heading does not work, but a protected one does.}}


that is, with \protect added before the \footnote. It would be
temptingly simple to stick \protect before each and every \footnote,
whether in a section command or not, but this would not be a good
idea.

I wonder how difficult it would be to do this just for sections...

Regards,
-- 
Jim Ottaway




reply via email to

[Prev in Thread] Current Thread [Next in Thread]