From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Footnotes in headings results in strange entries in the table of contens of the latex -> pdf export Date: Tue, 23 Feb 2010 07:31:23 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NjpD8-0006oG-MS for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 02:29:38 -0500 Received: from [140.186.70.92] (port=36114 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjpD0-0006hi-Bk for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 02:29:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NjpCl-0000tl-Cp for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 02:29:29 -0500 Received: from mail-fx0-f222.google.com ([209.85.220.222]:56141) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjpCl-0000sg-0Q for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 02:29:15 -0500 Received: by mail-fx0-f222.google.com with SMTP id 22so3463658fxm.26 for ; Mon, 22 Feb 2010 23:29:14 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Geralt Cc: emacs-orgmode@gnu.org Hi Gerald, the LaTeX exporter does indeed have some problems with footnotes in headlines. I have now fixed it so that the footnote will be preceded by \protect, which already makes things nicer. However, to use the format you propose (which is good LaTeX), Org would have to know which macros exactly work like that. For example, headlines from Org-mode sometimes get transformed into \item blocks, where an optional argument would have completely different effects. A way out for you would be to add a function to `org-export-latex- final-hook' which would go through, find and fix the corresponding headlines. If you make a good solutions, please share it - I might want to use it in Org after all. - Carsten On Feb 20, 2010, at 2:39 PM, Geralt wrote: > Hi, > > I tracked down the problem to latex itself, the generated code looks > like this: > \section{This is a simple heading \footnote{A footnote }} > \label{sec-1} > > But to get a correct table of contents entry when a section title > contains a footnote it should look like this: > > \section[This is a simple heading]{This is a simple heading > \footnote{A footnote }} > \label{sec-1} > > > The solution was not found by me, I took it from > http://www.mathlinks.ro/Forum/viewtopic.php?t=243820 > > > > But I don't want to edit the tex-file manually, how can I fix the > renderer? I looked into it but I don't really understand how the > export (and the latex backend) do their work. > > > > Geralt. > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten