[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:49:01 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Rasmus <address@hidden> writes:
> #+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
That's pretty unstable, it turns out. Headlines encompass more in
ox-beamer than how I remember them from ox-latex. Here's a better one
as long as you don't use newlines ("\n") in your headings. Are '\\'
stil used for denoting subtitles in ox-beamer?
* test
:PROPERTIES:
:BEAMER_opt: allowframebreaks
:END:
horses like allowframebreaks
* on allowframebreaks
cows
#+begin_src emacs-lisp
(defun rasmus/condtionally-remove-label (headline backend info)
"condtionally remove label"
(let* ((h (string-match "\n" headline))
(head (substring headline 0 h)))
(if (and
(org-export-derived-backend-p backend 'beamer)
(string-match "\\[.*?allowframebreaks.*?\\].*?" head))
(concat (replace-regexp-in-string ",? ?label=[-sec0-9]+" "" head)
"\n" (substring headline (1+ h)))
headline)))
(add-to-list 'org-export-filter-headline-functions
'rasmus/condtionally-remove-label)
#+end_src
–Rasmus
--
The Kids call him Billy the Saint
- [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, 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, 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