From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [export] Beamer frames containing lstlisting are no longer made fragile Date: Mon, 16 Sep 2013 08:51:48 +0100 Message-ID: <874n9ldx0r.fsf@ucl.ac.uk> References: <52330365.9090002@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLUMU-0000vo-Pw for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 04:40:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLUMM-0001QL-HN for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 04:40:50 -0400 Received: from mail14-db8on0066.outbound.messaging.microsoft.com ([157.55.206.66]:18600 helo=DB8EHSNDR004.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLUML-0001PP-UD for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 04:40:42 -0400 In-Reply-To: <52330365.9090002@gmail.com> (Christoph LANGE's message of "Fri, 13 Sep 2013 14:21:57 +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: Christoph LANGE Cc: Orgmode Mailing List Christoph LANGE writes: > Dear all, > > having created a number of Beamer presentations with the old exporter > (Org version 7), I'm now working on the first Beamer presentation with > the new exporter. > > Frames that contain an lstlisting environment are no longer made fragile > automatically. (Thus I'm not sure the documentation in manual section > 12.5 "Beamer export" is still correct, which says "`fragile' option is > added automatically if it contains source code that uses any verbatim > environment".) > > My intuition after browsing the Org source code and documentation is > that I should now use #+BEGIN_SRC and that then everything will be > handled automatically. However the language of my listings is a > non-standard one, which requires a lot of custom options to the > lstlisting environment. > > Could anyone kindly point me to an example? I am not sure what it is you want an example of? If it's how to configure lstlisting for a new language, here are two examples: #+latex_header: \lstdefinelanguage{gams}{ #+latex_header: keywords={all, positive, variable, variables, equation, equations, model,% #+latex_header: minimizing, parameter, parameters, display, solve, using, /}, #+latex_header: sensitive=false, #+latex_header: morecomment=[f]*,% #+latex_header: morecomment=[s]{$ontext}{$offtext}, #+latex_header: morestring=[b]", #+latex_header: morestring=[b]' #+latex_header: } #+latex_header: \lstdefinelanguage{Maxima}{ #+latex_header: keywords={addrow,addcol,zeromatrix,ident,augcoefmatrix,ratsubst,diff,ev,tex,% #+latex_header: with_stdout,nouns,express,depends,load,submatrix,div,grad,curl,% #+latex_header: rootscontract,solve,part,assume,sqrt,integrate,abs,inf,exp}, #+latex_header: sensitive=true, #+latex_header: comment=[n]{/*}{*/} #+latex_header: } HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.1.1-7-gaecdf5