[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [export] Beamer frames containing lstlisting are no longer made
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [export] Beamer frames containing lstlisting are no longer made fragile |
Date: |
Sat, 14 Sep 2013 16:33:25 +0200 |
Hello,
Christoph LANGE <address@hidden> 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