[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] frame options in minted environments
From: |
Julien Cubizolles |
Subject: |
[O] frame options in minted environments |
Date: |
Wed, 24 Jun 2015 16:46:38 +0200 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] frame options in minted environments,
Julien Cubizolles <=