From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: [new exporter] what is the label syntax for LaTeX export? Date: Tue, 06 Nov 2012 21:08:55 +0000 Message-ID: <87d2zqxwuw.fsf@gmail.com> References: <87fw4nyac4.fsf@gmail.com>,<87390nbsmu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVqOJ-00080p-7s for Emacs-orgmode@gnu.org; Tue, 06 Nov 2012 16:09:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVqOI-0006EB-9u for Emacs-orgmode@gnu.org; Tue, 06 Nov 2012 16:08:59 -0500 Received: from mail-wi0-f171.google.com ([209.85.212.171]:45873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVqOI-0006CX-2v for Emacs-orgmode@gnu.org; Tue, 06 Nov 2012 16:08:58 -0500 Received: by mail-wi0-f171.google.com with SMTP id hj13so3395565wib.12 for ; Tue, 06 Nov 2012 13:08:57 -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: Emacs-orgmode Hi Nicolas, Nicolas Goaziou writes: > Myles English writes: > [..] >> 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. Thanks for correcting me. One problem I am having is that the exported LaTeX replaces the ":" with a "-" to become \ref{tab-niceone} which precludes the use of (e.g.) \autoref which would need to know that the thing being referenced was a table by recognising the "tab:", no? I am sure there is a good reason for this, can you say why? In the meantime I will investigate filters. I only really use \autoref out of laziness anyway so I could just replace the ":" in all my currently defined labels. > 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, ...". That will definately be useful. Thanks, Myles