>From a4624f52055667ed8c5220ca49f459274bfc7f45 Mon Sep 17 00:00:00 2001 From: Christoph Dittmann Date: Tue, 7 Feb 2012 14:43:26 +0100 Subject: [PATCH] Make [fragile] work with overlay specifications. If the BEAMER_envargs property contains optional parameters together with an overlay specification like [option]<1-2>, the exporter turns the start of the frame into \begin{frame}<1-2>[option]. If then [fragile] needs to be added, this becomes \begin{frame}[fragile]<1-2>[option] and causes a LaTeX error. With this patch [fragile] is added in a way such that the line becomes \begin{frame}<1-2>[fragile,option]. --- lisp/org-beamer.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-beamer.el b/lisp/org-beamer.el index fae5967..1823b03 100644 --- a/lisp/org-beamer.el +++ b/lisp/org-beamer.el @@ -502,7 +502,7 @@ This function will run in the final LaTeX document." (while (re-search-forward org-beamer-fragile-re nil t) (save-excursion ;; Are we inside a frame here? - (when (and (re-search-backward "^[ \t]*\\\\\\(begin\\|end\\){frame}" + (when (and (re-search-backward "^[ \t]*\\\\\\(begin\\|end\\){frame}\\(<[^>]*>\\)?" nil t) (equal (match-string 1) "begin")) ;; yes, inside a frame, make sure "fragile" is one of the options -- 1.7.5.4