浏览代码

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.
Nicolas Goaziou 11 年之前
父节点
当前提交
33dce5b98f
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 3 1
      lisp/ox-beamer.el
  2. 3 1
      lisp/ox-latex.el

+ 3 - 1
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))
 
 

+ 3 - 1
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))