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

* 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

* Re: [BUG?] Blank line required between text and short caption
  2015-04-27 20:29 ` Nicolas Goaziou
@ 2015-04-28  0:43   ` Jacob Gerlach
  0 siblings, 0 replies; 3+ messages in thread
From: Jacob Gerlach @ 2015-04-28  0:43 UTC (permalink / raw)
  To: Org-mode

On Mon, Apr 27, 2015 at 4:29 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> No, it is a genuine bug from parser. This should be fixed in
> eb77fed33fa0306ebed2224f7895b688320847b2.
Confirmed that it is fixed. Thank you.

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