From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: ox-latex doesn't handle doi: links right Date: Thu, 17 Mar 2016 09:06:04 +0000 Message-ID: <87d1qteao3.fsf@delle7240.chemeng.ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agTt0-0002Gt-8j for emacs-orgmode@gnu.org; Thu, 17 Mar 2016 05:06:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agTsu-0003t6-8W for emacs-orgmode@gnu.org; Thu, 17 Mar 2016 05:06:30 -0400 Received: from mail-am1on0105.outbound.protection.outlook.com ([157.56.112.105]:50236 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agTst-0003fW-V4 for emacs-orgmode@gnu.org; Thu, 17 Mar 2016 05:06:24 -0400 In-Reply-To: (Vladimir Alexiev's message of "Thu, 17 Mar 2016 07:47:19 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Vladimir Alexiev Cc: emacs-orgmode@gnu.org 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