Bläddra i källkod

ox-latex: Fix footnote bug when narrowed buffer

* ox-latex.el (org-latex-footnote-reference): Support math in outside
  footnotes when narrowed.
Rasmus 10 år sedan
förälder
incheckning
d13a2bb1c7
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      lisp/ox-latex.el

+ 2 - 1
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