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

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-18 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: The listings package does not require or force the \begingroup + \inputencoding{latin1} + \endgroup commands, nor the two blank lines. The blank lines are purely LyX.   These mark a new paragraph. They are not inserted if you ommit a paragraph break after the listings

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

2008-07-18 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: The listings package does not require or force the \begingroup + \inputencoding{latin1} + \endgroup commands, nor the two blank lines. The blank lines are purely LyX.   These mark a new paragraph. They are not inserted if you ommit a paragraph break after the listings

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

2008-07-18 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: > The listings package does not require or force the \begingroup + > \inputencoding{latin1} + \endgroup commands, nor the two blank lines. > The blank lines are purely LyX.   These mark a new paragraph. They are not inserted if you ommit a paragraph break after the listings

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

2008-07-17 Thread Paul A. Rubin
Álvaro Manuel Recio Pérez wrote: Program listing insets doesn't follow the same rules. Paragraphs after listing insets are indented even if they are conceptually identical to the LyX-Code environment. My questions are: Why does this happen? And, is there a way to globally prevent the

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

2008-07-17 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: I think it's a consequence of LyX setting the input encoding to latin1 (and surrounding the listing with \begingroup ... \endgroup). No, without those, it shows exactly the same behaviour. Still, am I right that forcing latin1 in the listings environment means that you

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

2008-07-17 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Paul A. Rubin wrote: I think it's a consequence of LyX setting the input encoding to latin1 (and surrounding the listing with \begingroup ... \endgroup). No, without those, it shows exactly the same behaviour. Not if you also take out the two blank lines that LyX

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

2008-07-17 Thread Paul A. Rubin
Álvaro Manuel Recio Pérez wrote: Program listing insets doesn't follow the same rules. Paragraphs after listing insets are indented even if they are conceptually identical to the LyX-Code environment. My questions are: Why does this happen? And, is there a way to globally prevent the

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

2008-07-17 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: I think it's a consequence of LyX setting the input encoding to latin1 (and surrounding the listing with \begingroup ... \endgroup). No, without those, it shows exactly the same behaviour. Still, am I right that forcing latin1 in the listings environment means that you

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

2008-07-17 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Paul A. Rubin wrote: I think it's a consequence of LyX setting the input encoding to latin1 (and surrounding the listing with \begingroup ... \endgroup). No, without those, it shows exactly the same behaviour. Not if you also take out the two blank lines that LyX

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

2008-07-17 Thread Paul A. Rubin
Álvaro Manuel Recio Pérez wrote: Program listing insets doesn't follow the same rules. Paragraphs after listing insets are indented even if they are conceptually identical to the LyX-Code environment. My questions are: Why does this happen? And, is there a way to globally prevent the

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

2008-07-17 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: > I think it's a consequence of LyX setting the input encoding to latin1 > (and surrounding the listing with \begingroup ... \endgroup). No, without those, it shows exactly the same behaviour. > Still, am I right that forcing latin1 > in the listings environment means that

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

2008-07-17 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Paul A. Rubin wrote: I think it's a consequence of LyX setting the input encoding to latin1 (and surrounding the listing with \begingroup ... \endgroup). No, without those, it shows exactly the same behaviour. Not if you also take out the two blank lines that LyX

Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-06 Thread Álvaro Manuel Recio Pérez
Hello, First of all, I'm still fairly new to Latex, so please excuse me if this doesn't make sense. I'm using LyX to write a thesis with lots of programming code snippets. I'm using indentation to separate paragraphs and LyX correctly keeps the first paragraph after a title, an enumeration,

Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-06 Thread Álvaro Manuel Recio Pérez
Hello, First of all, I'm still fairly new to Latex, so please excuse me if this doesn't make sense. I'm using LyX to write a thesis with lots of programming code snippets. I'm using indentation to separate paragraphs and LyX correctly keeps the first paragraph after a title, an enumeration,

Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-06 Thread Álvaro Manuel Recio Pérez
Hello, First of all, I'm still fairly new to Latex, so please excuse me if this doesn't make sense. I'm using LyX to write a thesis with lots of programming code snippets. I'm using indentation to separate paragraphs and LyX correctly keeps the first paragraph after a title, an enumeration,