Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
On Thu, Dec 3, 2009 at 4:06 PM, Steve Litt sl...@troubleshooters.comwrote: On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book and want to point out certain things in code examples. I'm

Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Steve Litt
On Thursday 03 December 2009 16:19:19 you wrote: On Thu, Dec 3, 2009 at 4:06 PM, Steve Litt sl...@troubleshooters.comwrote: On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book

Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book and want to point out certain things in code examples. I'm trying to get the same effect as the one used by Mark Pilgrim, see http://diveintopython.org/native_data_types/lists.html#d0e5623 (example 3.6

Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
Hi, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book and want to point out certain things in code examples. I'm trying to get the same effect as the one used by Mark Pilgrim, see http://diveintopython.org/native_data_types/lists.html#d0e5623 (example 3.6

Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Steve Litt
On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book and want to point out certain things in code examples. I'm trying to get the same effect as the one used by Mark Pilgrim, see http

Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
Hi Steve, Thanks very much, I'll give it a try. Cheers, Luke On Thu, Dec 3, 2009 at 4:06 PM, Steve Litt sl...@troubleshooters.comwrote: On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing

Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
On Thu, Dec 3, 2009 at 4:06 PM, Steve Litt sl...@troubleshooters.comwrote: On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book and want to point out certain things in code examples. I'm

Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Steve Litt
On Thursday 03 December 2009 16:19:19 you wrote: On Thu, Dec 3, 2009 at 4:06 PM, Steve Litt sl...@troubleshooters.comwrote: On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book

Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book and want to point out certain things in code examples. I'm trying to get the same effect as the one used by Mark Pilgrim, see http://diveintopython.org/native_data_types/lists.html#d0e5623 (example 3.6

Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
Hi, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book and want to point out certain things in code examples. I'm trying to get the same effect as the one used by Mark Pilgrim, see http://diveintopython.org/native_data_types/lists.html#d0e5623 (example 3.6

Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Steve Litt
On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: > Hi Guys, > > Is it possible to mark certain lines in a Program Listing in Lyx? I'm > writing a book and want to point out certain things in code examples. I'm > trying to get the same effect as the one used by Mark Pilg

Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
Hi Steve, Thanks very much, I'll give it a try. Cheers, Luke On Thu, Dec 3, 2009 at 4:06 PM, Steve Litt <sl...@troubleshooters.com>wrote: > On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: > > Hi Guys, > > > > Is it possible to mark certain lines in a

Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
On Thu, Dec 3, 2009 at 4:06 PM, Steve Litt <sl...@troubleshooters.com>wrote: > On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: > > Hi Guys, > > > > Is it possible to mark certain lines in a Program Listing in Lyx? I'm > > writing a book and want to

Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Steve Litt
On Thursday 03 December 2009 16:19:19 you wrote: > On Thu, Dec 3, 2009 at 4:06 PM, Steve Litt <sl...@troubleshooters.com>wrote: > > On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: > > > Hi Guys, > > > > > > Is it possible to mark cert

Re: Trouble adding Program Listing

2009-11-26 Thread Guenter Milde
On 2009-11-25, James Shapiro wrote: I am using Lyx to write a book, which I am well into (~100 pages). When I try to insert a Program Listing I get the following error: LaTex Error: File 'listings.sty' not found. I am running: Lyx version 1.5.3 on Ubuntu version 8.04 and LaTex is installed

Re: Trouble adding Program Listing

2009-11-26 Thread Guenter Milde
On 2009-11-25, James Shapiro wrote: I am using Lyx to write a book, which I am well into (~100 pages). When I try to insert a Program Listing I get the following error: LaTex Error: File 'listings.sty' not found. I am running: Lyx version 1.5.3 on Ubuntu version 8.04 and LaTex is installed

Re: Trouble adding Program Listing

2009-11-26 Thread Guenter Milde
On 2009-11-25, James Shapiro wrote: > I am using Lyx to write a book, which I am well into (~100 pages). When I > try to insert a "Program Listing" I get the following error: > LaTex Error: File 'listings.sty' not found. > I am running: Lyx version 1.5.3 on Ubuntu

Trouble adding Program Listing

