From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [export] Beamer frames containing lstlisting are no longer made fragile Date: Sat, 14 Sep 2013 16:33:25 +0200 Message-ID: <877gej4gne.fsf@gmail.com> References: <52330AAE.9070000@gmail.com> <87r4csohz9.fsf@gmail.com> <52346F37.3010803@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKquW-00048J-NI for emacs-orgmode@gnu.org; Sat, 14 Sep 2013 10:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKquO-00022o-Aa for emacs-orgmode@gnu.org; Sat, 14 Sep 2013 10:33:20 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:39148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKquO-00022h-3E for emacs-orgmode@gnu.org; Sat, 14 Sep 2013 10:33:12 -0400 Received: by mail-wi0-f182.google.com with SMTP id ez12so1892479wid.3 for ; Sat, 14 Sep 2013 07:33:11 -0700 (PDT) In-Reply-To: <52346F37.3010803@gmail.com> (Christoph LANGE's message of "Sat, 14 Sep 2013 16:14:15 +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 Hello, Christoph LANGE writes: > Still I think the following sentence in the documentation (section 12.5) > is easy to misunderstand: > > "`fragile' option is added automatically if it contains source code that > uses any verbatim environment". What would you suggest instead? > I think it means that when I use a proper "source block" using > #+BEGIN_SRC, the exporter automatically sets the [fragile] option as > needed. It isn't just about source blocks, see `org-beamer-verbatim-elements'. > Anyway, you told me how to make my legacy {lstlisting} environments > work. Is this approach, of manually setting "BEAMER_OPT: fragile" the > preferred way whenever you have a listing in a non-standard language, > where the {lstlisting} environment requires special arguments (e.g. > "morekeywords")? Or is there some way of passing extra arguments into > the {lstlisting} environment that is created from #+BEGIN_SRC? At the moment, the only way to pass extra arguments to lstlisting is using `org-latex-listings-options'. IOW, it isn't possible to set specific options for a given block. Though, it should be fairly easy to implement an :extra attribute for source blocks. E.g., #+attr_latex: :extra key1=val1,key2=val2 #+begin_src ... #+end_src Regards, -- Nicolas Goaziou