Re: Different program listing styles

2008-03-17 Thread Jürgen Spitzmüller
Dominik Böhm wrote:
   Please do not use 1.6.0svn for any serious work. It is simply not ready.

 I have been using 1.6.0svn since 1,5 months for my diploma thesis and
 it has been working really great, yet. This program listing problem is
 the first serious problem that I am experiencing with 1.6.0svn. So,
 I would say for me is it ready, but maybe I am not using all the
 features.

Nevertheless: It's a development version, and even if it's working rather well 
currently, it might be break and become unusable and eat your docs the next 
hour, if some developer is in the mood (or has a bad day). So do not use it 
for serious work such as a diploma thesis, unless you really think your 
diploma thesis is worthless.

Jürgen


Re: Different program listing styles

2008-03-17 Thread Dominik Böhm
On Mon, Mar 17, 2008 at 8:04 AM, Jürgen Spitzmüller
[EMAIL PROTECTED] wrote:
 Dominik Böhm wrote:
 Please do not use 1.6.0svn for any serious work. It is simply not ready.
  
   I have been using 1.6.0svn since 1,5 months for my diploma thesis and
   it has been working really great, yet. This program listing problem is
   the first serious problem that I am experiencing with 1.6.0svn. So,
   I would say for me is it ready, but maybe I am not using all the
   features.

  Nevertheless: It's a development version, and even if it's working rather 
 well
  currently, it might be break and become unusable and eat your docs the next
  hour, if some developer is in the mood (or has a bad day). So do not use it
  for serious work such as a diploma thesis, unless you really think your
  diploma thesis is worthless.

I am aware of the fact that there are risks involved using LyX for
serious work. But rest assured that my files are safe: I use an
SVN-server for my thesis and upload my work to the server twice a day.
Thus, I might loose about 4 hours of it at maximum. Further I upload
my files each time I update LyX to make sure that apparent bugs don't
ruin my work.

With other words I am well prepared for the day LyX stops working: I
can switch back to my last version of LyX at any time. I know that
there might also be changes in the LyX file format. If that happens
and I won't be able to adapt my files to the new format, I will still
be able to finish my thesis, as my current version works very well and
I have to hand it in by the end of March.

Due to the time frame stepping back to 1.5.4 is no option for me:
there are already too many changes in the file format regarding the
layout modules for example.

Dominik


Re: Different program listing styles

2008-03-17 Thread Jürgen Spitzmüller
Dominik Böhm wrote:
   Please do not use 1.6.0svn for any serious work. It is simply not ready.

 I have been using 1.6.0svn since 1,5 months for my diploma thesis and
 it has been working really great, yet. This program listing problem is
 the first serious problem that I am experiencing with 1.6.0svn. So,
 I would say for me is it ready, but maybe I am not using all the
 features.

Nevertheless: It's a development version, and even if it's working rather well 
currently, it might be break and become unusable and eat your docs the next 
hour, if some developer is in the mood (or has a bad day). So do not use it 
for serious work such as a diploma thesis, unless you really think your 
diploma thesis is worthless.

Jürgen


Re: Different program listing styles

2008-03-17 Thread Dominik Böhm
On Mon, Mar 17, 2008 at 8:04 AM, Jürgen Spitzmüller
[EMAIL PROTECTED] wrote:
 Dominik Böhm wrote:
 Please do not use 1.6.0svn for any serious work. It is simply not ready.
  
   I have been using 1.6.0svn since 1,5 months for my diploma thesis and
   it has been working really great, yet. This program listing problem is
   the first serious problem that I am experiencing with 1.6.0svn. So,
   I would say for me is it ready, but maybe I am not using all the
   features.

  Nevertheless: It's a development version, and even if it's working rather 
 well
  currently, it might be break and become unusable and eat your docs the next
  hour, if some developer is in the mood (or has a bad day). So do not use it
  for serious work such as a diploma thesis, unless you really think your
  diploma thesis is worthless.

I am aware of the fact that there are risks involved using LyX for
serious work. But rest assured that my files are safe: I use an
SVN-server for my thesis and upload my work to the server twice a day.
Thus, I might loose about 4 hours of it at maximum. Further I upload
my files each time I update LyX to make sure that apparent bugs don't
ruin my work.

With other words I am well prepared for the day LyX stops working: I
can switch back to my last version of LyX at any time. I know that
there might also be changes in the LyX file format. If that happens
and I won't be able to adapt my files to the new format, I will still
be able to finish my thesis, as my current version works very well and
I have to hand it in by the end of March.

