summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus <rasmus@gmx.us>2015-04-24 16:00:30 (GMT)
committer Rasmus <rasmus@gmx.us>2015-04-26 13:42:12 (GMT)
commitd13a2bb1c7f6cb4ef12d67d5fb85d479d4382788 (patch)
tree8bdcc4d985c3281c9deb88feb29619b9ab8957d4
parenta16f1abaa9181923c8bf86facf10bb0666290efc (diff)
downloadorg-mode-master.zip
org-mode-master.tar.gz
ox-latex: Fix footnote bug when narrowed bufferHEADmaster
* ox-latex.el (org-latex-footnote-reference): Support math in outside footnotes when narrowed.
-rw-r--r--lisp/ox-latex.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 2727f1c..61c7adc 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -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