Re: Using listings package with beamer.

2007-05-19 Thread Jürgen Spitzmüller
Bo Peng wrote: > > [fragile] should work, theoretically. > > No. It does not. :-( Does it work if you insert the frame with ERT? I always pass options that way. Jürgen

Re: Using listings package with beamer.

2007-05-19 Thread Bo Peng
> You can also try to define an optional argument for Frame in the layout. We > should do this anyway. Simple replacement of plain with fragile does not seem to work. Style BeginFragileFrame KeepEmpty 1 LatexType Command LatexName lyxframeend{}\lyxfragileframe Margin

Re: Using listings package with beamer.

2007-05-19 Thread Bo Peng
On 5/19/07, Jürgen Spitzmüller <[EMAIL PROTECTED]> wrote: Bo Peng wrote: > [fragile] > > Nothing works. See attached. [fragile] should work, theoretically. No. It does not. :-( You can also try to define an optional argument for Frame in the layout. We should do this anyway. Then how about

Re: Using listings package with beamer.

2007-05-19 Thread Martin Vermeer
On Sat, May 19, 2007 at 12:18:20AM -0500, Bo Peng wrote: > Dear all, > > I am trying to use listings with beamer, I learned > that > > 1. beamer 3.07 is required. > > 2. listings can not be float (understandable) > > 3. the option fragile after \begin{frame} is > necessary. > > How would I i

Re: Using listings package with beamer.

2007-05-19 Thread Jürgen Spitzmüller
Bo Peng wrote: > [fragile] > > Nothing works. See attached. [fragile] should work, theoretically. You can also try to define an optional argument for Frame in the layout. We should do this anyway. Jürgen

Re: Using listings package with beamer.

2007-05-19 Thread Bo Peng
"You can pass options and an overlay specification to a frame by giving these in TEX-mode as the first thing in the frame title. (Some magic is performed to extract them in LYX-mode from there.)" I tried <[fragile]> [] [fragile] Nothing works. See attached. Bo beamer-listings.lyx Descriptio

Re: Using listings package with beamer.

2007-05-18 Thread Jürgen Spitzmüller
Bo Peng wrote: > How would I insert this [fragile] option in lyx? Citing beameruserguide, p. 48: "You can pass options and an overlay specification to a frame by giving these in TEX-mode as the first thing in the frame title. (Some magic is performed to extract them in LYX-mode from there.)" Jür