[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] export_file_name problem with new exporter
From: |
Alan Schmitt |
Subject: |
Re: [O] export_file_name problem with new exporter |
Date: |
Sat, 08 Dec 2012 12:13:30 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) |
Alan Schmitt <address@hidden> 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
>From ce787823cec892d8cfb8391145ae374adad7dc59 Mon Sep 17 00:00:00 2001
From: Alan Schmitt <address@hidden>
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
- [O] export_file_name problem with new exporter, Alan Schmitt, 2012/12/07
- Re: [O] export_file_name problem with new exporter, Suvayu Ali, 2012/12/07
- Re: [O] export_file_name problem with new exporter, Alan Schmitt, 2012/12/07
- Re: [O] export_file_name problem with new exporter, Suvayu Ali, 2012/12/07
- Re: [O] export_file_name problem with new exporter, Alan Schmitt, 2012/12/07
- Re: [O] export_file_name problem with new exporter, Suvayu Ali, 2012/12/07
- Re: [O] export_file_name problem with new exporter, Alan Schmitt, 2012/12/07
- Re: [O] export_file_name problem with new exporter, Suvayu Ali, 2012/12/07
- Re: [O] export_file_name problem with new exporter, Alan Schmitt, 2012/12/08
- Re: [O] export_file_name problem with new exporter,
Alan Schmitt <=
- Re: [O] export_file_name problem with new exporter, Suvayu Ali, 2012/12/08
- Re: [O] export_file_name problem with new exporter, Achim Gratz, 2012/12/08
- Re: [O] export_file_name problem with new exporter, Alan Schmitt, 2012/12/09
- Re: [O] export_file_name problem with new exporter, Achim Gratz, 2012/12/09
- Re: [O] export_file_name problem with new exporter, Suvayu Ali, 2012/12/09
- Re: [O] export_file_name problem with new exporter, Jambunathan K, 2012/12/09
- Re: [O] export_file_name problem with new exporter, Achim Gratz, 2012/12/09
Re: [O] export_file_name problem with new exporter, Nicolas Goaziou, 2012/12/13