From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Beamer title is (incorrectly?) outside of a frame Date: Sat, 11 Jan 2014 09:49:17 +0100 Message-ID: <87bnzi9a42.fsf@gmail.com> References: <3bf20787-19e4-49ff-bbb5-5c90bcc58a95@dewdrop-world.net> <871u15j9ct.fsf@gmail.com> <87ob48ht2p.fsf@gmail.com> <87fvou9abb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1uFh-0004vc-9D for Emacs-orgmode@gnu.org; Sat, 11 Jan 2014 03:49:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1uFW-00009J-Jr for Emacs-orgmode@gnu.org; Sat, 11 Jan 2014 03:49:09 -0500 Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:40453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1uFW-00009F-Cq for Emacs-orgmode@gnu.org; Sat, 11 Jan 2014 03:48:58 -0500 Received: by mail-wg0-f44.google.com with SMTP id l18so4052138wgh.35 for ; Sat, 11 Jan 2014 00:48:57 -0800 (PST) In-Reply-To: <87fvou9abb.fsf@gmail.com> (Nicolas Goaziou's message of "Sat, 11 Jan 2014 09:44:56 +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: jamshark70@dewdrop-world.net Cc: Emacs-orgmode@gnu.org Nicolas Goaziou writes: > You need to use a regexp to find out what class is used: > > (let ((beamer-class-p > (and (stringp header) > (org-string-match-p > "^[ \t]*\\\\documentclass\\(?:\\[.*\\]\\)?{beamer}[ \t]*$" > (nth 1 (assoc (plist-get info :latex-class) org-latex-classes))))))) I meant: (let* ((header (nth 1 (assoc (plist-get info :latex-class) org-latex-classes))) (beamer-class-p (and (stringp header) (org-string-match-p "^[ \t]*\\\\documentclass\\(?:\\[.*\\]\\)?{beamer}[ \t]*$" header)))))