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

2015-04-27 Thread Jacob Gerlach
On Mon, Apr 27, 2015 at 4:29 PM, Nicolas Goaziou  wrote:
> No, it is a genuine bug from parser. This should be fixed in
> eb77fed33fa0306ebed2224f7895b688320847b2.
Confirmed that it is fixed. Thank you.

Regards,
Jake



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

2015-04-27 Thread Nicolas Goaziou
Hello,

Jacob Gerlach  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



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

2015-04-27 Thread Jacob Gerlach
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