From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [bug] [exporter] Frame labels cause allowframebreaks option to fail Date: Tue, 15 Oct 2013 17:51:46 +0100 Message-ID: <87haciscil.fsf@ucl.ac.uk> References: <87y55ueee0.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW7sa-0001DO-O7 for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 12:54:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VW7sU-0001ZI-3E for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 12:53:56 -0400 Received: from mail14-co9on0067.outbound.messaging.microsoft.com ([157.56.211.67]:11558 helo=CO9EHSNDR002.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW7sT-0001Yy-Qb for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 12:53:50 -0400 Received: from mail47-co9 (localhost [127.0.0.1]) by mail47-co9-R.bigfish.com (Postfix) with ESMTP id 3D8F26C01C8 for ; Tue, 15 Oct 2013 16:53:47 +0000 (UTC) Received: from CO9EHSMHS009.bigfish.com (unknown [10.236.132.228]) by mail47-co9.bigfish.com (Postfix) with ESMTP id D8B23C800A8 for ; Tue, 15 Oct 2013 16:53:44 +0000 (UTC) In-Reply-To: <87y55ueee0.fsf@pinto.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Tue, 15 Oct 2013 16:35:03 +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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Eric S Fraga writes: [...] > The question is: how can I tell the exporter to *not* generate label= > directives? I have no need for these and, at the moment, I am having to > edit the LaTeX source to get my slides done. I found some time to look at the code and it appears that the automatic creation of labels for frames happens always. There is no customisation possible. As this problem is stopping me from generating the slides I need for my lectures *now*, I have removed the automatic label generation, leaving the possibility of user specified labels. A patch is attached in case this is of more general interest. A better solution would be to have a variable to be able to customise this behaviour, I imagine. Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.1-86-gbe3dad --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename="0001-Removed-automatic-creation-of-labels-for-frames-in-b.patch" >From 8e841c8caa79707e098d691a44a90c9d9faff073 Mon Sep 17 00:00:00 2001 From: Eric S Fraga Date: Tue, 15 Oct 2013 17:39:40 +0100 Subject: [PATCH] Removed automatic creation of labels for frames in beamer export * lisp/ox-beamer.el (org-beamer--format-frame) The options passed to the frame command will include only labels defined explicitly in the org file. Automatic labels will not be generated. It seems that labels prevent beamer from processing other options, allowframebreaks in particular. --- lisp/ox-beamer.el | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index 74d99ed..6410615 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -507,14 +507,7 @@ used as a communication channel." ;; them. (and (string-match "^\\[?\\(.*\\)\\]?$" beamer-opt) (match-string 1 beamer-opt)) - ",")) - ;; Provide an automatic label for the frame - ;; unless the user specified one. - (unless (and beamer-opt - (string-match "\\(^\\|,\\)label=" beamer-opt)) - (list - (format "label=%s" - (org-beamer--get-label headline info))))))) + ","))))) ;; Change options list into a string. (org-beamer--normalize-argument (mapconcat -- 1.8.1.2 --=-=-=--