emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: Emacs Org mode <emacs-orgmode@gnu.org>
Subject: Re: org-e-beamer export bug
Date: Mon, 17 Sep 2012 17:34:32 +0200	[thread overview]
Message-ID: <20120917153432.GG7358@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <20120917133017.GE7358@kuru.dyndns-at-home.com>

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

Hi,

On Mon, Sep 17, 2012 at 03:30:17PM +0200, Suvayu Ali wrote:
> On Mon, Sep 17, 2012 at 03:18:47PM +0200, Suvayu Ali wrote:
> > 
> > I think I found a bug in the beamer export of org-e-beamer.  The ecm and
> > the produced TeX file is attached.  During the export the documentclass
> > is incorrectly set to article.
> > 
> 
> Please ignore my report.  I found my typo
> 
> >   :LaTeX_CLASS: beamer
> >   :LaTeX_CLASS_OPTIONS: [smaller,presentation]
> 
> should be
> 
> >   :EXPORT_LaTeX_CLASS: beamer
> >   :EXPORT_LaTeX_CLASS_OPTIONS: [smaller,presentation]
> 

The typo was actually in org-e-beamer-insert-options-template.  A patch
is attached.

-- 
Suvayu

Open source is the future. It sets us free.

[-- Attachment #2: 0001-Fix-org-e-beamer-subtree-export-options-template.patch --]
[-- Type: text/plain, Size: 1126 bytes --]

From 1d80cdf2a4a087d2784eb9600f7da2c027d754a4 Mon Sep 17 00:00:00 2001
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Date: Mon, 17 Sep 2012 17:28:03 +0200
Subject: [PATCH] Fix org-e-beamer subtree export options template

Prepend "EXPORT_" to LaTeX_CLASS* properties in the beamer subtree
export options template.
---
 contrib/lisp/org-e-beamer.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/lisp/org-e-beamer.el b/contrib/lisp/org-e-beamer.el
index fba3c43..94336d7 100644
--- a/contrib/lisp/org-e-beamer.el
+++ b/contrib/lisp/org-e-beamer.el
@@ -1130,8 +1130,8 @@ (defun org-e-beamer-insert-options-template (&optional kind)
       (progn
 	(org-back-to-heading t)
 	(org-reveal)
-	(org-entry-put nil "LaTeX_CLASS" "beamer")
-	(org-entry-put nil "LaTeX_CLASS_OPTIONS" "[presentation]")
+	(org-entry-put nil "EXPORT_LaTeX_CLASS" "beamer")
+	(org-entry-put nil "EXPORT_LaTeX_CLASS_OPTIONS" "[presentation]")
 	(org-entry-put nil "EXPORT_FILE_NAME" "presentation.pdf")
 	(when org-e-beamer-column-view-format
 	  (org-entry-put nil "COLUMNS" org-e-beamer-column-view-format))
-- 
1.7.11.4


  reply	other threads:[~2012-09-17 15:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-17 13:18 org-e-beamer export bug Suvayu Ali
2012-09-17 13:30 ` Suvayu Ali
2012-09-17 15:34   ` Suvayu Ali [this message]
2012-09-17 16:49     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120917153432.GG7358@kuru.dyndns-at-home.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).