Vikas Rawal <[email protected]> writes:
> I did see this, but needed an example to understand what was going to
> work. Specifying \captionof in a separate line did not occur to me.
The point is merely that you need to "cheat" ox-latex to think there's not
a caption.
I used this macro as a workaround (since I also needed other backends
than).
#+MACRO: caption (eval (format (if (org-export-derived-backend-p
org-export-current-backend 'latex)
"@@latex:\\captionof{table}{%s\\label{%s}}@@" "#+CAPTION: %s") (org-trim "$1")
(org-trim "$2")))
And then
{{{caption(⋯, NAME)}}}
in place of
#+CAPTION:⋯
You could probably make it smarter and capture the label automatically.
–Rasmus
--
Together we will make the possible totalllly impossible!