summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2010-02-23 07:32:06 +0100
committerCarsten Dominik <carsten.dominik@gmail.com>2010-02-23 07:32:06 +0100
commit26b0824f5aaba7575fdbbd5f9e8197af0678f4d1 (patch)
tree380206e63fe363a6ae262b7eb79b61a19b86b8de
parentd0b0f776d2a6231cfccbc1c8377db4a93f1db23a (diff)
downloadorg-mode-26b0824f5aaba7575fdbbd5f9e8197af0678f4d1.tar.gz
LaTeX export: Protect footnotes in headlines
-rwxr-xr-xlisp/ChangeLog5
-rw-r--r--lisp/org-latex.el4
2 files changed, 9 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b260720..577ab60 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-23 Carsten Dominik <carsten.dominik@gmail.com>
+
+ * org-latex.el (org-export-latex-preprocess): Protect footnotes in
+ section headings.
+
2010-02-21 Carsten Dominik <carsten.dominik@gmail.com>
* 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 de3f258..c12d178 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)))
)))))