From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug] [exporter] Frame labels cause allowframebreaks option to fail Date: Tue, 15 Oct 2013 19:21:42 +0200 Message-ID: <87ppr630wp.fsf@pank.iue.private> References: <87y55ueee0.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW8Jd-0005Jw-Dt for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 13:21:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VW8JY-0003i9-75 for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 13:21:53 -0400 Received: from mout.gmx.net ([212.227.17.20]:61176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW8JX-0003hZ-Sz for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 13:21:48 -0400 Received: from pank.iue.private ([192.167.90.136]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Lip2P-1W1t5w43q9-00d2Jr for ; Tue, 15 Oct 2013 19:21:46 +0200 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: e.fraga@ucl.ac.uk Cc: emacs-orgmode@gnu.org Eric S Fraga writes: > Hello, > > technically, I guess this is a bug in beamer and not in org's > exporter. However, if I specify the =3Dallowframebreaks=3D option for a > frame, the exporter generates the following LaTeX code on beamer export: > > \begin{frame}[allowframebreaks,label=3Dsec-1-1-1]{Some definitions} Interesting (I can reproduce here). Perhaps you should fill a bug report: https://bitbucket.org/rivanvx/beamer/wiki/Home (I couldn't find any references to this problem, but I didn't look very hard) > The "label=3Dsec-1-1-1" seems to make beamer ignore the allowframebreaks > option. If I remove the label=3D directive from the options, everything > works fine. Otherwise, the frame contents to not break over multiple > frames. > The question is: how can I tell the exporter to *not* generate label=3D > directives? I have no need for these and, at the moment, I am having to > edit the LaTeX source to get my slides done. >From a quick skim through ox-beamer I don't think you can disable it. I don't know that it generally makes sense to do this. You could use a regexp filter. Perhaps org-export-filter-headline-functions like this quick-and-dirty solution. * test=20 :PROPERTIES: :BEAMER_opt: allowframebreaks :END:=20=20 hest =20=20 #+begin_src emacs-lisp (defun rasmus/condtionally-remove-label (headline backend info) "condtionally remove label" (if (and=20 (org-export-derived-backend-p backend 'beamer) (string-match "[.*?allowframebreaks.*?]" headline)) (replace-regexp-in-string ",? ?label=3D[-sec0-9]+" "" headline) headline)) =20=20 (add-to-list 'org-export-filter-headline-functions=20 'rasmus/condtionally-remove-label) #+end_src --=20 El Rey ha muerto. =C2=A1Larga vida al Rey!