emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug in org-beamer-publish-to-pdf?


From: Rafael
Subject: [O] Bug in org-beamer-publish-to-pdf?
Date: Sun, 23 Mar 2014 22:22:05 -0600
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]