From 9db1f7af7871724c135dce8677d2f9d7f8206135 Mon Sep 17 00:00:00 2001 From: Aaron Ecay Date: Tue, 9 Dec 2014 01:14:54 -0500 Subject: [PATCH] =?utf8?q?ox-beamer:=20Don=E2=80=99t=20auto-label=20allowf?= =?utf8?q?ramebreaks=20frames;=20beamer=20forbids=20it.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * lisp/ox-beamer.el (org-beamer--format-frame): Don’t give a label if allowframebreaks” is set. --- lisp/ox-beamer.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index e29b38f3f..72f62155e 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -425,9 +425,12 @@ used as a communication channel." (match-string 1 beamer-opt)) ",")) ;; Provide an automatic label for the frame - ;; unless the user specified one. + ;; unless the user specified one. Also refrain + ;; from labeling `allowframebreaks' frames; this + ;; is not allowed by beamer. (unless (and beamer-opt - (string-match "\\(^\\|,\\)label=" beamer-opt)) + (or (string-match "\\(^\\|,\\)label=" beamer-opt) + (string-match "allowframebreaks" beamer-opt))) (list (format "label=%s" (org-beamer--get-label headline info))))))) -- 2.11.4.GIT