[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to f
From: |
Rasmus |
Subject: |
Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail |
Date: |
Tue, 15 Oct 2013 19:21:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Eric S Fraga <address@hidden> 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!
- [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail, Eric S Fraga, 2013/10/15
- Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail, Eric S Fraga, 2013/10/15
- Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail,
Rasmus <=
- Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail, Rasmus, 2013/10/15
- Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail, Eric S Fraga, 2013/10/16
- Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail, Eric S Fraga, 2013/10/16
- Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail, Carsten Dominik, 2013/10/16
- Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail, Rasmus, 2013/10/16
- Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail, Andreas Leha, 2013/10/16
- Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail, Eric S Fraga, 2013/10/16
- Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail, Eric S Fraga, 2013/10/16
- Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail, Nicolas Goaziou, 2013/10/16
- Re: [O] [bug] [exporter] Frame labels cause allowframebreaks option to fail, Carsten Dominik, 2013/10/16