Re: inserting c code in beamer presentation

2009-12-01 Thread Rainer M Krug
I just tried it out - when you put [plain] into a ERT as the first thing in a frame, it shows a plain frame, and the same applies for [allowframebreaks]. Several options, can be separated by a comma. But it does NOT work for fragile or containsverbatim. If this could be changed, so that it works

Re: inserting c code in beamer presentation

2009-12-01 Thread Jürgen Spitzmüller
Rainer M Krug wrote: I just tried it out - when you put [plain] into a ERT as the first thing in a frame, it shows a plain frame, and the same applies for [allowframebreaks]. Several options, can be separated by a comma. But it does NOT work for fragile or containsverbatim. If this could be

Re: inserting c code in beamer presentation

2009-12-01 Thread Rainer M Krug
On Tue, Dec 1, 2009 at 11:25 AM, Jürgen Spitzmüller sp...@lyx.org wrote: Rainer M Krug wrote: I just tried it out - when you put [plain] into a ERT as the first thing in a frame, it shows a plain frame, and the same applies for [allowframebreaks]. Several options, can be separated by a

Re: inserting c code in beamer presentation

2009-12-01 Thread Rainer M Krug
On Tue, Dec 1, 2009 at 11:33 AM, Rainer M Krug r.m.k...@gmail.com wrote: On Tue, Dec 1, 2009 at 11:25 AM, Jürgen Spitzmüller sp...@lyx.org wrote: Rainer M Krug wrote: I just tried it out - when you put [plain] into a ERT as the first thing in a frame, it shows a plain frame, and the

Re: inserting c code in beamer presentation

2009-12-01 Thread Rainer M Krug
I just tried it out - when you put [plain] into a ERT as the first thing in a frame, it shows a plain frame, and the same applies for [allowframebreaks]. Several options, can be separated by a comma. But it does NOT work for fragile or containsverbatim. If this could be changed, so that it works

Re: inserting c code in beamer presentation

2009-12-01 Thread Jürgen Spitzmüller
Rainer M Krug wrote: I just tried it out - when you put [plain] into a ERT as the first thing in a frame, it shows a plain frame, and the same applies for [allowframebreaks]. Several options, can be separated by a comma. But it does NOT work for fragile or containsverbatim. If this could be

Re: inserting c code in beamer presentation

2009-12-01 Thread Rainer M Krug
On Tue, Dec 1, 2009 at 11:25 AM, Jürgen Spitzmüller sp...@lyx.org wrote: Rainer M Krug wrote: I just tried it out - when you put [plain] into a ERT as the first thing in a frame, it shows a plain frame, and the same applies for [allowframebreaks]. Several options, can be separated by a

Re: inserting c code in beamer presentation

2009-12-01 Thread Rainer M Krug
On Tue, Dec 1, 2009 at 11:33 AM, Rainer M Krug r.m.k...@gmail.com wrote: On Tue, Dec 1, 2009 at 11:25 AM, Jürgen Spitzmüller sp...@lyx.org wrote: Rainer M Krug wrote: I just tried it out - when you put [plain] into a ERT as the first thing in a frame, it shows a plain frame, and the

Re: inserting c code in beamer presentation

2009-12-01 Thread Rainer M Krug
I just tried it out - when you put [plain] into a ERT as the first thing in a frame, it shows a plain frame, and the same applies for [allowframebreaks]. Several options, can be separated by a comma. But it does NOT work for fragile or containsverbatim. If this could be changed, so that it works

Re: inserting c code in beamer presentation

2009-12-01 Thread Jürgen Spitzmüller
Rainer M Krug wrote: > I just tried it out - when you put [plain] into a ERT as the first thing in > a frame, it shows a plain frame, and the same applies for > [allowframebreaks]. Several options, can be separated by a comma. But it > does NOT work for fragile or containsverbatim. > > If this

Re: inserting c code in beamer presentation

