* Bug in org-beamer-publish-to-pdf?
@ 2014-03-24 4:22 Rafael
2014-03-24 13:00 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Rafael @ 2014-03-24 4:22 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug in org-beamer-publish-to-pdf?
2014-03-24 4:22 Bug in org-beamer-publish-to-pdf? Rafael
@ 2014-03-24 13:00 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2014-03-24 13:00 UTC (permalink / raw)
To: Rafael; +Cc: Emacs-orgmode list
Hello,
Rafael <rvf0068@gmail.com> writes:
> 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.
You're correct. This should now be fixed in maint. Thank you for
reporting it.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-24 13:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-24 4:22 Bug in org-beamer-publish-to-pdf? Rafael
2014-03-24 13:00 ` Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.