Re: [O] New LaTeX exporter captions

2012-10-28 Thread Thomas S. Dye
Nicolas Goaziou  writes:

> Hello,
>
> t...@tsdye.com (Thomas S. Dye) writes:
>
>> An example I gave on the ML a few days ago doesn't really work right.
>>
>> #+name: fundamental-model
>> #+header: :exports results
>> #+header: :file fundamental-model.pdf
>> #+BEGIN_SRC dot
>>   graph G
>> { 
>> graph [margin="0.01"];
>>   d [label = "Dated event", shape ="box"];
>>   t [label = "Target event"];
>>   d -- t [label = "Association", dir = "both", len = 2];
>>   {rank=same; d t;}
>>   }
>> #+END_SRC  
>>
>> #+CAPTION[The fundamental relationship of a chronological model]: 
>> #+CAPTION: The fundamental relationship of a chronological model based on 
>> radiometric dating.
>> #+ATTR_LaTeX: width=232pt
>> #+NAME: fig:fundamental
>> #+RESULTS: fundamental-model
>> [[file:fundamental-model.pdf]]
>>
>> In particular, the short part of caption doesn't export unless the colon
>> is followed by some content.  Is this intentional?
>
> At first, only one caption line was allowed. Thus, it didn't make much
> sense to provide a short caption but no long caption. Now captions are
> multi-lines, it may be possible to do so. I've removed the restriction
> in master branch.
>
> Note that you can also use the following:
>
>   #+CAPTION[The fundamental relationship of a chronological model]:
> The fundamental
>   #+CAPTION: relationship of a chronological model based on
> radiometric dating

Neat.  Thanks for the help.

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



Re: [O] New LaTeX exporter captions

2012-10-28 Thread Nicolas Goaziou
Hello,

t...@tsdye.com (Thomas S. Dye) writes:

> An example I gave on the ML a few days ago doesn't really work right.
>
> #+name: fundamental-model
> #+header: :exports results
> #+header: :file fundamental-model.pdf
> #+BEGIN_SRC dot
>   graph G
> { 
> graph [margin="0.01"];
>   d [label = "Dated event", shape ="box"];
>   t [label = "Target event"];
>   d -- t [label = "Association", dir = "both", len = 2];
>   {rank=same; d t;}
>   }
> #+END_SRC  
>
> #+CAPTION[The fundamental relationship of a chronological model]: 
> #+CAPTION: The fundamental relationship of a chronological model based on 
> radiometric dating.
> #+ATTR_LaTeX: width=232pt
> #+NAME: fig:fundamental
> #+RESULTS: fundamental-model
> [[file:fundamental-model.pdf]]
>
> In particular, the short part of caption doesn't export unless the colon
> is followed by some content.  Is this intentional?

At first, only one caption line was allowed. Thus, it didn't make much
sense to provide a short caption but no long caption. Now captions are
multi-lines, it may be possible to do so. I've removed the restriction
in master branch.

Note that you can also use the following:

  #+CAPTION[The fundamental relationship of a chronological model]: The 
fundamental
  #+CAPTION: relationship of a chronological model based on radiometric dating.


Regards,

-- 
Nicolas Goaziou