ox-latex: Fix footnote bug when narrowed buffer

* ox-latex.el (org-latex-footnote-reference): Support math in outside
  footnotes when narrowed.
This commit is contained in:
Rasmus 2015-04-24 18:00:30 +02:00
parent a16f1abaa9
commit d13a2bb1c7
1 changed files with 2 additions and 1 deletions

View File

@ -1527,7 +1527,8 @@ CONTENTS is nil. INFO is a plist holding contextual information."
"\\footnotemark")
;; Otherwise, define it with \footnote command.
(t
(let ((def (org-export-get-footnote-definition footnote-reference info)))
(let ((def (org-latex--wrap-latex-math-block
(org-export-get-footnote-definition footnote-reference info) info)))
(concat
(format "\\footnote{%s}" (org-trim (org-export-data def info)))
;; Retrieve all footnote references within the footnote and