emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [BUG?] Blank line required between text and short caption


From: Jacob Gerlach
Subject: [O] [BUG?] Blank line required between text and short caption
Date: Mon, 27 Apr 2015 14:29:18 -0400

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]