diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 46a3cae..11c3fc5 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -3005,7 +3005,10 @@ CONTENTS is nil. INFO is a plist holding contextual information." ;; the section instead). Also insert caption if `latex-environment' ;; is not a math environment. (with-temp-buffer + (insert "\\begin{figure}\n") (insert value) + (goto-char (point-max)) + (insert "\\end{figure}") (if caption-above-p (progn (goto-char (point-min))