From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: Beamer title is (incorrectly?) outside of a frame Date: Sat, 11 Jan 2014 14:39:32 +0800 Message-ID: References: <3bf20787-19e4-49ff-bbb5-5c90bcc58a95@dewdrop-world.net> <871u15j9ct.fsf@gmail.com> <87ob48ht2p.fsf@gmail.com> Reply-To: jamshark70@dewdrop-world.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=089e0158ab200a698c04efac1bc7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1sEK-0007xW-DJ for Emacs-orgmode@gnu.org; Sat, 11 Jan 2014 01:39:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1sEI-0006X5-Vw for Emacs-orgmode@gnu.org; Sat, 11 Jan 2014 01:39:36 -0500 Received: from mail-oa0-x236.google.com ([2607:f8b0:4003:c02::236]:37021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1sEI-0006X1-OJ for Emacs-orgmode@gnu.org; Sat, 11 Jan 2014 01:39:34 -0500 Received: by mail-oa0-f54.google.com with SMTP id o6so6048115oag.13 for ; Fri, 10 Jan 2014 22:39:34 -0800 (PST) In-Reply-To: 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: Nicolas Goaziou Cc: Emacs-orgmode@gnu.org --089e0158ab200a698c04efac1bc7 Content-Type: multipart/alternative; boundary=089e0158ab200a698804efac1bc5 --089e0158ab200a698804efac1bc5 Content-Type: text/plain; charset=ISO-8859-1 On Monday, December 23, 2013 4:25:50 PM HKT, Nicolas Goaziou wrote: > > James Harkins writes: > >> One question, though: How would I determine the LaTeX document class >> programmatically? > > > (plist-get info :latex-class) Patch attached. The patch is based on release_8.2.4 (as noted in my bug report from a few minutes ago, I can't perform any Beamer export against current master). If it doesn't apply against master, I'll be happy to tweak it, once the other bug is fixed. Let me know if there are any other problems, say, LISP style errors. I wrapped my change in a (let...) to isolate it from other bits of the code. Tests: - Export to beamer, presentation mode, without ignorenonframetext option: Title appears in its own frame, exactly as before. - Export to beamer, presentation mode, *with* ignorenonframetext option: Title appears in its own frame. Without the patch, the title frame was missing. - Export to beamer, using article class and the beamerarticle package: Title appears, without begin/end{frame} (same behavior as without the patch). I haven't signed FSF papers, though... I guess I should get on that. hjh --089e0158ab200a698804efac1bc5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Monday, December 23, 2013 4:25:50 PM HKT, Nicolas Goaziou= wrote:
>
> James Harkins <jamshark70@g= mail.com> writes:
>
>> One question, though: How would I determine the LaTeX document cla= ss
>> programmatically?
>
>
> =A0 (plist-get info :latex-class)

Patch attached. The patch is based on release_8.2.4 (as note= d in my bug report from a few minutes ago, I can't perform any Beamer e= xport against current master). If it doesn't apply against master, I= 9;ll be happy to tweak it, once the other bug is fixed.

Let me know if there are any other problems, say, LISP style= errors. I wrapped my change in a (let...) to isolate it from other bits of= the code.

Tests:

- Export to beamer, presentation mode, without ignorenonfram= etext option: Title appears in its own frame, exactly as before.

- Export to beamer, presentation mode, *with* ignorenonframe= text option: Title appears in its own frame. Without the patch, the title f= rame was missing.

- Export to beamer, using article class and the beamerarticl= e package: Title appears, without begin/end{frame} (same behavior as withou= t the patch).

I haven't signed FSF papers, though... I guess I should = get on that.

hjh

--089e0158ab200a698804efac1bc5-- --089e0158ab200a698c04efac1bc7 Content-Type: text/x-patch; charset=US-ASCII; name="0001-ox-beamer-Wrap-the-title-command-in-a-frame-for-beam.patch" Content-Disposition: attachment; filename="0001-ox-beamer-Wrap-the-title-command-in-a-frame-for-beam.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: b9ab4071dea29ca1_0.1 RnJvbSAxZjc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