From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: using vref in latex export, and normal links in html export Date: Fri, 11 Mar 2016 11:20:13 +0100 Message-ID: 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]:55174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeKBA-0007cy-DY for emacs-orgmode@gnu.org; Fri, 11 Mar 2016 05:20:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeKB6-0006FP-8F for emacs-orgmode@gnu.org; Fri, 11 Mar 2016 05:20:20 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:4472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeKB6-0006F8-1O for emacs-orgmode@gnu.org; Fri, 11 Mar 2016 05:20:16 -0500 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: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I'm converting a latex document into org-mode to easily export it both to latex and html. I've just encountered something that I don't know how to do: export a \vref reference. I would like to have something that exports to \vref in latex, and to a normal link in html. I thought I could do this trick with a macro: #+macro: vref @@latex:\myvref{$1}{@@[[$1]]@@latex:}@@ then define the latex command to ignore the second argument: \newcommand{\myvref}{2}{\vref{#1}} Unfortunately this does not work, as the name of the label is changed during export: Figure \myvref{fig:log-expt-7}{\ref{fig:orgparagraph1}}=20 So my question is: is anyone using vref with org-mode? Or should I just convert this to a plain reference? 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 iQEcBAEBCgAGBQJW4pvdAAoJEAQNCjtO0uXHRp0H/26i+goPA0CQgrDGV0uqRb2p plME0l/qFMk4lWYFUnxcaez9mXHl9r+afVsLhPgWjKohFWQhTxkvJX+MbRI2IWsh UyvywqRXiXcJOoJKDBJL+0buay6U1G7MGXFQUUTG+yYsm9kv4QmZIMFtBMyYkCmY fxeG50DtBdNDDP4g4TVUSvrXX1hKPbqZDm0wcclbGIEA+vAPcju+XdJQMsDqwVkS WV8FtYMG5t8RpajZEGzgfr6xbLdL9rHVNkFLEEUK1uKBWR/OTE+oq1LTZL00pnCn mWHzP796Eu2vBehg+qGoto/9FEiJkqc3Xga7RzC7GcN32VK8BpkvbCvtOrTAWtA= =sQpo -----END PGP SIGNATURE----- --=-=-=--