Due to the time frame stepping back to 1.5.4 is no option for me:
there are already too many changes in the file format regarding the
layout modules for example.

Dominik


Re: Different program listing styles

2008-03-17 Thread Jürgen Spitzmüller
Dominik Böhm wrote:
> >  Please do not use 1.6.0svn for any serious work. It is simply not ready.
>
> I have been using 1.6.0svn since 1,5 months for my diploma thesis and
> it has been working really great, yet. This program listing problem is
> the first "serious" problem that I am experiencing with 1.6.0svn. So,
> I would say for me is it ready, but maybe I am not using all the
> features.

Nevertheless: It's a development version, and even if it's working rather well 
currently, it might be break and become unusable and eat your docs the next 
hour, if some developer is in the mood (or has a bad day). So do not use it 
for serious work such as a diploma thesis, unless you really think your 
diploma thesis is worthless.

Jürgen


Re: Different program listing styles

2008-03-17 Thread Dominik Böhm
On Mon, Mar 17, 2008 at 8:04 AM, Jürgen Spitzmüller
<[EMAIL PROTECTED]> wrote:
> Dominik Böhm wrote:
>  > >  Please do not use 1.6.0svn for any serious work. It is simply not ready.
>  >
>  > I have been using 1.6.0svn since 1,5 months for my diploma thesis and
>  > it has been working really great, yet. This program listing problem is
>  > the first "serious" problem that I am experiencing with 1.6.0svn. So,
>  > I would say for me is it ready, but maybe I am not using all the
>  > features.
>
>  Nevertheless: It's a development version, and even if it's working rather 
> well
>  currently, it might be break and become unusable and eat your docs the next
>  hour, if some developer is in the mood (or has a bad day). So do not use it
>  for serious work such as a diploma thesis, unless you really think your
>  diploma thesis is worthless.

I am aware of the fact that there are risks involved using LyX for
serious work. But rest assured that my files are safe: I use an
SVN-server for my thesis and upload my work to the server twice a day.
Thus, I might loose about 4 hours of it at maximum. Further I upload
my files each time I update LyX to make sure that apparent bugs don't
ruin my work.

With other words I am well prepared for the day LyX stops working: I
can switch back to my last version of LyX at any time. I know that
there might also be changes in the LyX file format. If that happens
and I won't be able to adapt my files to the new format, I will still
be able to finish my thesis, as my current version works very well and
I have to hand it in by the end of March.

Due to the time frame stepping back to 1.5.4 is no option for me:
there are already too many changes in the file format regarding the
layout modules for example.

Dominik


Different program listing styles

2008-03-16 Thread Dominik Böhm
Hello,

I would like to use the program listing inset for Java-Code, XML-Code
and some custom code and was wondering, if it's possible to define
different styles for it. So, how can I differentiate between a
Java-Code listing and an XML-Code listing? The highlighting will be
different and maybe I would like to use different options.

I hope there is another solution that doing it with an ERT-inset...

