hi,
i made a slight change to wrap the exported latex environments in a figure
environment so that the captions and labels get placed properly, this patch
i created on teco's branch.
i dont expect it to get accepted as it may be a naive fix and i may be
missing something, but it may point out to someone else where the issue is.
thanks!
On Fri, Feb 2, 2024 at 1:43 PM Ihor Radchenko <[email protected]> wrote:
> mahmood sheikh <[email protected]> writes:
>
> > im on tecosaur's dev branch (version 9.7-pre)
> > i have the following in an org file:
> >...
>
> CCing Timothy and Karhik.
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>
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))