emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [new exporter] what is the label syntax for LaTeX export?


From: Carsten Dominik
Subject: Re: [O] [new exporter] what is the label syntax for LaTeX export?
Date: Tue, 6 Nov 2012 08:30:20 +0100

On 5 nov. 2012, at 23:18, Nicolas Goaziou <address@hidden> wrote:

> Hello,
> 
> Myles English <address@hidden> writes:
> 
>> If my org file has:
>> 
>> #+CAPTION[Here is a table]: A nice table
>> #+NAME: tab:niceone
>> | a     |
>> 
>> Look at my \ref{tab:niceone}.
>> 
>> then M-x org-export-dispatch l L gives me:
>> 
>> \begin{table}[htb]
>> \caption[Here is a table]{\label{tab-niceone}A nice table}
>> \begin{center}
>> \begin{tabular}{l}
>> a\\
>> \end{tabular}
>> \end{center}
>> \end{table}
>> 
>> Look at my \ref{tab:niceone}.
>> 
>> So, the label tab:niceone exports as \label{tab-niceone}.  Is that right
>> or am I using the wrong syntax somewhere?
> 
> The correct syntax is:
> 
>  [[tab:niceone]]
> 
> It will allow to move back and forth between the link and the target and
> it will work across back-ends.
> 
> The new exporter comes with a cross-referencing system. Another example:
> 
>  1. item 1
>  2. <<itm>>item 3
> 
>  As one can see in item [[itm]], ...
> 
> will be exported as "As one can see in item 2, ...".
> 

I had not fully realized this, this is great Nicolas!

- Carsten

> 
> Regards,
> 
> -- 
> Nicolas Goaziou
> 

- Carsten






reply via email to

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