Re: Problems in defining a listings environment

2007-05-06 Thread Paul A. Rubin
Bo Peng wrote: Dear list, I am trying to add a lstlisting environment to my layout file (using listings package) and arrive at the following: Style Listings MarginStatic LatexTypeEnvironment LatexNamelstlisting NextNoIndent1 LeftMarginMMM RightM

Re: Problems in defining a listings environment

2007-05-02 Thread christian . ridderstrom
You caught me because you know I need this stuff. :-) I will try to make it compile with the current svn and send an updated patch here. I wish you good luck - that stuff is _old_ :-) Maybe checking out the source code from a date close in time to those patches might make things easier? /C

Re: Problems in defining a listings environment

2007-05-02 Thread Bo Peng
Where I'd apparently gotten some attchments. I've sent it all to Bo. You caught me because you know I need this stuff. :-) I will try to make it compile with the current svn and send an updated patch here. Cheers, Bo

Re: Problems in defining a listings environment

2007-05-02 Thread Richard Heck
[EMAIL PROTECTED] wrote: > On Thu, 3 May 2007, Juergen Spitzmueller wrote: >> [EMAIL PROTECTED] wrote: sent it long time to Jürgen, but Christian and Geord has it, too. If I remeber well. >>> I'm pretty sure I've lost what I had, sorry. >> I'm sure I have that somewhere in my archives. I

Re: Problems in defining a listings environment

2007-05-02 Thread christian . ridderstrom
On Thu, 3 May 2007, Juergen Spitzmueller wrote: [EMAIL PROTECTED] wrote: sent it long time to Jürgen, but Christian and Geord has it, too. If I remeber well. I'm pretty sure I've lost what I had, sorry. I'm sure I have that somewhere in my archives. I don't have access now, but I will inve

Re: Problems in defining a listings environment

2007-05-02 Thread Juergen Spitzmueller
[EMAIL PROTECTED] wrote: >> sent it long time to Jürgen, but Christian and Geord has it, too. If I >> remeber well. > > I'm pretty sure I've lost what I had, sorry. I'm sure I have that somewhere in my archives. I don't have access now, but I will investigate over the weekend. It would be a pit

Re: Problems in defining a listings environment

2007-05-01 Thread christian . ridderstrom
On Wed, 2 May 2007, Herbert Voss wrote: Bo Peng wrote: It is not "treating as different paragraphs". They are different paragraphs. Yes, different paragraphs are always separated by a blank line. Now I see why an inset is the only way to generate code with single newlines. Herbert, what do y

Re: Problems in defining a listings environment

2007-05-01 Thread Herbert Voss
Bo Peng wrote: >> It is not "treating as different paragraphs". They are different >> paragraphs. >> >> Yes, different paragraphs are always separated by a blank line. > > Now I see why an inset is the only way to generate code with single > newlines. Herbert, what do you have right now? sent it

Re: Problems in defining a listings environment

2007-05-01 Thread Bo Peng
It is not "treating as different paragraphs". They are different paragraphs. Yes, different paragraphs are always separated by a blank line. Now I see why an inset is the only way to generate code with single newlines. Herbert, what do you have right now? Bo

Re: Problems in defining a listings environment

2007-05-01 Thread Jean-Marc Lasgouttes
> "Richard" == Richard Heck <[EMAIL PROTECTED]> writes: Richard> I'm not absolutely sure where this happens. But the source of Richard> the problem, I am quite sure, is that LyX is treating the Richard> newlines as separating paragraphs, and of course it outputs Richard> \n\n between paragraph

Re: Problems in defining a listings environment

2007-05-01 Thread José Matos
On Tuesday 01 May 2007 20:47:27 Bo Peng wrote: > > I did the same for qt ... In the same bug report Georg refers that he has updated that version so that would constitute a good starting point. > Do you have it somewhere? We are no longer at feature freeze now. :-) Yes we are, in this case

Re: Problems in defining a listings environment

2007-05-01 Thread Richard Heck
Bo Peng wrote: > Regarding the simple layout approach, does anyone know where the extra > newline is inserted? In the lyx file, each line is put into a separate > layout so I guess a newline is inserted between these layouts? I'm not absolutely sure where this happens. But the source of the problem

Re: Problems in defining a listings environment

2007-05-01 Thread Bo Peng
I did the same for qt ... Do you have it somewhere? We are no longer at feature freeze now. :-) Regarding the simple layout approach, does anyone know where the extra newline is inserted? In the lyx file, each line is put into a separate layout so I guess a newline is inserted between these lay

Re: Problems in defining a listings environment

2007-05-01 Thread Herbert Voss
Michael Gerz wrote: > Bo Peng schrieb: >>> In that case was a new inset, like include/input inset, with >>> support to >>> configure the different options from listings, like the programming >>> language, ... >> >> That will be good to have I googled for 2 minutes and could not >> find that p

Re: Problems in defining a listings environment

2007-05-01 Thread Michael Gerz
Bo Peng schrieb: In that case was a new inset, like include/input inset, with support to configure the different options from listings, like the programming language, ... That will be good to have I googled for 2 minutes and could not find that patch right now. http://bugzilla.lyx.org/

Re: Problems in defining a listings environment

2007-05-01 Thread Bo Peng
In that case was a new inset, like include/input inset, with support to configure the different options from listings, like the programming language, ... That will be good to have I googled for 2 minutes and could not find that patch right now. I found PassThru from src/layout.cpp. With a

Re: Problems in defining a listings environment

2007-05-01 Thread Andre Poenitz
On Tue, May 01, 2007 at 01:11:16PM -0500, Bo Peng wrote: > >there was at a given point a patch from Herbert Voss to support > >listings > >directly in LyX. It was presented at a time when we were in feature freeze > >and since it was reject due to the time of proposal Herbert lost

Re: Problems in defining a listings environment

2007-05-01 Thread José Matos
On Tuesday 01 May 2007 19:11:16 Bo Peng wrote: > I am not sure what is 'direct' support since I am just one step away > from what I want. Is there a layout instruction that outputs text > unchanged? I see something like FreeSpacing, but this means somthing > else. In that case was a new inset, l

Re: Problems in defining a listings environment

2007-05-01 Thread Bo Peng
there was at a given point a patch from Herbert Voss to support listings directly in LyX. It was presented at a time when we were in feature freeze and since it was reject due to the time of proposal Herbert lost interest in it. I am not sure what is 'direct' support since I am just one

Re: Problems in defining a listings environment

2007-05-01 Thread José Matos
On Tuesday 01 May 2007 17:53:13 Bo Peng wrote: > > There are other problems like _ is translated to \_ ... > > Bo Bo, there was at a given point a patch from Herbert Voss to support listings directly in LyX. It was presented at a time when we were in feature freeze and since it was reje

Re: Problems in defining a listings environment

2007-05-01 Thread Bo Peng
My problem is that Line1 Line2 appears in latex as \begin{lstlisting} Line1 Line2 \end{lstlisting} There are other problems like _ is translated to \_ ... Bo