* [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
* Re: [BUG?] Blank line required between text and short caption
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
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2015-04-27 20:29 UTC (permalink / raw)
To: Jacob Gerlach; +Cc: Org-mode
Hello,
Jacob Gerlach <jacobgerlach@gmail.com> writes:
> 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}
> ...
> ------------------------------------
No, it is a genuine bug from parser. This should be fixed in
eb77fed33fa0306ebed2224f7895b688320847b2.
Thank you.
Regards,
--
Nicolas Goaziou
^ 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 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.