From 045676bcaa72c64ce6de02bcfc140160e26c68ab Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Fri, 26 Feb 2010 21:02:25 +0100 Subject: [PATCH] LaTeX export: Protect footnotes in headings --- lisp/ChangeLog | 3 +++ lisp/org-latex.el | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fe038ed0c..5ea4611ed 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-02-26 Carsten Dominik + * org-latex.el (org-export-latex-preprocess): Protect footnotes in + headings. + * org-id.el (org-id-find-id-file): Fix bug when there is no hash table for the id locations. diff --git a/lisp/org-latex.el b/lisp/org-latex.el index c12d17859..2173dd276 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -2045,10 +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)) + (if (org-on-heading-p) + (setq footnote-rpl + (concat (org-export-latex-protect-string "\\protect") + footnote-rpl))) (insert footnote-rpl))) )))))