Eric S Fraga <e.fr...@ucl.ac.uk> writes: > Hello, > > technically, I guess this is a bug in beamer and not in org's > exporter. However, if I specify the =allowframebreaks= option for a > frame, the exporter generates the following LaTeX code on beamer export: > > \begin{frame}[allowframebreaks,label=sec-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=sec-1-1-1" seems to make beamer ignore the allowframebreaks > option. If I remove the label= 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= > 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 :PROPERTIES: :BEAMER_opt: allowframebreaks :END: hest #+begin_src emacs-lisp (defun rasmus/condtionally-remove-label (headline backend info) "condtionally remove label" (if (and (org-export-derived-backend-p backend 'beamer) (string-match "[.*?allowframebreaks.*?]" headline)) (replace-regexp-in-string ",? ?label=[-sec0-9]+" "" headline) headline)) (add-to-list 'org-export-filter-headline-functions 'rasmus/condtionally-remove-label) #+end_src -- El Rey ha muerto. ¡Larga vida al Rey!