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: Thu, 08 Nov 2012 03:27:28 +0000 Message-ID: <877gpwydsv.fsf@gmail.com> References: <87fw4nyac4.fsf@gmail.com>, <87390nbsmu.fsf@gmail.com>, <87d2zqxwuw.fsf@gmail.com>, <87hap1sr45.fsf@gmail.com>, <87a9utxc93.fsf@gmail.com>, <87390lm18h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWImB-0008J0-DD for Emacs-orgmode@gnu.org; Wed, 07 Nov 2012 22:27:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWImA-0002gi-FK for Emacs-orgmode@gnu.org; Wed, 07 Nov 2012 22:27:31 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:49611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWImA-0002ge-8v for Emacs-orgmode@gnu.org; Wed, 07 Nov 2012 22:27:30 -0500 Received: by mail-we0-f169.google.com with SMTP id u3so1235638wey.0 for ; Wed, 07 Nov 2012 19:27:29 -0800 (PST) In-reply-to: <87390lm18h.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 Nicolas Goaziou writes: > Colons are now allowed in targets. > > Thanks for submitting the suggestion. Thanks a lot Nicolas. In case anyone else finds this useful, here is the filter I'll use to replace \ref with \autoref: (defun my-autoref-filter-link-func (output backend info) (when (and (memq backend '(e-latex)) (string-match "\\\\ref\{\\(.*\\)\}" output)) (replace-match (concat "\\\\autoref{" (match-string 1 output) "}") nil nil output))) (add-to-list 'org-export-filter-link-functions 'my-autoref-filter-link-func) Myles