From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: LaTeX export with section number, name and page in internal links Date: Wed, 09 Dec 2015 09:47:48 -0800 Message-ID: <87fuzbtsxn.fsf@berkeley.edu> References: <87mvtkubrm.fsf@berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6ipt-0006Mq-Pv for emacs-orgmode@gnu.org; Wed, 09 Dec 2015 12:47:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6ipp-0002RZ-OT for emacs-orgmode@gnu.org; Wed, 09 Dec 2015 12:47:29 -0500 Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]:34977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6ipp-0002RR-Ih for emacs-orgmode@gnu.org; Wed, 09 Dec 2015 12:47:25 -0500 Received: by pfu207 with SMTP id 207so33361099pfu.2 for ; Wed, 09 Dec 2015 09:47:23 -0800 (PST) In-Reply-To: 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: John Kitchin Cc: Ilya , emacs-orgmode@gnu.org John Kitchin writes: >> I do something like this with custom link types. > Aha! I am not the only one ;) > >> >> First of all, have a look at the variable >> >> org-latex-prefer-user-labels > > Is this a new 8.3 variable? It doesn't seem to be in my 8.2.10 MELPA > version. Yes, I believe it is new in 8.3, although it originated in a patch I wrote quite a while ago (February 2014?) when I needed this behavior. > I like your idea. I think you could simplify it to just: > > (org-add-link-type > "sec" > (lambda (path) > (org-open-link-from-string (format "[[#%s]]" path))) > ... Ah, nice, that is way simpler. Thanks! Best, Richard