From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: using vref in latex export, and normal links in html export Date: Fri, 11 Mar 2016 16:20:11 +0100 Message-ID: References: <8737rxwa2i.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeOrS-00047R-0F for emacs-orgmode@gnu.org; Fri, 11 Mar 2016 10:20:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeOrN-00044L-14 for emacs-orgmode@gnu.org; Fri, 11 Mar 2016 10:20:17 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:55736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeOrM-00044C-QT for emacs-orgmode@gnu.org; Fri, 11 Mar 2016 10:20:12 -0500 In-Reply-To: (Alan Schmitt's message of "Fri, 11 Mar 2016 16:05:56 +0100") 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: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2016-03-11 16:05, Alan Schmitt writes: > On 2016-03-11 15:02, John Kitchin writes: > >> Try: >> >> (setq org-latex-prefer-user-labels t) >> >> I think this does what you want for org 8.3.4 at least. > > Thank you! This is what I was missing. As a followup question, I read the documentation for `org-add-link-type` which says "Org mode has a built-in default for exporting links." What is the name of that function? I would like to change Eric's function to something like: #+begin_src elisp (org-add-link-type "vref" nil (lambda (path desc format) (cond ((eq format 'latex) (format "\\vref{%s}" path)) (t (call org default))))) #+end_src I searched through ox.el but could not find that function. Thanks, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82 (2016-02, Mauna Loa Obs.): 404.02 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJW4uIrAAoJEAQNCjtO0uXHQgcH/2o4q/bXAqYrTs5FWjG9GQIN M04st5YsCv/qXFF+R3BaTowEnZz0HcHTVsuv3juuMXlfdvPzQ9IF6Io8ugfyQmfi Z11sxdnM8a4wy2ynrnQMNF9SCyy1XIf8rEVcYHLkGW9FjGnzAuUfDH75HSTFcIyW oOpNgVml09sH9A65OiNtnajMCIcF3YIuU4ExccgjAoie41d2B1PrSrcZz2ppld1V VYK8v1T7o0t84oi88Q/zgT3KAbbeMGZZVNUXqixthO1hXV/wcb+qrbrRchpqj3Qj NMvlbUFqry6NjS5Rpl+CzDZy8SjkH2ex+G+j7USXzg00FSC6WqE4ekuyMZK6c20= =o+ue -----END PGP SIGNATURE----- --=-=-=--