org-e-publish: Fix publishing to PDF

* contrib/lisp/org-e-publish.el (org-e-publish-org-to-pdf): First
  publish in base directory, then move results to publishing
  directory.  It allows to correctly publish a document with images
  generated by some Babel code.
This commit is contained in:
Nicolas Goaziou 2012-10-06 19:43:32 +02:00
parent b0938f684e
commit f461a10532
1 changed files with 8 additions and 2 deletions

View File

@ -591,8 +591,14 @@ publishing directory.
Return output file name."
(require 'org-e-latex nil t)
;; Unlike to `org-e-publish-org-to-latex', PDF file is generated in
;; base directory and then moved to publishing directory.
(org-e-publish-attachment
plist
(org-e-latex-compile
(org-e-publish-org-to 'e-latex filename ".tex" plist pub-dir)))
(org-e-publish-org-to
'e-latex filename ".tex" plist (plist-get plist :base-directory)))
pub-dir))
(defun org-e-publish-org-to-html (plist filename pub-dir)
"Publish an org file to HTML.