emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ox-latex doesn't handle doi: links right
@ 2016-03-17  7:47 Vladimir Alexiev
  2016-03-17  9:06 ` Eric S Fraga
  0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Alexiev @ 2016-03-17  7:47 UTC (permalink / raw)
  To: emacs-orgmode

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}

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

* Re: ox-latex doesn't handle doi: links right
  2016-03-17  7:47 ox-latex doesn't handle doi: links right Vladimir Alexiev
@ 2016-03-17  9:06 ` Eric S Fraga
  0 siblings, 0 replies; 2+ messages in thread
From: Eric S Fraga @ 2016-03-17  9:06 UTC (permalink / raw)
  To: Vladimir Alexiev; +Cc: emacs-orgmode

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

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-17  7:47 ox-latex doesn't handle doi: links right Vladimir Alexiev
2016-03-17  9:06 ` Eric S Fraga

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