emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX export ignores caption if table is in a drawer
@ 2023-05-26  0:48 Richard H. Stanton
  2023-05-26  6:33 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Richard H. Stanton @ 2023-05-26  0:48 UTC (permalink / raw)
  To: emacs-orgmode

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:


———

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-26 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-26  0:48 LaTeX export ignores caption if table is in a drawer Richard H. Stanton
2023-05-26  6:33 ` Ihor Radchenko
2023-05-26 16:51   ` Richard Stanton

Code repositories for project(s) associated with this public inbox

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

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).