emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG?] Blank line required between text and short caption
@ 2015-04-27 18:29 Jacob Gerlach
  2015-04-27 20:29 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Jacob Gerlach @ 2015-04-27 18:29 UTC (permalink / raw)
  To: Org-mode

Hello,

Is it required by org syntax to separate short captions from body text?

In the following example:
------------------------------------
* ECM
Some text that introduces this table.
#+CAPTION[Short caption]:
#+CAPTION: Longer caption
| Foo |
------------------------------------

Latex export gives:
------------------------------------
...
Some text that introduces this table.
\#+CAPTION[Short caption]:
\begin{table}[htb]
\caption{Longer caption}
...
------------------------------------

Adding an empty line between the text and short caption produces the
expected results:
------------------------------------
* ECM
Some text that introduces this table.

#+CAPTION[Short caption]:
#+CAPTION: Longer caption
| Foo |
------------------------------------
...
Some text that introduces this table.

\begin{table}[htb]
\caption[Short caption]{Longer caption}
...
------------------------------------

A regular (i.e. non-short) caption works regardless of the empty line:
------------------------------------
* ECM
Some text that introduces this table.
#+CAPTION: A caption
| Foo |
------------------------------------
Some text that introduces this table.
\begin{table}[htb]
\caption{A caption}
------------------------------------

Regards,
Jake

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

end of thread, other threads:[~2015-04-28  0:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-27 18:29 [BUG?] Blank line required between text and short caption Jacob Gerlach
2015-04-27 20:29 ` Nicolas Goaziou
2015-04-28  0:43   ` Jacob Gerlach

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