From mboxrd@z Thu Jan 1 00:00:00 1970 From: org-mode@haggiz.de Subject: pdf links are not converted correctly upon latex export when in an outside directory Date: Mon, 09 Apr 2018 16:11:43 +0200 Message-ID: <20180409161143.Horde.kVUFEpNEA9mJVCLa6cRnlw1@webmail.df.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5XWR-00060l-Uk for emacs-orgmode@gnu.org; Mon, 09 Apr 2018 10:11:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5XWN-0005Yx-Rn for emacs-orgmode@gnu.org; Mon, 09 Apr 2018 10:11:51 -0400 Received: from smtprelay08.ispgateway.de ([134.119.228.110]:41164) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f5XWN-0005TE-K2 for emacs-orgmode@gnu.org; Mon, 09 Apr 2018 10:11:47 -0400 Received: from [134.119.228.5] (helo=webmailfront-cgn01.ispgateway.de) by smtprelay08.ispgateway.de with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.90_1) (envelope-from ) id 1f5XWZ-0000YA-Gf for emacs-orgmode@gnu.org; Mon, 09 Apr 2018 16:11:59 +0200 Content-Disposition: inline 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" To: emacs-orgmode@gnu.org Hello, I've experienced an issue, where links to pdfs (but not .org ) files do not work in an exported pdf file due to incorrect link syntax, if the linked pdf is not in the same subtree as the org file that is exported. If one looks in the .tex file one can see that links to "outside" *.org files and *.pdf files look the same, but after the pdf conversion this is not true anymore. I'm therefore not sure where this problem comes from org-mode or the pdf conversion. However the issue can be solved by forcing relative links also for outside directories by setting (setq org-link-file-path-type 'relative). The following jpg. shows the relevant behavior. http://haggiz.de/images/180406-pdf-latex-scimax/pdf-links-in-latex-export.jpg I'm not sure whether relative links could be a problem at one point, but "adaptive" links to pdfs don't seem to work properly in file trees outside the org file directory. any thoughts? Hagen