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