From 26b0824f5aaba7575fdbbd5f9e8197af0678f4d1 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 23 Feb 2010 07:32:06 +0100 Subject: [PATCH] LaTeX export: Protect footnotes in headlines --- lisp/ChangeLog | 5 +++++ lisp/org-latex.el | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b26072054..577ab60f4 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-02-23 Carsten Dominik + + * org-latex.el (org-export-latex-preprocess): Protect footnotes in + section headings. + 2010-02-21 Carsten Dominik * org-html.el (org-export-as-html-and-open): Kill product buffer diff --git a/lisp/org-latex.el b/lisp/org-latex.el index de3f258bd..c12d17859 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -2045,6 +2045,10 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." (add-text-properties (1- (length footnote-rpl)) (length footnote-rpl) '(org-protected t) footnote-rpl) + (if org-on-heading-p) + (setq footnote-rpl + (concat (org-export-latex-protect-string "\\protect") + footnote-rpl)) (insert footnote-rpl))) )))))