From: Yu <yu_icq@gmx.at>
To: emacs-orgmode@gnu.org
Subject: Absolute paths in exported files
Date: Mon, 23 Jan 2012 19:41:51 +0100 [thread overview]
Message-ID: <CANtbJLFMoFYMihEUsoWtMKfXRh1aap4yTuszCcyYVeof6a8-Yg@mail.gmail.com> (raw)
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
next reply other threads:[~2012-01-23 18:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-23 18:41 Yu [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-01-23 16:57 Absolute paths in exported files 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANtbJLFMoFYMihEUsoWtMKfXRh1aap4yTuszCcyYVeof6a8-Yg@mail.gmail.com \
--to=yu_icq@gmx.at \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).