From 88d62928935db89b254a33ed814ca2049e006bb0 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Fri, 23 Mar 2012 13:55:50 +0100 Subject: [PATCH] org-latex.el: Fix bug in setting the export directory according to the LaTeX options. * org-latex.el (org-export-as-latex): Fix bug in setting the export directory according to the LaTeX options. Thanks to A. Major for reporting this and to Christian Moe for suggesting a fix. --- lisp/org-latex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 2e11ca41a..aa48ef956 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -855,7 +855,7 @@ when PUB-DIR is set, use this as the publishing directory." (concat (file-name-as-directory (or pub-dir - (org-export-directory :LaTeX ext-plist))) + (org-export-directory :LaTeX org-export-latex-options-plist))) (file-name-sans-extension (or (and subtree-p (org-entry-get rbeg "EXPORT_FILE_NAME" t))