From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [new exporter] what is the label syntax for LaTeX export? Date: Tue, 6 Nov 2012 08:30:20 +0100 Message-ID: References: <87fw4nyac4.fsf@gmail.com> <87390nbsmu.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVdc9-0002hQ-Ch for Emacs-orgmode@gnu.org; Tue, 06 Nov 2012 02:30:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVdc8-0005To-A2 for Emacs-orgmode@gnu.org; Tue, 06 Nov 2012 02:30:25 -0500 Received: from mail-ea0-f169.google.com ([209.85.215.169]:38630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVdc8-0005TO-3g for Emacs-orgmode@gnu.org; Tue, 06 Nov 2012 02:30:24 -0500 Received: by mail-ea0-f169.google.com with SMTP id k11so63224eaa.0 for ; Mon, 05 Nov 2012 23:30:21 -0800 (PST) In-Reply-To: <87390nbsmu.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Myles English , Emacs-orgmode On 5 nov. 2012, at 23:18, Nicolas Goaziou wrote: > Hello, > > Myles English 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. <>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