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 frame, and the same applies for >> >

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 separated by a comma. B

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 cou

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 f

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 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: > > 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ü

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 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 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 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 listi

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

inserting c code in beamer presentation

2009-11-30 Thread nikunj .
Hi, How do we insert c code in lyx beamer presentation? I am trying to use package listings. I try the following: \begin{lstlisting} union mix_t { long l; struct { short hi; short lo; } s; char c[4]; } mix; \end{lstlisting} but I get an error "\begin{lstlistings} ends by \end{

Re: Fwd: Inserting C++ code

2009-06-08 Thread Uwe Stöhr
Sajjad schrieb: Actually Program Listing worked fine for me. Thanks Uwe!!! You're welcome. First of all i had a float figure and inside that i have inserted the program listing box The listings inset can be set to behave like a float, have a look at sec. 7 of the EmbeddedObjects manual.

Fwd: Inserting C++ code

2009-06-08 Thread Sajjad
: James C. Sutherland Date: Mon, Jun 8, 2009 at 4:06 PM Subject: Re: Inserting C++ code To: lyx-users User On Jun 7, 2009, at 5:55 AM, Sajjad wrote: Hello forum, > > I have installed LyX 2.6.1 and trying to insert C++ code. I am trying as > follows: > > 1. Inserted a float algorith

Re: Inserting C++ code

2009-06-08 Thread James C. Sutherland
On Jun 7, 2009, at 5:55 AM, Sajjad wrote: Hello forum, I have installed LyX 2.6.1 and trying to insert C++ code. I am trying as follows: 1. Inserted a float algorithm . 2. Pasted the code snippet inside that But the code is not well formatted Any hint on how to keep the format ? I h

Re: Inserting C++ code

2009-06-07 Thread Erez Yerushalmi
Hi Sajjad, This reminds me of Bob's solution for Matlab2tex. Maybe you can use his trick for C++. see http://www.mail-archive.com/lyx-users@lists.lyx.org/msg73865.html I would like to hear how you solved it. Best, Erez On Sun, Jun 7, 2009 at 12:55 PM, Sajjad wrote: > Hello forum, > > I have

Re: Inserting C++ code

2009-06-07 Thread Uwe Stöhr
Sajjad schrieb: I have installed LyX 2.6.1 and trying to insert C++ code. I am trying as follows: 1. Inserted a float algorithm . 2. Pasted the code snippet inside that The better solution is to use the listings inset. This is described in sec. 7 of the EmbeddedObjects manual that you find i

Inserting C++ code

2009-06-07 Thread Sajjad
Hello forum, I have installed LyX 2.6.1 and trying to insert C++ code. I am trying as follows: 1. Inserted a float algorithm . 2. Pasted the code snippet inside that But the code is not well formatted Any hint on how to keep the format ? Regards Sajjad