emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] ox-latex doesn't handle doi: links right


From: Eric S Fraga
Subject: Re: [O] ox-latex doesn't handle doi: links right
Date: Thu, 17 Mar 2016 09:06:04 +0000
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.90 (gnu/linux)

On Thursday, 17 Mar 2016 at 07:47, Vladimir Alexiev wrote:
> A link like doi:10.1109/ICMEW.2015.7169818 is resolved in org to 
> http://dx.doi.org/10.1109/ICMEW.2015.7169818.
> (I mean that if I click to the link, I go to that URL)
>
> However, ox-latex makes merely this:
>    \url{10.1109/ICMEW.2015.7169818} 
> which Acrobat tries to resolve as a local file.
> Instead, ox-latex should make this:
>    \href{http://dx.doi.org/10.1109/ICMEW.2015.7169818}
> {doi:10.1109/ICMEW.2015.7169818}

On my system, the default handling for doi: links is

--8<---------------cut here---------------start------------->8---
 ("doi" nil
  (lambda
    (path desc format)
    (cond
     ((eq format 'latex)
      (format "\\doi{%s}" path)))))
--8<---------------cut here---------------end--------------->8---

It is then a case of defining the LaTeX \doi function to do what you
want?  Probably simply add

#+latex_header: \usepackage{doi}

to your org file to get what you want.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa



reply via email to

[Prev in Thread] Current Thread [Next in Thread]