From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: Beamer title is (incorrectly?) outside of a frame Date: Mon, 23 Dec 2013 11:33:24 +0800 Message-ID: References: <3bf20787-19e4-49ff-bbb5-5c90bcc58a95@dewdrop-world.net> <871u15j9ct.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuwH4-0005Z4-2i for emacs-orgmode@gnu.org; Sun, 22 Dec 2013 22:33:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VuwGv-0000Gb-Kx for emacs-orgmode@gnu.org; Sun, 22 Dec 2013 22:33:45 -0500 Received: from mail-pd0-x229.google.com ([2607:f8b0:400e:c02::229]:57675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuwGv-0000GV-Dk for emacs-orgmode@gnu.org; Sun, 22 Dec 2013 22:33:37 -0500 Received: by mail-pd0-f169.google.com with SMTP id v10so4699861pde.28 for ; Sun, 22 Dec 2013 19:33:36 -0800 (PST) In-Reply-To: <871u15j9ct.fsf@gmail.com> 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: orgmode On Sunday, December 22, 2013 9:36:34 PM HKT, Nicolas Goaziou wrote: >> Oh, I think I see the issue... there's only one org-latex-title-command. >>=20 >> ;; 10. Title command. >> (org-element-normalize-string >> (cond ((string=3D "" title) nil) >> ((not (stringp org-latex-title-command)) nil) > ... > > I don't think the variable is problematic as you can wrap a frame around > it. Anyway, patch welcome. Sure, I can work on a patch. I'll need this in another month or so. One question, though: How would I determine the LaTeX document class=20 programmatically? "Beamerarticle" uses the article class, with \usepackage{beamerarticle} in=20= the preamble. This package redefines beamer commands so that they print=20 somewhat reasonably well in article format. So, org needs to generate=20 beamer-style commands, and that's done by the beamer backend. That is: Exporting as presentation (normal) - Backend =3D beamer - Document class =3D beamer Exporting as article - Backend =3D beamer - Document class =3D article In the former case, the title command should be wrapped in a frame. In the=20= latter, it should not. Currently, I'm working around it by #+bind'ing org-latex-title-command, but=20= I'd like that to be automatic. hjh