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
