From d13a2bb1c7f6cb4ef12d67d5fb85d479d4382788 Mon Sep 17 00:00:00 2001 From: Rasmus Date: Fri, 24 Apr 2015 18:00:30 +0200 Subject: [PATCH] ox-latex: Fix footnote bug when narrowed buffer * ox-latex.el (org-latex-footnote-reference): Support math in outside footnotes when narrowed. --- lisp/ox-latex.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 2727f1cb5..61c7adcac 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 -- 2.11.4.GIT