From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: export_file_name problem with new exporter Date: Sat, 08 Dec 2012 12:13:30 +0100 Message-ID: References: <20121207122921.GL4294@kuru.dyndns-at-home.com> <20121207125019.GM4294@kuru.dyndns-at-home.com> <20121207152100.GN4294@kuru.dyndns-at-home.com> <20121207190957.GA10848@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThILf-000859-JY for emacs-orgmode@gnu.org; Sat, 08 Dec 2012 06:13:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThILe-000766-9u for emacs-orgmode@gnu.org; Sat, 08 Dec 2012 06:13:35 -0500 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:38886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThILe-00075s-3R for emacs-orgmode@gnu.org; Sat, 08 Dec 2012 06:13:34 -0500 In-Reply-To: (Alan Schmitt's message of "Sat, 08 Dec 2012 11:50:50 +0100") 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: Suvayu Ali Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Alan Schmitt writes: > Well, replacing "org-e-beamer-publish-to-latex" by > "org-e-latex-publish-to-latex" results in the same error. I looked at > the code, and my problem was that ":include" expects a list, so I'm able > to make this . I forgot one word: "work". > I'll try to see if adding beamer support is difficult. It was trivial to add. Please find a patch attached. Should I push this commit myself, or let someone else do it? Alan --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-contrib-lisp-org-e-beamer.el-Publishing.patch >From ce787823cec892d8cfb8391145ae374adad7dc59 Mon Sep 17 00:00:00 2001 From: Alan Schmitt Date: Sat, 8 Dec 2012 12:09:22 +0100 Subject: [PATCH] * contrib/lisp/org-e-beamer.el (Publishing): added publishing functions org-e-beamer-publish-to-latex and org-e-beamer-publish-to-pdf TINYCHANGE --- contrib/lisp/org-e-beamer.el | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/contrib/lisp/org-e-beamer.el b/contrib/lisp/org-e-beamer.el index bab655e..9333a7a 100644 --- a/contrib/lisp/org-e-beamer.el +++ b/contrib/lisp/org-e-beamer.el @@ -1145,6 +1145,33 @@ aid, but the tag does not have any semantic meaning." (insert "#+COLUMNS: " org-e-beamer-column-view-format "\n")) (insert "#+PROPERTY: BEAMER_col_ALL " org-e-beamer-column-widths "\n"))) +;;;###autoload +(defun org-e-beamer-publish-to-latex (plist filename pub-dir) + "Publish an Org file to a Beamer presentation (LaTeX). + +FILENAME is the filename of the Org file to be published. PLIST +is the property list for the given project. PUB-DIR is the +publishing directory. + +Return output file name." + (org-e-publish-org-to 'e-beamer filename ".tex" plist pub-dir)) + +;;;###autoload +(defun org-e-beamer-publish-to-pdf (plist filename pub-dir) + "Publish an Org file to a Beamer presentation (PDF, via LaTeX). + +FILENAME is the filename of the Org file to be published. PLIST +is the property list for the given project. PUB-DIR is the +publishing directory. + +Return output file name." + ;; Unlike to `org-e-beamer-publish-to-latex', PDF file is generated + ;; in working directory and then moved to publishing directory. + (org-e-publish-attachment + plist + (org-e-latex-compile (org-e-publish-org-to 'e-beamer filename ".tex" plist)) + pub-dir)) + (provide 'org-e-beamer) ;;; org-e-beamer.el ends here -- 1.7.12 --=-=-=--