all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Richard H. Stanton" <rhstanton@berkeley.edu>
To: emacs-orgmode@gnu.org
Subject: LaTeX export ignores caption if table is in a drawer
Date: Thu, 25 May 2023 17:48:12 -0700	[thread overview]
Message-ID: <BE3D2507-644A-403F-8D21-B2C0D624D18E@berkeley.edu> (raw)

I often create tables programatically from within an org code block. To make sure I don’t produce multiple copies of the output, I like to enclose the results in a drawer. However, the exporter seems to ignore any caption I might assign if the table itself is inside a drawer. For example, if you export the sample org file below to LaTeX, the first table gets exported with caption, the second without. Would it be possible for the exporter to keep the caption in the second case as well? 

[By the way, this would be particularly helpful at the moment, as for some reason emacs-jupyter currently seems to put all results in a drawer regardless of whether you ask it to or not…).

Thanks.

Richard Stanton




———

#+caption: Small table
| C1 | C2 |
|----+----|

#+caption: Small table
:results:
| C1 | C2 |
|----+----|
:end:


———

             reply	other threads:[~2023-05-26  0:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-26  0:48 Richard H. Stanton [this message]
2023-05-26  6:33 ` LaTeX export ignores caption if table is in a drawer Ihor Radchenko
2023-05-26 16:51   ` Richard Stanton

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=BE3D2507-644A-403F-8D21-B2C0D624D18E@berkeley.edu \
    --to=rhstanton@berkeley.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.