[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Table caption in Latex export with :float nil
From: |
Rasmus |
Subject: |
Re: [O] Table caption in Latex export with :float nil |
Date: |
Thu, 12 Mar 2015 14:52:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Vikas Rawal <address@hidden> 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!