Browse Source

LaTeX export: Protect footnotes in headings

Carsten Dominik 15 years ago
parent
commit
045676bcaa
2 changed files with 7 additions and 4 deletions
  1. 3 0
      lisp/ChangeLog
  2. 4 4
      lisp/org-latex.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2010-02-26  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* 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.
 

+ 4 - 4
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)))
 	     )))))