emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* changing \href to \myhref in LaTex export
@ 2010-01-19 15:31 "Martin G. Skjæveland"
  2010-01-20  8:40 ` Sébastien Vauban
  0 siblings, 1 reply; 8+ messages in thread
From: "Martin G. Skjæveland" @ 2010-01-19 15:31 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

is it possible to change how hyperlinks are exported to LaTex without 
going into to org-latex.el, but setting by a variable or similar in my 
.emacs file?

I would like to export hyperlinks in Latex as \myhref (or something 
else) instead of \href, so that I can redefine \myhref using \href, like 
this

    \usepackage{ifthen}
    \newcommand{\myhref}[2]{
      \ifthenelse{\equal{#1}{#2}}
        {\href{#1}{#2}}
        {\href{#1}{#2}\footnote{\url{#1}}}
      }

and thus include the URLs of the links as footnotes.

(I thought I could set this with a parameter of the hyperref package in 
LaTex, but I have not found a way.)

Thanks!
Martin

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

end of thread, other threads:[~2010-01-20 12:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19 15:31 changing \href to \myhref in LaTex export "Martin G. Skjæveland"
2010-01-20  8:40 ` Sébastien Vauban
2010-01-20  9:19   ` "Martin G. Skjæveland"
2010-01-20  9:28     ` Carsten Dominik
2010-01-20 10:00       ` "Martin G. Skjæveland"
2010-01-20 11:10     ` Sébastien Vauban
2010-01-20 12:08       ` Carsten Dominik
2010-01-20 13:00       ` "Martin G. Skjæveland"

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).