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:
parent
a16f1abaa9
commit
d13a2bb1c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue