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.
This commit is contained in:
Nicolas Goaziou 2014-03-24 13:55:46 +01:00
parent c4bca1c384
commit 33dce5b98f
2 changed files with 6 additions and 2 deletions

View file

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

View file

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