emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Absolute paths in exported files


From: Yu
Subject: [O] Absolute paths in exported files
Date: Mon, 23 Jan 2012 19:41:51 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]