From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu Subject: Absolute paths in exported files Date: Mon, 23 Jan 2012 19:41:51 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpOqZ-0001Oc-1D for emacs-orgmode@gnu.org; Mon, 23 Jan 2012 13:42:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpOqX-0005Mj-RP for emacs-orgmode@gnu.org; Mon, 23 Jan 2012 13:42:26 -0500 Received: from mailout-de.gmx.net ([213.165.64.22]:54869) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RpOqX-0005MW-9k for emacs-orgmode@gnu.org; Mon, 23 Jan 2012 13:42:25 -0500 Received: by lagw12 with SMTP id w12so2223150lag.0 for ; Mon, 23 Jan 2012 10:42:22 -0800 (PST) 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: emacs-orgmode@gnu.org Hello! An older topic was here: http://lists.gnu.org/archive/html/emacs-orgmode/2010-01/msg00573.html The problem seems to persist as of now for latex (and thus pdf) export. The results are sort of diffuse though. I am working with emacs on Cygwin using the latest git-version and native Windows "Adobe Reader" and "Sumatra PDF" as PDF Viewers. * Apparently [[file:file]] is exported as \href{file://.file}{file:file} (note the extra period) * The same happens with [[./file]] and other local paths like [[file:plots/somefile.pdf]] * For some reason sometimes relative paths get exported as absolute paths. Examples: [[file:/labbook.org]] => \href{file://./labbook.org}{file:/labbook.org} [[./labbook.org]] => \href{file:///absolute/path/to/labbook.org}{./labbook.org} [[./plot/test.plt]] => \href{file://../plot/test.plt}{./plot/test.plt} [[/labbook.org]] => \href{file://./labbook.org}{/labbook.org} In another org file: [[./local.plt]] => \href{file://../local.plt}{./local.plt} [[file:local.org]] => \href{file://.local.org}{file:local.org} [[./local.org]] => \href{file://../local.org}{./local.org} Also: * file://relative/path - style urls fail to be opened (adobe reader passes it to the browser, the browser treats it as absolute path). Might also be related to the windows environment, but a PDF should be portable anyway. * Researching the problem, I read that hyperref's \href doesn't support relative paths to begin with. Any ideas? It works well for html export and for use within the org-mode buffer, but it would be nice if the links in the PDF file could support local files properly too (though I'm not sure if the viewers even support this). kind regards, Yu