2009-12-01 Thread Rainer M Krug
On Tue, Dec 1, 2009 at 11:25 AM, Jürgen Spitzmüller wrote: > Rainer M Krug wrote: > > I just tried it out - when you put [plain] into a ERT as the first thing > in > > a frame, it shows a plain frame, and the same applies for > > [allowframebreaks]. Several options, can be

Re: inserting c code in beamer presentation

2009-12-01 Thread Rainer M Krug
On Tue, Dec 1, 2009 at 11:33 AM, Rainer M Krug wrote: > > > On Tue, Dec 1, 2009 at 11:25 AM, Jürgen Spitzmüller wrote: > >> Rainer M Krug wrote: >> > I just tried it out - when you put [plain] into a ERT as the first thing >> in >> > a frame, it shows a plain

Re: inserting c code in beamer presentation

2009-11-30 Thread Jürgen Spitzmüller
nikunj . wrote: How do we insert c code in lyx beamer presentation? I am trying to use package listings. You need to use a fragile frame, which is not natively supported by LyX. * Instead of the BeginFrame, insert and EndFrame * Then, below, in ERT \begin{frame}[fragile] \frametitle{Title

Re: inserting c code in beamer presentation

2009-11-30 Thread Uwe Stöhr
nikunj . schrieb: How do we insert c code in lyx beamer presentation? I am trying to use package listings. but I get an error \begin{lstlistings} ends by \end{bea...@frames! Have you used TeX code to insert the listing of have you used the listings insert via the menu Insert-Program

Re: inserting c code in beamer presentation

2009-11-30 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: However, I also get the same error and it seems that the listings package doesn't work together with beamer. Not true. You just need the fragile frame option, which does not work with \lyxframe. See my previous post. Jürgen

Re: inserting c code in beamer presentation

2009-11-30 Thread Micha
On 30/11/2009 17:35, Jürgen Spitzmüller wrote: Uwe Stöhr wrote: However, I also get the same error and it seems that the listings package doesn't work together with beamer. Not true. You just need the fragile frame option, which does not work with \lyxframe. See my previous post. Jürgen

Re: inserting c code in beamer presentation

2009-11-30 Thread Uwe Stöhr
Jürgen Spitzmüller schrieb: You need to use a fragile frame, which is not natively supported by LyX. Interesting. We should add this information to our beamer example file (by adding a program listing frame). Can you do this please? thanks and regards Uwe

Re: inserting c code in beamer presentation

2009-11-30 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: You need to use a fragile frame, which is not natively supported by LyX. Interesting. We should add this information to our beamer example file (by adding a program listing frame). Can you do this please? I'm thinking about a way to implement fragile frames. Jürgen

Re: inserting c code in beamer presentation

2009-11-30 Thread Uwe Stöhr
Jürgen Spitzmüller schrieb: Interesting. We should add this information to our beamer example file (by adding a program listing frame). Can you do this please? I'm thinking about a way to implement fragile frames. For now - LyX 1.6.5 - I would add a frame that contains a listings inset to

Re: inserting c code in beamer presentation

2009-11-30 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: For now - LyX 1.6.5 - I would add a frame that contains a listings inset to beamerlyxexample.lyx. OK? Yes. Jürgen

Re: inserting c code in beamer presentation

2009-11-30 Thread Jürgen Spitzmüller
nikunj . wrote: How do we insert c code in lyx beamer presentation? I am trying to use package listings. You need to use a fragile frame, which is not natively supported by LyX. * Instead of the BeginFrame, insert and EndFrame * Then, below, in ERT \begin{frame}[fragile] \frametitle{Title

Re: inserting c code in beamer presentation

2009-11-30 Thread Uwe Stöhr
nikunj . schrieb: How do we insert c code in lyx beamer presentation? I am trying to use package listings. but I get an error \begin{lstlistings} ends by \end{bea...@frames! Have you used TeX code to insert the listing of have you used the listings insert via the menu Insert-Program

Re: inserting c code in beamer presentation

2009-11-30 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: However, I also get the same error and it seems that the listings package doesn't work together with beamer. Not true. You just need the fragile frame option, which does not work with \lyxframe. See my previous post. Jürgen

Re: inserting c code in beamer presentation

2009-11-30 Thread Micha
On 30/11/2009 17:35, Jürgen Spitzmüller wrote: Uwe Stöhr wrote: However, I also get the same error and it seems that the listings package doesn't work together with beamer. Not true. You just need the fragile frame option, which does not work with \lyxframe. See my previous post. Jürgen

Re: inserting c code in beamer presentation

2009-11-30 Thread Uwe Stöhr
Jürgen Spitzmüller schrieb: You need to use a fragile frame, which is not natively supported by LyX. Interesting. We should add this information to our beamer example file (by adding a program listing frame). Can you do this please? thanks and regards Uwe

Re: inserting c code in beamer presentation

2009-11-30 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: You need to use a fragile frame, which is not natively supported by LyX. Interesting. We should add this information to our beamer example file (by adding a program listing frame). Can you do this please? I'm thinking about a way to implement fragile frames. Jürgen

Re: inserting c code in beamer presentation

2009-11-30 Thread Uwe Stöhr
Jürgen Spitzmüller schrieb: Interesting. We should add this information to our beamer example file (by adding a program listing frame). Can you do this please? I'm thinking about a way to implement fragile frames. For now - LyX 1.6.5 - I would add a frame that contains a listings inset to

Re: inserting c code in beamer presentation

2009-11-30 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: For now - LyX 1.6.5 - I would add a frame that contains a listings inset to beamerlyxexample.lyx. OK? Yes. Jürgen

Re: inserting c code in beamer presentation

2009-11-30 Thread Jürgen Spitzmüller
nikunj . wrote: > How do we insert c code in lyx beamer presentation? > I am trying to use package listings. You need to use a "fragile" frame, which is not natively supported by LyX. * Instead of the "BeginFrame", insert and "EndFrame" * Then, below, in ERT \begin{frame}[fragile]

Re: inserting c code in beamer presentation

2009-11-30 Thread Uwe Stöhr
nikunj . schrieb: How do we insert c code in lyx beamer presentation? I am trying to use package listings. but I get an error "\begin{lstlistings} ends by \end{bea...@frames!" Have you used TeX code to insert the listing of have you used the listings insert via the menu Insert->Program

Re: inserting c code in beamer presentation

2009-11-30 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > However, I also get the same error and it seems that the listings package > doesn't work together with beamer. Not true. You just need the "fragile" frame option, which does not work with \lyxframe. See my previous post. Jürgen

Re: inserting c code in beamer presentation

2009-11-30 Thread Micha
On 30/11/2009 17:35, Jürgen Spitzmüller wrote: Uwe Stöhr wrote: However, I also get the same error and it seems that the listings package doesn't work together with beamer. Not true. You just need the "fragile" frame option, which does not work with \lyxframe. See my previous post.

Re: inserting c code in beamer presentation

2009-11-30 Thread Uwe Stöhr
Jürgen Spitzmüller schrieb: You need to use a "fragile" frame, which is not natively supported by LyX. Interesting. We should add this information to our beamer example file (by adding a program listing frame). Can you do this please? thanks and regards Uwe

Re: inserting c code in beamer presentation

2009-11-30 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > > You need to use a "fragile" frame, which is not natively supported by > > LyX. > > Interesting. We should add this information to our beamer example file (by > adding a program listing frame). Can you do this please? I'm thinking about a way to implement fragile frames.

Re: inserting c code in beamer presentation

2009-11-30 Thread Uwe Stöhr
Jürgen Spitzmüller schrieb: Interesting. We should add this information to our beamer example file (by adding a program listing frame). Can you do this please? I'm thinking about a way to implement fragile frames. For now - LyX 1.6.5 - I would add a frame that contains a listings inset to

Re: inserting c code in beamer presentation

2009-11-30 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > For now - LyX 1.6.5 - I would add a frame that contains a listings inset to > beamerlyxexample.lyx. OK? Yes. Jürgen