@@ -1165,7 +1165,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))
@@ -3096,7 +3096,9 @@ Return output file name."
;; in working directory and then moved to publishing directory.
- (org-latex-compile (org-publish-org-to 'latex filename ".tex" plist))
+ 'latex filename ".tex" plist (file-name-directory filename)))