[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] using vref in latex export, and normal links in html export
From: |
Alan Schmitt |
Subject: |
[O] using vref in latex export, and normal links in html export |
Date: |
Fri, 11 Mar 2016 11:20:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
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}}
So my question is: is anyone using vref with org-mode? Or should I just
convert this to a plain reference?
Thanks,
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-02, Mauna Loa Obs.): 404.02
signature.asc
Description: PGP signature
- [O] using vref in latex export, and normal links in html export,
Alan Schmitt <=
- Re: [O] using vref in latex export, and normal links in html export, Eric S Fraga, 2016/03/11
- Re: [O] using vref in latex export, and normal links in html export, Alan Schmitt, 2016/03/11
- Re: [O] using vref in latex export, and normal links in html export, John Kitchin, 2016/03/11
- Re: [O] using vref in latex export, and normal links in html export, Alan Schmitt, 2016/03/11
- Re: [O] using vref in latex export, and normal links in html export, Alan Schmitt, 2016/03/11
- Re: [O] using vref in latex export, and normal links in html export, John Kitchin, 2016/03/12
- Re: [O] using vref in latex export, and normal links in html export, Alan Schmitt, 2016/03/14
Re: [O] using vref in latex export, and normal links in html export, Stefan Nobis, 2016/03/12