From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Lindner Subject: Adding [fragile] to a LaTeX Beamer slide Date: Wed, 6 Jul 2016 15:25:53 +0200 Message-ID: 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]:50616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKmq8-00043o-Be for emacs-orgmode@gnu.org; Wed, 06 Jul 2016 09:26:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKmq3-0002ZN-Tx for emacs-orgmode@gnu.org; Wed, 06 Jul 2016 09:26:07 -0400 Received: from plane.gmane.org ([80.91.229.3]:40226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKmq3-0002Z9-NM for emacs-orgmode@gnu.org; Wed, 06 Jul 2016 09:26:03 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bKmq1-0002r5-Qo for emacs-orgmode@gnu.org; Wed, 06 Jul 2016 15:26:01 +0200 Received: from lapsgs09.informatik.uni-stuttgart.de ([129.69.213.139]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Jul 2016 15:26:01 +0200 Received: from mailinglists by lapsgs09.informatik.uni-stuttgart.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Jul 2016 15:26:01 +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" To: emacs-orgmode@gnu.org Hello, I try to put some source code, using the listings package in my slides: ** Source Code #+BEGIN_LATEX \begin{lstlisting} for (int i = 1; i != 10; ++i) std::cout << i << ": hello, world!" << std::endl; \end{lstlisting} #+END_LATEX Problem is, this, in contrast to #+BEGIN_SRC c foobar #+END_SRC does not add the fragile option the frame and therefore it does not compile. I would prefer the latter option, but it renders to a verbatim environment, not a lstlisting. How can I add a fragile option to the frame or make the BEGIN_src block use the lstlisting environment? Thanks, Florian