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: Wed, 07 Nov 2012 10:24:10 +0100 Message-ID: <87hap1sr45.fsf@gmail.com> References: <87fw4nyac4.fsf@gmail.com> <87390nbsmu.fsf@gmail.com> <87d2zqxwuw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TW1vv-0005TR-Bc for Emacs-orgmode@gnu.org; Wed, 07 Nov 2012 04:28:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TW1vp-0000XM-K0 for Emacs-orgmode@gnu.org; Wed, 07 Nov 2012 04:28:27 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:64456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TW1vp-0000X8-DQ for Emacs-orgmode@gnu.org; Wed, 07 Nov 2012 04:28:21 -0500 Received: by mail-we0-f169.google.com with SMTP id u3so735204wey.0 for ; Wed, 07 Nov 2012 01:28:20 -0800 (PST) In-Reply-To: <87d2zqxwuw.fsf@gmail.com> (Myles English's message of "Tue, 06 Nov 2012 21:08:55 +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 > 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? This is due to one of the few functions that was brought from the old exporter: `org-export-solidify-link-text'. That's because targets (that is <<...>> or #+NAME: ...) have no limitation on the characters allowed in their value, which can lead to problems when translated into foreign code (i.e. an % sign in the target when using the latex back-end). So, the function replaces forbidden characters with hyphens. Besides using filters, a solution might be either: 1. to remove colons from the forbidden characters. 2. to limit the characters allowed in targets and remove `org-export-solidify-link-text' altogether. Regards, -- Nicolas Goaziou