> On Jul 6, 2021, at 12:20 PM, Jack Kamm <jackk...@gmail.com> wrote:
>
> Hi Chuck,
>
>> Here is an ECM that when exported with `C-c C-e l o y y` (or 'yes RET' for
>> each `y' depending on your setup)
>
> I don't see the example on your last email, could you try re-attaching
> it?
>
> Thanks,
> Jack
Mea culpa.
#+begin_src org
,* subfig ECM
:PROPERTIES:
:EXPORT_FILE_NAME: subfigures.tex
:EXPORT_OPTIONS: toc:nil
:EXPORT_LATEX_HEADER: \usepackage{subfig}
:END:
,#+macro: subfig @@latex:
\subfloat[$1]{\includegraphics[width=0.49\linewidth]{$2}}@@
,#+name: sub1
,#+begin_src R :exports results :results graphics :file fig1.png
plot(0:1,0:1)
text(0.5,0.5,"Fig 1")
,#+end_src
,#+name: sub2
,#+begin_src R :exports results :results graphics :file fig2.png
plot(0:1,0:1)
text(0.5,0.5,"Fig 2")
,#+end_src
,#+begin_figure
@@latex: {\centering@@
{{{subfig(First,fig1)}}}
{{{subfig(Second,fig2)}}}
@@latex: }@@
,#+end_figure
#+end_src