emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* using vref in latex export, and normal links in html export
@ 2016-03-11 10:20 Alan Schmitt
  2016-03-11 11:03 ` Eric S Fraga
  2016-03-12  8:44 ` Stefan Nobis
  0 siblings, 2 replies; 11+ messages in thread
From: Alan Schmitt @ 2016-03-11 10:20 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 877 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-03-14  9:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-11 10:20 using vref in latex export, and normal links in html export Alan Schmitt
2016-03-11 11:03 ` Eric S Fraga
2016-03-11 13:11   ` Alan Schmitt
2016-03-11 14:02     ` John Kitchin
2016-03-11 15:05       ` Alan Schmitt
2016-03-11 15:20         ` Alan Schmitt
2016-03-12 21:36           ` John Kitchin
2016-03-14  9:33             ` Alan Schmitt
2016-03-12  8:44 ` Stefan Nobis
2016-03-12 21:27   ` John Kitchin
2016-03-14  9:29   ` Alan Schmitt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).