On Tuesday 18 May 2004 21:21, Chris Karakas wrote: > Hello, > > I think this is an easy one:
Indeed. > I propose to substitute > > <programlisting> > ... > </programlisting> > > with: > > <screen> > ... > </screen> > > in the DocBook SGML exported document. This does not seem to be crucial > - I could not reproduce any error in Openjade that was due to using > programlisting instead of screen. However, there might be crucial > differences (like line numbering for programlisting, but no numbering for > screen) in the stylesheets. would it be different if we pass the attribute linenumbering, this is something like: <programminglist linenumbering="numbered"> ... </programminglist> > Of course, one can always change his stylesheets, but who does that? Only > a few, I guess. > > I think the best would be to give the user the possibility to choose > which one of the two tags should be used for the LyX "Code" environment > when it is exported to DocBook: programlisting, or screen. Actually we have, for all the versions of lyx. The recipie: copy docbook.layout from where it is in the system to ~/.lyx/layouts, then add: Style Code LatexName screen End And know everytime you save the text you get <screen></screen> instead. Tell me if you have any doubts. Notice that here I assume that the personal directory is .lyx (default), since I use different versions at the same time I have .lyx-1.3... .lyx-1.4.0cvs and so on. PS: I noticed that we have a bug here, when testing the xml version. I will try to fix it asap. -- José Abílio LyX and docbook, a perfect match. :-)