emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Absolute paths in exported files
@ 2012-01-23 18:41 Yu
  0 siblings, 0 replies; 6+ messages in thread
From: Yu @ 2012-01-23 18:41 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Absolute paths in exported files
@ 2010-01-23 16:57 andrea
  2010-01-23 17:59 ` andrea
  0 siblings, 1 reply; 6+ messages in thread
From: andrea @ 2010-01-23 16:57 UTC (permalink / raw)
  To: emacs-orgmode

I was exporting an org-file containing relative paths in the format
"file:../"

In both the pdf and the html the url becomes absolute, I haven't found a
good reason for that in the documentation (they should remain relative
as I understood), any idea?

Org-mode version 6.33trans
GNU Emacs 23.1.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of
2009-09-16 on neutron.local

THanks

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-23 18:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-23 18:41 Absolute paths in exported files Yu
  -- strict thread matches above, loose matches on Subject: below --
2010-01-23 16:57 andrea
2010-01-23 17:59 ` andrea
2010-01-23 18:41   ` andrea
2010-01-24 15:15     ` Andrea Crotti
2010-01-25  8:59       ` Andrea Crotti

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).