emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Vladimir Alexiev <vladimir.alexiev@ontotext.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: ox-latex doesn't handle doi: links right
Date: Thu, 17 Mar 2016 09:06:04 +0000	[thread overview]
Message-ID: <87d1qteao3.fsf@delle7240.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <loom.20160317T084657-11@post.gmane.org> (Vladimir Alexiev's message of "Thu, 17 Mar 2016 07:47:19 +0000")

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	other threads:[~2016-03-17  9:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-17  7:47 ox-latex doesn't handle doi: links right Vladimir Alexiev
2016-03-17  9:06 ` Eric S Fraga [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d1qteao3.fsf@delle7240.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=vladimir.alexiev@ontotext.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).