Further I am wondering, why the listing's captions are above the
listing and not beneath it (as we're used from figures).

Best regards and thanks
Dominik


Re: Different program listing styles

2008-03-16 Thread Paul A. Rubin

Dominik Böhm wrote:

Hello,

I would like to use the program listing inset for Java-Code, XML-Code
and some custom code and was wondering, if it's possible to define
different styles for it. So, how can I differentiate between a
Java-Code listing and an XML-Code listing? The highlighting will be
different and maybe I would like to use different options.

I hope there is another solution that doing it with an ERT-inset...


Insert - Program Listing, then right click the handle of the listing 
widget.  Select your language (Java or XML) from the list on the main 
settings tab (lower left).  Click the advanced tab and enter any 
keyword=value pairs in the box.  Note that if you want to use colors, 
you need to add \usepackage{xcolor} (or \usepackage{color}?) in the 
preamble; the listings widget does not add it automatically.



Further I am wondering, why the listing's captions are above the
listing and not beneath it (as we're used from figures).


It's the default for the listings package.  I guess the author likes his 
captions on the top.  In the advanced tab, add the option 'captionpos=b' 
to move the caption to the bottom.


/Paul



Re: Different program listing styles

2008-03-16 Thread Dominik Böhm
Thanks for your quick answer, Paul.

On Sun, Mar 16, 2008 at 5:25 PM, Paul A. Rubin [EMAIL PROTECTED] wrote:
 Dominik Böhm wrote:
  Insert - Program Listing, then right click the handle of the listing
  widget.  Select your language (Java or XML) from the list on the main
  settings tab (lower left).  Click the advanced tab and enter any
  keyword=value pairs in the box.  Note that if you want to use colors,
  you need to add \usepackage{xcolor} (or \usepackage{color}?) in the
  preamble; the listings widget does not add it automatically.

Maybe it's a bug in LyX 1.6.0svn: I don't find the handle of the
listing inset. When I right click on it, the popup menu has only one
option No action defined!. What am I missing?

   Further I am wondering, why the listing's captions are above the
   listing and not beneath it (as we're used from figures).

  It's the default for the listings package.  I guess the author likes his
  captions on the top.  In the advanced tab, add the option 'captionpos=b'
  to move the caption to the bottom.

I think this question will be anwered as soon as I can open the
listing's settings window.

Dominik


Re: Different program listing styles

2008-03-16 Thread Bo Peng
  Maybe it's a bug in LyX 1.6.0svn: I don't find the handle of the
  listing inset. When I right click on it, the popup menu has only one
  option No action defined!. What am I missing?

Please do not use 1.6.0svn for any serious work. It is simply not ready.

Bo


Re: Different program listing styles

2008-03-16 Thread Bo Peng
   I hope there is another solution that doing it with an ERT-inset...

  Insert - Program Listing,

In case you do not know, inset-file-child document-listings allows
you to insert files (or lines of files), and you can set global
listings parameters in document-settings.

There are many options for listings and you would better read listings
manual if you plan to use listings extensively.

Bo


Re: Different program listing styles

2008-03-16 Thread Dominik Böhm
On Sun, Mar 16, 2008 at 6:27 PM, Bo Peng [EMAIL PROTECTED] wrote:
   Maybe it's a bug in LyX 1.6.0svn: I don't find the handle of the
listing inset. When I right click on it, the popup menu has only one
option No action defined!. What am I missing?

  Please do not use 1.6.0svn for any serious work. It is simply not ready.

I have been using 1.6.0svn since 1,5 months for my diploma thesis and
it has been working really great, yet. This program listing problem is
the first serious problem that I am experiencing with 1.6.0svn. So,
I would say for me is it ready, but maybe I am not using all the
features.

I know how to handle the listings package by hand with ERT-insets,
but I would rather like to have some GUI-support :-)

Thanks anyways, maybe this feature will be working, soon. If not, I'll
switch back to ERT-insets.

Dominik


Re: Different program listing styles

2008-03-16 Thread Bo Peng
 This program listing problem is
  the first serious problem that I am experiencing with 1.6.0svn. So,
  I would say for me is it ready, but maybe I am not using all the
  features.

Right now, the context dialog is overridden by context menu (a new
feature of 1.6.x). This should be fixed soon.

  I know how to handle the listings package by hand with ERT-insets,
  but I would rather like to have some GUI-support :-)

I usually insert listings as child document because this allows me to
modify them from outside of lyx, and because the space/tab support of
the listings inset is not optimal. Maybe you can try this as well.

Cheers,
Bo


Different program listing styles

2008-03-16 Thread Dominik Böhm
Hello,

I would like to use the program listing inset for Java-Code, XML-Code
and some custom code and was wondering, if it's possible to define
different styles for it. So, how can I differentiate between a
Java-Code listing and an XML-Code listing? The highlighting will be
different and maybe I would like to use different options.

I hope there is another solution that doing it with an ERT-inset...

Further I am wondering, why the listing's captions are above the
listing and not beneath it (as we're used from figures).

Best regards and thanks
Dominik


Re: Different program listing styles

2008-03-16 Thread Paul A. Rubin

Dominik Böhm wrote:

Hello,

I would like to use the program listing inset for Java-Code, XML-Code
and some custom code and was wondering, if it's possible to define
different styles for it. So, how can I differentiate between a
Java-Code listing and an XML-Code listing? The highlighting will be
different and maybe I would like to use different options.

I hope there is another solution that doing it with an ERT-inset...


Insert - Program Listing, then right click the handle of the listing 
widget.  Select your language (Java or XML) from the list on the main 
settings tab (lower left).  Click the advanced tab and enter any 
keyword=value pairs in the box.  Note that if you want to use colors, 
you need to add \usepackage{xcolor} (or \usepackage{color}?) in the 
preamble; the listings widget does not add it automatically.



Further I am wondering, why the listing's captions are above the
listing and not beneath it (as we're used from figures).


It's the default for the listings package.  I guess the author likes his 
captions on the top.  In the advanced tab, add the option 'captionpos=b' 
to move the caption to the bottom.


/Paul



Re: Different program listing styles

2008-03-16 Thread Dominik Böhm
Thanks for your quick answer, Paul.

On Sun, Mar 16, 2008 at 5:25 PM, Paul A. Rubin [EMAIL PROTECTED] wrote:
 Dominik Böhm wrote:
  Insert - Program Listing, then right click the handle of the listing
  widget.  Select your language (Java or XML) from the list on the main
  settings tab (lower left).  Click the advanced tab and enter any
  keyword=value pairs in the box.  Note that if you want to use colors,
  you need to add \usepackage{xcolor} (or \usepackage{color}?) in the
  preamble; the listings widget does not add it automatically.

Maybe it's a bug in LyX 1.6.0svn: I don't find the handle of the
listing inset. When I right click on it, the popup menu has only one
option No action defined!. What am I missing?

   Further I am wondering, why the listing's captions are above the
   listing and not beneath it (as we're used from figures).

  It's the default for the listings package.  I guess the author likes his
  captions on the top.  In the advanced tab, add the option 'captionpos=b'
  to move the caption to the bottom.

I think this question will be anwered as soon as I can open the
listing's settings window.

Dominik


Re: Different program listing styles

2008-03-16 Thread Bo Peng
  Maybe it's a bug in LyX 1.6.0svn: I don't find the handle of the
  listing inset. When I right click on it, the popup menu has only one
  option No action defined!. What am I missing?

Please do not use 1.6.0svn for any serious work. It is simply not ready.

Bo


Re: Different program listing styles

2008-03-16 Thread Bo Peng
   I hope there is another solution that doing it with an ERT-inset...

  Insert - Program Listing,

In case you do not know, inset-file-child document-listings allows
you to insert files (or lines of files), and you can set global
listings parameters in document-settings.

There are many options for listings and you would better read listings
manual if you plan to use listings extensively.

Bo


Re: Different program listing styles

2008-03-16 Thread Dominik Böhm
On Sun, Mar 16, 2008 at 6:27 PM, Bo Peng [EMAIL PROTECTED] wrote:
   Maybe it's a bug in LyX 1.6.0svn: I don't find the handle of the
listing inset. When I right click on it, the popup menu has only one
option No action defined!. What am I missing?

  Please do not use 1.6.0svn for any serious work. It is simply not ready.

I have been using 1.6.0svn since 1,5 months for my diploma thesis and
it has been working really great, yet. This program listing problem is
the first serious problem that I am experiencing with 1.6.0svn. So,
I would say for me is it ready, but maybe I am not using all the
features.

I know how to handle the listings package by hand with ERT-insets,
but I would rather like to have some GUI-support :-)

Thanks anyways, maybe this feature will be working, soon. If not, I'll
switch back to ERT-insets.

Dominik


Re: Different program listing styles

2008-03-16 Thread Bo Peng
 This program listing problem is
  the first serious problem that I am experiencing with 1.6.0svn. So,
  I would say for me is it ready, but maybe I am not using all the
  features.

Right now, the context dialog is overridden by context menu (a new
feature of 1.6.x). This should be fixed soon.

  I know how to handle the listings package by hand with ERT-insets,
  but I would rather like to have some GUI-support :-)

I usually insert listings as child document because this allows me to
modify them from outside of lyx, and because the space/tab support of
the listings inset is not optimal. Maybe you can try this as well.

Cheers,
Bo


Different program listing styles

2008-03-16 Thread Dominik Böhm
Hello,

I would like to use the program listing inset for Java-Code, XML-Code
and some custom code and was wondering, if it's possible to define
different styles for it. So, how can I differentiate between a
Java-Code listing and an XML-Code listing? The highlighting will be
different and maybe I would like to use different options.

I hope there is another solution that doing it with an ERT-inset...

Further I am wondering, why the listing's captions are above the
listing and not beneath it (as we're used from figures).

Best regards and thanks
Dominik


Re: Different program listing styles

2008-03-16 Thread Paul A. Rubin

Dominik Böhm wrote:

Hello,

I would like to use the program listing inset for Java-Code, XML-Code
and some custom code and was wondering, if it's possible to define
different styles for it. So, how can I differentiate between a
Java-Code listing and an XML-Code listing? The highlighting will be
different and maybe I would like to use different options.

I hope there is another solution that doing it with an ERT-inset...


Insert -> Program Listing, then right click the "handle" of the listing 
widget.  Select your language (Java or XML) from the list on the main 
settings tab (lower left).  Click the advanced tab and enter any 
keyword=value pairs in the box.  Note that if you want to use colors, 
you need to add \usepackage{xcolor} (or \usepackage{color}?) in the 
preamble; the listings widget does not add it automatically.



Further I am wondering, why the listing's captions are above the
listing and not beneath it (as we're used from figures).


It's the default for the listings package.  I guess the author likes his 
captions on the top.  In the advanced tab, add the option 'captionpos=b' 
to move the caption to the bottom.


/Paul



Re: Different program listing styles

2008-03-16 Thread Dominik Böhm
Thanks for your quick answer, Paul.

On Sun, Mar 16, 2008 at 5:25 PM, Paul A. Rubin <[EMAIL PROTECTED]> wrote:
> Dominik Böhm wrote:
>  Insert -> Program Listing, then right click the "handle" of the listing
>  widget.  Select your language (Java or XML) from the list on the main
>  settings tab (lower left).  Click the advanced tab and enter any
>  keyword=value pairs in the box.  Note that if you want to use colors,
>  you need to add \usepackage{xcolor} (or \usepackage{color}?) in the
>  preamble; the listings widget does not add it automatically.

Maybe it's a bug in LyX 1.6.0svn: I don't find the "handle" of the
listing inset. When I right click on it, the popup menu has only one
option "No action defined!". What am I missing?

>  > Further I am wondering, why the listing's captions are above the
>  > listing and not beneath it (as we're used from figures).
>
>  It's the default for the listings package.  I guess the author likes his
>  captions on the top.  In the advanced tab, add the option 'captionpos=b'
>  to move the caption to the bottom.

I think this question will be anwered as soon as I can open the
listing's settings window.

Dominik


Re: Different program listing styles

2008-03-16 Thread Bo Peng
>  Maybe it's a bug in LyX 1.6.0svn: I don't find the "handle" of the
>  listing inset. When I right click on it, the popup menu has only one
>  option "No action defined!". What am I missing?

Please do not use 1.6.0svn for any serious work. It is simply not ready.

Bo


Re: Different program listing styles

2008-03-16 Thread Bo Peng
>  > I hope there is another solution that doing it with an ERT-inset...
>
>  Insert -> Program Listing,

In case you do not know, inset->file->child document->listings allows
you to insert files (or lines of files), and you can set global
listings parameters in document->settings.

There are many options for listings and you would better read listings
manual if you plan to use listings extensively.

Bo


Re: Different program listing styles

2008-03-16 Thread Dominik Böhm
On Sun, Mar 16, 2008 at 6:27 PM, Bo Peng <[EMAIL PROTECTED]> wrote:
> >  Maybe it's a bug in LyX 1.6.0svn: I don't find the "handle" of the
>  >  listing inset. When I right click on it, the popup menu has only one
>  >  option "No action defined!". What am I missing?
>
>  Please do not use 1.6.0svn for any serious work. It is simply not ready.

I have been using 1.6.0svn since 1,5 months for my diploma thesis and
it has been working really great, yet. This program listing problem is
the first "serious" problem that I am experiencing with 1.6.0svn. So,
I would say for me is it ready, but maybe I am not using all the
features.

I know how to handle the listings package "by hand" with ERT-insets,
but I would rather like to have some GUI-support :-)

Thanks anyways, maybe this feature will be working, soon. If not, I'll
switch back to ERT-insets.

Dominik


Re: Different program listing styles

2008-03-16 Thread Bo Peng
> This program listing problem is
>  the first "serious" problem that I am experiencing with 1.6.0svn. So,
>  I would say for me is it ready, but maybe I am not using all the
>  features.

Right now, the context dialog is overridden by context menu (a new
feature of 1.6.x). This should be fixed soon.

>  I know how to handle the listings package "by hand" with ERT-insets,
>  but I would rather like to have some GUI-support :-)

I usually insert listings as child document because this allows me to
modify them from outside of lyx, and because the space/tab support of
the listings inset is not optimal. Maybe you can try this as well.

Cheers,
Bo