From 33dce5b98feeb0140ef9fe8e55389ad3e1d772cb Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 24 Mar 2014 13:55:46 +0100 Subject: [PATCH] Fix LaTeX and Beamer publishing process * lisp/ox-beamer.el (org-beamer-publish-to-pdf): * lisp/ox-latex.el (org-latex-publish-to-pdf): Ensure ".tex" file is generated in the same directory as the ".org" file. Thanks to Rafael for reporting it. See http://permalink.gmane.org/gmane.emacs.orgmode/84095. --- lisp/ox-beamer.el | 4 +++- lisp/ox-latex.el | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index 3102b622d..1d26ac44a 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -1166,7 +1166,9 @@ Return output file name." ;; working directory and then moved to publishing directory. (org-publish-attachment plist - (org-latex-compile (org-publish-org-to 'beamer filename ".tex" plist)) + (org-latex-compile + (org-publish-org-to + 'beamer filename ".tex" plist (file-name-directory filename))) pub-dir)) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 9421a932a..230e3fc99 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -2935,7 +2935,9 @@ Return output file name." ;; in working directory and then moved to publishing directory. (org-publish-attachment plist - (org-latex-compile (org-publish-org-to 'latex filename ".tex" plist)) + (org-latex-compile + (org-publish-org-to + 'latex filename ".tex" plist (file-name-directory filename))) pub-dir)) -- 2.11.4.GIT