it might've been fixed for figures as its been a while, but shouldnt latex environments with #+caption: and #+name: above them be exported as figures? because currently the user has to write \begin{figure} and \end{figure} explicitly which would work but may not be as practical for other ox backends like html i think? perhaps im wrong. On Tue, Jul 9, 2024 at 11:15 PM Karthik Chikmagalur < karthikchikmagalur@gmail.com> wrote: > > im on tecosaur's dev branch (version 9.7-pre) > > i have the following in an org file: > > ```org > > #+name: fig-switching-circuit-1 > > #+caption: implementation of \(p\) > > [[attachment:circuit.svg]] > > ``` > > it gets turned into this > > ``` > > > \includesvg[width=.9\linewidth]{/home/mahmooz/brain/notes/data/9e/5ba2ce-c383-4396-a2cb-891465f14d51/circuit}\\[0pt] > > ``` > > Cannot reproduce. I get the following: > > \begin{figure}[htbp] > \centering > \includesvg[width=.9\linewidth]{/tmp/circuit} > \caption{\label{fig-switching-circuit-1}implementation of \(p\)} > \end{figure} > > Perhaps you have customized the LaTeX export process in some way? Also > note that we don't touch any of the LaTeX generation code in ox-latex > except the parts handling LaTeX preview images. > > Karthik >