emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Table caption in Latex export with :float nil
Date: Thu, 12 Mar 2015 14:52:46 +0100	[thread overview]
Message-ID: <8761a6491t.fsf@gmx.us> (raw)
In-Reply-To: 0935B34F-25B2-4CF4-8DA6-3A8B6752162C@agrarianresearch.org

Vikas Rawal <vikaslists@agrarianresearch.org> 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

#+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

You could probably make it smarter and capture the label automatically.


Together we will make the possible totalllly impossible!

      reply	other threads:[~2015-03-12 13:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-11  2:16 Table caption in Latex export with :float nil Vikas Rawal
2015-03-11  5:54 ` Vikas Rawal
2015-03-11  8:51   ` Rasmus
2015-03-11 13:37     ` Vikas Rawal
2015-03-11 13:58       ` Rasmus
2015-03-12 13:36         ` Vikas Rawal
2015-03-12 13:52           ` Rasmus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8761a6491t.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).