From bc530157aa5af70372decfd644512f16e1a9a57d Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Mon, 19 Jan 2009 15:59:03 +0100 Subject: [PATCH] Export: Keep relative path to image relative also after LaTeX export. Reported by Manish. --- lisp/ChangeLog | 3 +++ lisp/org-export-latex.el | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7d911cdf6..2bfadb788 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2009-01-19 Carsten Dominik + * org-export-latex.el (org-export-latex-links): Keep a relative + path relative also after export. + * org-exp.el (org-export-html-scripts): Fix HTML snippet. * org.el (org-make-tags-matcher): Never use IDO for completing the diff --git a/lisp/org-export-latex.el b/lisp/org-export-latex.el index 2635a98be..f52d284fb 100644 --- a/lisp/org-export-latex.el +++ b/lisp/org-export-latex.el @@ -1238,7 +1238,9 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." (if floatp "\\begin{figure}[htb]\n") (format "\\centerline{\\includegraphics[%s]{%s}}\n" (or attr org-export-latex-image-default-option) - (expand-file-name raw-path)) + (if (file-name-absolute-p raw-path) + (expand-file-name raw-path) + raw-path)) (if floatp (format "\\caption{%s%s}\n" (if label (concat "\\label{" label "}") "")