From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new exporter] what is the label syntax for LaTeX export? Date: Mon, 05 Nov 2012 23:18:49 +0100 Message-ID: <87390nbsmu.fsf@gmail.com> References: <87fw4nyac4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVV4T-0002yq-B2 for Emacs-orgmode@gnu.org; Mon, 05 Nov 2012 17:23:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVV4R-0001RY-Sk for Emacs-orgmode@gnu.org; Mon, 05 Nov 2012 17:23:05 -0500 Received: from mail-wi0-f177.google.com ([209.85.212.177]:43211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVV4R-0001RU-Iv for Emacs-orgmode@gnu.org; Mon, 05 Nov 2012 17:23:03 -0500 Received: by mail-wi0-f177.google.com with SMTP id hj13so2594126wib.12 for ; Mon, 05 Nov 2012 14:23:02 -0800 (PST) In-Reply-To: <87fw4nyac4.fsf@gmail.com> (Myles English's message of "Mon, 05 Nov 2012 22:05:31 +0000") 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: Myles English Cc: Emacs-orgmode 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, ...". Regards, -- Nicolas Goaziou