From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Cubizolles Subject: frame options in minted environments Date: Wed, 24 Jun 2015 16:46:38 +0200 Message-ID: <87twtxxiy9.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7lx0-00014v-Vt for emacs-orgmode@gnu.org; Wed, 24 Jun 2015 10:46:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7lwx-0008LP-GI for emacs-orgmode@gnu.org; Wed, 24 Jun 2015 10:46:54 -0400 Received: from plane.gmane.org ([80.91.229.3]:58435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7lwx-0008L8-9K for emacs-orgmode@gnu.org; Wed, 24 Jun 2015 10:46:51 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Z7lws-0007nZ-OZ for emacs-orgmode@gnu.org; Wed, 24 Jun 2015 16:46:46 +0200 Received: from gas45-3-82-244-252-119.fbx.proxad.net ([82.244.252.119]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Jun 2015 16:46:46 +0200 Received: from j.cubizolles by gas45-3-82-244-252-119.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Jun 2015 16:46:46 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Consider the following org-file: --8<---------------cut here---------------start------------->8--- #+STARTUP: BEAMER #+LATEX_HEADER: \usepackage{minted} * First frame :B_fullframe: :PROPERTIES: :BEAMER_env: fullframe :END: #+begin_src latex :exports code \begin{document} \begin{frame} Text \end{frame} \end{document} #+end_src --8<---------------cut here---------------end--------------->8--- The \end{frame} command in the minted environment causes the export to beamer to fail. The solution is to pass the fragile=singleslide to the frame options, eg with BEAMER_OPT: (see [1]). Is there an option in org-mode to automatically add this option to all verbatim environments ? In that case, it already sets the "fragile" option, maybe changing this default to "fragile=singleslide" would be a reasonnable choice (I'm not sure what it entails though). Julien. [1]: http://tex.stackexchange.com/questions/154002/minted-does-not-escape-beamers-endframe