On Friday, 22 Oct 2021 at 16:27, Jason Ross wrote: > Are there any workarounds people use to create subfigures in Org Mode > when exporting to LaTeX? Example output:
The attached should do the job? At least, it seems to export to your sample LaTeX. I cannot compile as for some reason subcaption conflicts with my standard org to LaTeX setup. -- : Eric S Fraga via Emacs 28.0.60, Org release_9.5-163-g4eab5b : Latest paper written in org: https://arxiv.org/abs/2106.05096
#+latex_header: \usepackage[demo]{graphicx} #+latex_header: \usepackage{subcaption} * Question Are there any workarounds people use to create subfigures in Org Mode when exporting to LaTeX? Example output: * Attempt #+name: fig:fig #+caption: plots of.... #+begin_figure #+name: fig:sfig1 #+caption: 1a #+attr_latex: :options {0.5\textwidth} #+begin_subfigure #+attr_latex: :width 0.8\linewidth [[~/s/test/mip.png]] #+end_subfigure #+name: fig:sfig2 #+attr_latex: :options {0.5\textwidth} #+caption: 1a #+begin_subfigure #+attr_latex: :width 0.8\linewidth [[~/s/test/mip.png]] #+end_subfigure #+end_figure