forked from mirrors/org-mode
ox-beamer: Don’t auto-label allowframebreaks frames; beamer forbids it.
* lisp/ox-beamer.el (org-beamer--format-frame): Don’t give a label if allowframebreaks” is set.
This commit is contained in:
parent
f12e3d4589
commit
9db1f7af78
|
@ -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)))))))
|
||||
|
|
Loading…
Reference in a new issue