LaTeX export: Protect footnotes in headings

This commit is contained in:
Carsten Dominik 2010-02-26 21:02:25 +01:00
parent 721e547cd9
commit 045676bcaa
2 changed files with 7 additions and 4 deletions

View File

@ -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.

View File

@ -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)))
)))))