From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rafael Subject: Bug in org-beamer-publish-to-pdf? Date: Sun, 23 Mar 2014 22:22:05 -0600 Message-ID: <86k3bkxm36.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRwOu-0001BP-T6 for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 00:22:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRwOm-0006Xn-GA for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 00:22:16 -0400 Received: from mail-ob0-x22d.google.com ([2607:f8b0:4003:c01::22d]:38827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRwOm-0006Xh-BE for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 00:22:08 -0400 Received: by mail-ob0-f173.google.com with SMTP id gq1so5139589obb.18 for ; Sun, 23 Mar 2014 21:22:07 -0700 (PDT) Received: from lahp ([189.189.39.48]) by mx.google.com with ESMTPSA id dg2sm21376681obb.17.2014.03.23.21.22.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 23 Mar 2014 21:22:06 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode list Hi all, Using Org-mode version 8.2.5h (release_8.2.5h-829-g9665f8) from git, and GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2014-02-22 on king, modified by Debian I think there is a bug in org-beamer-publish-to-pdf. The code of the function is: #+BEGIN_SRC emacs-lisp (defun org-beamer-publish-to-pdf (plist filename pub-dir) (org-publish-attachment plist (org-latex-compile (org-publish-org-to 'beamer filename ".tex" plist)) pub-dir)) #+END_SRC It seems to me that (org-publish-org-to 'beamer filename ".tex" plist) only returns filename.tex without the directory. Hence org-latex-compile wants to compile a .tex file in my home directory, (rather than at the base directory of the publishing) and fails at not finding it there. Certainly not the most elegant solution, but the following works for me. Although only with (setq org-latex-pdf-process '("texi2dvi -p -b -V %f")), since with the default setting for org-latex-pdf-process, still pdflatex complains about not being able to write to the log file. #+BEGIN_SRC emacs-lisp (defun org-beamer-publish-to-pdf (plist filename pub-dir) (org-publish-attachment plist (org-latex-compile (concat (plist-get plist :base-directory) (substring (org-publish-org-to 'beamer filename ".tex" plist) 1 nil) )) pub-dir)) #+END_SRC