2009-11-25 Thread James Shapiro
I'm sorry if this is the wrong place to post this question, but I did a search for listings.sty in this user's list and couldn't find an answer. I am using Lyx to write a book, which I am well into (~100 pages). When I try to insert a Program Listing I get the following error: LaTex Error: File

Re: Trouble adding Program Listing

2009-11-25 Thread Uwe Stöhr
James Shapiro schrieb: When I try to insert a Program Listing I get the following error: LaTex Error: File 'listings.sty' not found. So listings is not installed in your LaTeX distribution. To install listings, use the package manager of your LaTeX distribution (I guess you are using

Trouble adding Program Listing

2009-11-25 Thread James Shapiro
I'm sorry if this is the wrong place to post this question, but I did a search for listings.sty in this user's list and couldn't find an answer. I am using Lyx to write a book, which I am well into (~100 pages). When I try to insert a Program Listing I get the following error: LaTex Error: File

Re: Trouble adding Program Listing

2009-11-25 Thread Uwe Stöhr
James Shapiro schrieb: When I try to insert a Program Listing I get the following error: LaTex Error: File 'listings.sty' not found. So listings is not installed in your LaTeX distribution. To install listings, use the package manager of your LaTeX distribution (I guess you are using

Trouble adding Program Listing

2009-11-25 Thread James Shapiro
I'm sorry if this is the wrong place to post this question, but I did a search for "listings.sty" in this user's list and couldn't find an answer. I am using Lyx to write a book, which I am well into (~100 pages). When I try to insert a "Program Listing" I get the following

Re: Trouble adding Program Listing

2009-11-25 Thread Uwe Stöhr
James Shapiro schrieb: When I try to insert a "Program Listing" I get the following error: LaTex Error: File 'listings.sty' not found. So listings is not installed in your LaTeX distribution. To install listings, use the package manager of your LaTeX distribution (I guess you

Re: program listing

2009-10-13 Thread Sam Liddicott
* Sajjad wrote, On 12/10/09 14:08: Hello forum, I want to write pseudo-code and i am doing that inside the program listing. But when i generate the pdf , the code are cropped sideways. Any hint to get around that issue? Regards Sajjad

Re: program listing

2009-10-13 Thread Sam Liddicott
* Sajjad wrote, On 12/10/09 14:08: Hello forum, I want to write pseudo-code and i am doing that inside the program listing. But when i generate the pdf , the code are cropped sideways. Any hint to get around that issue? Regards Sajjad

Re: program listing

2009-10-13 Thread Sam Liddicott
* Sajjad wrote, On 12/10/09 14:08: Hello forum, I want to write pseudo-code and i am doing that inside the program listing. But when i generate the pdf , the code are cropped sideways. Any hint to get around that issue? Regards Sajjad

program listing

2009-10-12 Thread Sajjad
Hello forum, I want to write pseudo-code and i am doing that inside the program listing. But when i generate the pdf , the code are cropped sideways. Any hint to get around that issue? Regards Sajjad

Re: program listing

2009-10-12 Thread Sam Liddicott
* Sajjad wrote, On 12/10/09 14:08: Hello forum, I want to write pseudo-code and i am doing that inside the program listing. But when i generate the pdf , the code are cropped sideways. Any hint to get around that issue? Use smaller fonts, or short lines? Sam

program listing

2009-10-12 Thread Sajjad
Hello forum, I want to write pseudo-code and i am doing that inside the program listing. But when i generate the pdf , the code are cropped sideways. Any hint to get around that issue? Regards Sajjad

Re: program listing

2009-10-12 Thread Sam Liddicott
* Sajjad wrote, On 12/10/09 14:08: Hello forum, I want to write pseudo-code and i am doing that inside the program listing. But when i generate the pdf , the code are cropped sideways. Any hint to get around that issue? Use smaller fonts, or short lines? Sam

program listing

2009-10-12 Thread Sajjad
Hello forum, I want to write pseudo-code and i am doing that inside the program listing. But when i generate the pdf , the code are cropped sideways. Any hint to get around that issue? Regards Sajjad

Re: program listing

2009-10-12 Thread Sam Liddicott
* Sajjad wrote, On 12/10/09 14:08: Hello forum, I want to write pseudo-code and i am doing that inside the program listing. But when i generate the pdf , the code are cropped sideways. Any hint to get around that issue? Use smaller fonts, or short lines? Sam

Re: Program Listing

2009-02-24 Thread Graham
Paul A. Rubin ru...@... writes: Thanks Paul, that works fine. I was using float. Graham

Re: Program Listing

2009-02-24 Thread Graham
Paul A. Rubin ru...@... writes: Thanks Paul, that works fine. I was using float. Graham

Re: Program Listing

2009-02-24 Thread Graham
Paul A. Rubin writes: Thanks Paul, that works fine. I was using float. Graham

Re: Program Listing

2009-02-18 Thread Manveru
2009/2/17 Graham gra...@griffiths985.freeserve.co.uk: Hi, is it possible to make a Program Listing that will not fit on one page, to continue onto the following page. Is it a question or statament? -- Manveru jabber: manv...@manveru.pl gg: 1624001 http://www.manveru.pl

Re: Program Listing

2009-02-18 Thread Paul A. Rubin
Graham wrote: Hi, is it possible to make a Program Listing that will not fit on one page, to continue onto the following page. Thanks The listings environment (Insert Program Listing) will straddle a page boundary automatically. If you're putting the listing in a float, though, that's

Re: Program Listing

2009-02-18 Thread Manveru
2009/2/17 Graham gra...@griffiths985.freeserve.co.uk: Hi, is it possible to make a Program Listing that will not fit on one page, to continue onto the following page. Is it a question or statament? -- Manveru jabber: manv...@manveru.pl gg: 1624001 http://www.manveru.pl

Re: Program Listing

2009-02-18 Thread Paul A. Rubin
Graham wrote: Hi, is it possible to make a Program Listing that will not fit on one page, to continue onto the following page. Thanks The listings environment (Insert Program Listing) will straddle a page boundary automatically. If you're putting the listing in a float, though, that's

Re: Program Listing

2009-02-18 Thread Manveru
2009/2/17 Graham <gra...@griffiths985.freeserve.co.uk>: > Hi, is it possible to make a "Program Listing" that will not fit on one page, > to continue onto the following page. Is it a question or statament? -- Manveru jabber: manv...@manveru.pl gg: 1624001 http://www.manveru.pl

Re: Program Listing

2009-02-18 Thread Paul A. Rubin
Graham wrote: Hi, is it possible to make a "Program Listing" that will not fit on one page, to continue onto the following page. Thanks The listings environment (Insert > Program Listing) will straddle a page boundary automatically. If you're putting the listing in a f

Program Listing

2009-02-17 Thread Graham
Hi, is it possible to make a Program Listing that will not fit on one page, to continue onto the following page. Thanks

Program Listing

2009-02-17 Thread Graham
Hi, is it possible to make a Program Listing that will not fit on one page, to continue onto the following page. Thanks

Program Listing

2009-02-17 Thread Graham
Hi, is it possible to make a "Program Listing" that will not fit on one page, to continue onto the following page. Thanks

Re: How to insert colored program listing in LYX

2008-11-05 Thread Siegfried MEUNIER-GUTTIN-CLUZEL
Title: MEUNIER-GUTTIN-CLUZEL Hello, Yes, if you first insert the Listings inset and after, you paste your code ( special paste and plain text ... or something like that ... my LyX speaks french ! ). On the screen it was OK and the tree wasn't affected. Remember I'm on Windows XP with LyX

Re: How to insert colored program listing in LYX

2008-11-05 Thread Siegfried MEUNIER-GUTTIN-CLUZEL
Hello, Yes, if you choose a fixed length font like Courrier, the layout of the listing is left as in your text editor, with the possibility of syntax highlighting, line numbering and a lot of other possibilities. For me it works very well : I teach Fortran and I use a lot of program extracts

Re: How to insert colored program listing in LYX

2008-11-05 Thread Siegfried MEUNIER-GUTTIN-CLUZEL
Title: MEUNIER-GUTTIN-CLUZEL Hello, Yes, if you first insert the Listings inset and after, you paste your code ( special paste and plain text ... or something like that ... my LyX speaks french ! ). On the screen it was OK and the tree wasn't affected. Remember I'm on Windows XP with LyX

Re: How to insert colored program listing in LYX

2008-11-05 Thread Siegfried MEUNIER-GUTTIN-CLUZEL
Hello, Yes, if you choose a fixed length font like Courrier, the layout of the listing is left as in your text editor, with the possibility of syntax highlighting, line numbering and a lot of other possibilities. For me it works very well : I teach Fortran and I use a lot of program extracts

Re: How to insert colored program listing in LYX

2008-11-05 Thread Siegfried MEUNIER-GUTTIN-CLUZEL
Title: MEUNIER-GUTTIN-CLUZEL Hello, Yes, if you first insert the Listings inset and after, you paste your code ( special paste and plain text ... or something like that ... my LyX speaks french ! ). On the screen it was OK and the tree wasn't affected. Remember I'm on Windows XP with LyX

Re: How to insert colored program listing in LYX

2008-11-05 Thread Siegfried MEUNIER-GUTTIN-CLUZEL
Hello, Yes, if you choose a fixed length font like Courrier, the layout of the listing is left as in your text editor, with the possibility of syntax highlighting, line numbering and a lot of other possibilities. For me it works very well : I teach Fortran and I use a lot of program extracts

Re: How to insert colored program listing in LYX

2008-11-04 Thread Robert Orr
I have used this Highlight converter with good results. http://www.andre-simon.de/ Output in Latex and then import into your LyX document. --- On Tue, 11/4/08, Ernesto Posse [EMAIL PROTECTED] wrote: From: Ernesto Posse [EMAIL PROTECTED] Subject: Re: How to insert colored program listing

Re: How to insert colored program listing in LYX

2008-11-04 Thread Paul A. Rubin
Md. Golam Parvez wrote: Hi I am using lyx-1.5.6 in UBUNTU 8.04. Can anybody tell me how to insert colored program listing. Thanks in advanced. Golam Parvez First, make sure you have the listings LaTeX package (listings.sty) installed, as well as one of the color packages (color.sty

Re: How to insert colored program listing in LYX

2008-11-04 Thread Guenter Milde
Md. Golam Parvez schrieb: I am using lyx-1.5.6 in UBUNTU 8.04. Can anybody tell me how to insert colored program listing. Thanks in advanced. a) use the listings package http://dante.ctan.org/CTAN/help/Catalogue/entries/listings.html with InsertListing or InsertFileListing (names may

Re: How to insert colored program listing in LYX

2008-11-04 Thread Keith Roberts
On Tue, 4 Nov 2008, Siegfried MEUNIER-GUTTIN-CLUZEL wrote: To: Md. Golam Parvez [EMAIL PROTECTED] From: Siegfried MEUNIER-GUTTIN-CLUZEL [EMAIL PROTECTED] Subject: Re: How to insert colored program listing in LYX Hello, You can use the listings package ( Insert Listings ). If you right-clic

Re: How to insert colored program listing in LYX

2008-11-04 Thread Siegfried MEUNIER-GUTTIN-CLUZEL
Hello, You can use the listings package ( Insert Listings ). If you right-clic on the listing insert box, you can choose the language you use and the syntax will be highlighted. In the listings manual there are many options, so I suppose you can change the colors if you really want. Hope it

Re: How to insert colored program listing in LYX

2008-11-04 Thread Ernesto Posse
And if your language is not on the list, and you know a little Python, I recommend Pygments (http://pygments.org) a very nice syntax colouring package that generates, among other things, LaTeX which you then can include as a file in your LyX document. On Tue, Nov 4, 2008 at 7:54 AM, Siegfried

Re: How to insert colored program listing in LYX

2008-11-04 Thread Robert Orr
I have used this Highlight converter with good results. http://www.andre-simon.de/ Output in Latex and then import into your LyX document. --- On Tue, 11/4/08, Ernesto Posse [EMAIL PROTECTED] wrote: From: Ernesto Posse [EMAIL PROTECTED] Subject: Re: How to insert colored program listing

Re: How to insert colored program listing in LYX

2008-11-04 Thread Paul A. Rubin
Md. Golam Parvez wrote: Hi I am using lyx-1.5.6 in UBUNTU 8.04. Can anybody tell me how to insert colored program listing. Thanks in advanced. Golam Parvez First, make sure you have the listings LaTeX package (listings.sty) installed, as well as one of the color packages (color.sty

Re: How to insert colored program listing in LYX

2008-11-04 Thread Guenter Milde
Md. Golam Parvez schrieb: I am using lyx-1.5.6 in UBUNTU 8.04. Can anybody tell me how to insert colored program listing. Thanks in advanced. a) use the listings package http://dante.ctan.org/CTAN/help/Catalogue/entries/listings.html with InsertListing or InsertFileListing (names may

Re: How to insert colored program listing in LYX

2008-11-04 Thread Keith Roberts
On Tue, 4 Nov 2008, Siegfried MEUNIER-GUTTIN-CLUZEL wrote: To: Md. Golam Parvez [EMAIL PROTECTED] From: Siegfried MEUNIER-GUTTIN-CLUZEL [EMAIL PROTECTED] Subject: Re: How to insert colored program listing in LYX Hello, You can use the listings package ( Insert Listings ). If you right-clic

Re: How to insert colored program listing in LYX

2008-11-04 Thread Siegfried MEUNIER-GUTTIN-CLUZEL
Hello, You can use the listings package ( Insert Listings ). If you right-clic on the listing insert box, you can choose the language you use and the syntax will be highlighted. In the listings manual there are many options, so I suppose you can change the colors if you really want. Hope it

Re: How to insert colored program listing in LYX

2008-11-04 Thread Ernesto Posse
And if your language is not on the list, and you know a little Python, I recommend Pygments (http://pygments.org) a very nice syntax colouring package that generates, among other things, LaTeX which you then can include as a file in your LyX document. On Tue, Nov 4, 2008 at 7:54 AM, Siegfried

Re: How to insert colored program listing in LYX

2008-11-04 Thread Robert Orr
I have used this Highlight converter with good results. http://www.andre-simon.de/ Output in Latex and then import into your LyX document. --- On Tue, 11/4/08, Ernesto Posse <[EMAIL PROTECTED]> wrote: > From: Ernesto Posse <[EMAIL PROTECTED]> > Subject: Re: How to inse

Re: How to insert colored program listing in LYX

2008-11-04 Thread Paul A. Rubin
Md. Golam Parvez wrote: Hi I am using lyx-1.5.6 in UBUNTU 8.04. Can anybody tell me how to insert colored program listing. Thanks in advanced. Golam Parvez First, make sure you have the listings LaTeX package (listings.sty) installed, as well as one of the color packages (color.sty

Re: How to insert colored program listing in LYX

2008-11-04 Thread Guenter Milde
Md. Golam Parvez schrieb: > I am using lyx-1.5.6 in UBUNTU 8.04. Can anybody tell me how to insert > colored program listing. Thanks in advanced. a) use the listings package http://dante.ctan.org/CTAN/help/Catalogue/entries/listings.html with Insert>Listing or Insert>File>

Re: How to insert colored program listing in LYX

2008-11-04 Thread Keith Roberts
On Tue, 4 Nov 2008, Siegfried MEUNIER-GUTTIN-CLUZEL wrote: To: Md. Golam Parvez <[EMAIL PROTECTED]> From: Siegfried MEUNIER-GUTTIN-CLUZEL <[EMAIL PROTECTED]> Subject: Re: How to insert colored program listing in LYX Hello, You can use the listings package ( Insert > Listings

Re: How to insert colored program listing in LYX

2008-11-04 Thread Siegfried MEUNIER-GUTTIN-CLUZEL
Hello, You can use the listings package ( Insert > Listings ). If you right-clic on the listing insert box, you can choose the language you use and the syntax will be highlighted. In the listings manual there are many options, so I suppose you can change the colors if you really want. Hope

Re: How to insert colored program listing in LYX

2008-11-04 Thread Ernesto Posse
And if your language is not on the list, and you know a little Python, I recommend Pygments (http://pygments.org) a very nice syntax colouring package that generates, among other things, LaTeX which you then can include as a file in your LyX document. On Tue, Nov 4, 2008 at 7:54 AM, Siegfried

How to insert colored program listing in LYX

2008-11-03 Thread Md. Golam Parvez
Hi I am using lyx-1.5.6 in UBUNTU 8.04. Can anybody tell me how to insert colored program listing. Thanks in advanced. Golam Parvez

How to insert colored program listing in LYX

2008-11-03 Thread Md. Golam Parvez
Hi I am using lyx-1.5.6 in UBUNTU 8.04. Can anybody tell me how to insert colored program listing. Thanks in advanced. Golam Parvez

How to insert colored program listing in LYX

2008-11-03 Thread Md. Golam Parvez
Hi I am using lyx-1.5.6 in UBUNTU 8.04. Can anybody tell me how to insert colored program listing. Thanks in advanced. Golam Parvez

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread G. Milde
On 20.07.08, Paul A. Rubin wrote: Jürgen Spitzmüller wrote: Anyway, I don't think you'll find a working example. As listings fails with multibyte glyphs, it will also fail when multibyte glyphs are used in ERT, no? Not according to the documentation. You can define an escape to LaTeX

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Paul A. Rubin
G. Milde wrote: On 20.07.08, Paul A. Rubin wrote: Jürgen Spitzmüller wrote: Anyway, I don't think you'll find a working example. As listings fails with multibyte glyphs, it will also fail when multibyte glyphs are used in ERT, no? Not according to the documentation. You can define an

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Paul A. Rubin
Paul A. Rubin wrote: I'm attaching a small proof-of-concept example that shows three things: Let me rephrase that: once I wake up, I'll be attaching ... listingsExample.lyx Description: application/lyx

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: I'm attaching a small proof-of-concept example that shows three things: Let me rephrase that:  once I wake up, I'll be attaching ... The example compiles fine in 1.6svn. It's probably too tricky to backport the changes to 1.5. Jürgen

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Paul A. Rubin wrote: I'm attaching a small proof-of-concept example that shows three things: Let me rephrase that: once I wake up, I'll be attaching ... The example compiles fine in 1.6svn. It's probably too tricky to backport the changes to 1.5. No reason to

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread G. Milde
On 20.07.08, Paul A. Rubin wrote: Jürgen Spitzmüller wrote: Anyway, I don't think you'll find a working example. As listings fails with multibyte glyphs, it will also fail when multibyte glyphs are used in ERT, no? Not according to the documentation. You can define an escape to LaTeX

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Paul A. Rubin
G. Milde wrote: On 20.07.08, Paul A. Rubin wrote: Jürgen Spitzmüller wrote: Anyway, I don't think you'll find a working example. As listings fails with multibyte glyphs, it will also fail when multibyte glyphs are used in ERT, no? Not according to the documentation. You can define an

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Paul A. Rubin
Paul A. Rubin wrote: I'm attaching a small proof-of-concept example that shows three things: Let me rephrase that: once I wake up, I'll be attaching ... listingsExample.lyx Description: application/lyx

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: I'm attaching a small proof-of-concept example that shows three things: Let me rephrase that:  once I wake up, I'll be attaching ... The example compiles fine in 1.6svn. It's probably too tricky to backport the changes to 1.5. Jürgen

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Paul A. Rubin wrote: I'm attaching a small proof-of-concept example that shows three things: Let me rephrase that: once I wake up, I'll be attaching ... The example compiles fine in 1.6svn. It's probably too tricky to backport the changes to 1.5. No reason to

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread G. Milde
On 20.07.08, Paul A. Rubin wrote: > Jürgen Spitzmüller wrote: >> Anyway, I don't think you'll find a working example. As listings fails >> with multibyte glyphs, it will also fail when multibyte glyphs are used >> in ERT, no? > Not according to the documentation. You can define an "escape to

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Paul A. Rubin
G. Milde wrote: On 20.07.08, Paul A. Rubin wrote: Jürgen Spitzmüller wrote: Anyway, I don't think you'll find a working example. As listings fails with multibyte glyphs, it will also fail when multibyte glyphs are used in ERT, no? Not according to the documentation. You can define an

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Paul A. Rubin
Paul A. Rubin wrote: I'm attaching a small proof-of-concept example that shows three things: Let me rephrase that: once I wake up, I'll be attaching ... listingsExample.lyx Description: application/lyx

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: > > I'm attaching a small proof-of-concept example that shows three things: > > Let me rephrase that:  once I wake up, I'll be attaching ... The example compiles fine in 1.6svn. It's probably too tricky to backport the changes to 1.5. Jürgen

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Paul A. Rubin wrote: I'm attaching a small proof-of-concept example that shows three things: Let me rephrase that: once I wake up, I'll be attaching ... The example compiles fine in 1.6svn. It's probably too tricky to backport the changes to 1.5. No reason to

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-20 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: If you mean an example for doing a listing in ERT, the OP (Álvaro) had one in his original message.  If you mean an example using multibyte encoding, Yes, I mean the latter. I don't think so -- the closest I come to a foreign language is some long-forgotten German,

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-20 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Anyway, I don't think you'll find a working example. As listings fails with multibyte glyphs, it will also fail when multibyte glyphs are used in ERT, no? Not according to the documentation. You can define an escape to LaTeX character, and anything bracketed by

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-20 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: If you mean an example for doing a listing in ERT, the OP (Álvaro) had one in his original message.  If you mean an example using multibyte encoding, Yes, I mean the latter. I don't think so -- the closest I come to a foreign language is some long-forgotten German,

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-20 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Anyway, I don't think you'll find a working example. As listings fails with multibyte glyphs, it will also fail when multibyte glyphs are used in ERT, no? Not according to the documentation. You can define an escape to LaTeX character, and anything bracketed by

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-20 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: > If you mean an example for doing a listing in ERT, the OP (Álvaro) had > one in his original message.  If you mean an example using multibyte > encoding, Yes, I mean the latter. > I don't think so -- the closest I come to a "foreign" language > is some long-forgotten

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-20 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Anyway, I don't think you'll find a working example. As listings fails with multibyte glyphs, it will also fail when multibyte glyphs are used in ERT, no? Not according to the documentation. You can define an "escape to LaTeX" character, and anything bracketed

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-19 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: However, I agree the encoding switch is a hack, and we should at least limit the hack to the case where it is needed, i.e. only switch to latin1 if we actually are in a multibyte encoding. So fundamentally, I think, it's a question of whether protecting the user

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-19 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: I saw the patch you proposed on the developer list, and I think it's a reasonable compromise.  The only limitation I can see is that users writing in a language that needs multibyte encoding won't be able to embed native language comments in a listing.  If that's

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-19 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Paul A. Rubin wrote: I saw the patch you proposed on the developer list, and I think it's a reasonable compromise. The only limitation I can see is that users writing in a language that needs multibyte encoding won't be able to embed native language comments in a

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-19 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: However, I agree the encoding switch is a hack, and we should at least limit the hack to the case where it is needed, i.e. only switch to latin1 if we actually are in a multibyte encoding. So fundamentally, I think, it's a question of whether protecting the user

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-19 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: I saw the patch you proposed on the developer list, and I think it's a reasonable compromise.  The only limitation I can see is that users writing in a language that needs multibyte encoding won't be able to embed native language comments in a listing.  If that's

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-19 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Paul A. Rubin wrote: I saw the patch you proposed on the developer list, and I think it's a reasonable compromise. The only limitation I can see is that users writing in a language that needs multibyte encoding won't be able to embed native language comments in a

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-19 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: However, I agree the encoding switch is a hack, and we should at least limit the hack to the case where it is needed, i.e. only switch to latin1 if we actually are in a multibyte encoding. So fundamentally, I think, it's a question of whether protecting the user

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-19 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: > I saw the patch you proposed on the developer list, and I think it's a > reasonable compromise.  The only limitation I can see is that users > writing in a language that needs multibyte encoding won't be able to > embed native language comments in a listing.  If that's

<    1   2   3   >