emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] LaTeX export problem


From: Thomas S. Dye
Subject: Re: [O] LaTeX export problem
Date: Wed, 16 Jul 2014 06:35:00 -1000

Aloha Nicolas,

Nicolas Goaziou <address@hidden> writes:

> Hello,
>
> address@hidden (Thomas S. Dye) writes:
>
>> With a recent Org from git and this source:
>>
>>   #+attr_latex: :width 0.8\textwidth :placement [htb]
>>   #+name: fig:harris-errors
>>   #+caption[Structural effects of false transitives]: Structural effects of 
>> false transitives with the stratigraphic section in Figure 
>> [[fig:fig12-open]]:
>
>> I get this incorrect LaTeX output:
>
> [...]
>
>> If I place a space between the final colon and the link on the
>> first #+caption: line, then I get the output I'm expecting (although
>> there is the extraneous space):
>
> [...]
>
>
> This is because regexp finding short captions is greedy. It thus catches
> everything up to the last "]:" in the first line, making the link
> invalid.
>
>> Is there a work-around?
>
> Just make sure the line containing the short caption doesn't end with
> "]:", e.g.,
>
>   ...
>   #+caption[Structural effects of false transitives]:
>   #+caption: Structural effects of false transitives with the stratigraphic 
> section in Figure [[fig:fig12-open]]:
>   ...

Perfect.  Thanks!

All the best,
Tom

-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com



reply via email to

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