On Wednesday 19 May 2004 17:10, Chris Karakas wrote: > "Jose' Matos" <[EMAIL PROTECTED]> schrieb am 19.05.04 16:32:17: > > would it be different if we pass the attribute linenumbering, this is > > something like: > > > > <programminglist linenumbering="numbered"> > > ... > > </programminglist> > > I did this with a quick hack in my sed script and Openjade did not > complain at all. If this is used in SGML standard stylesheets is > something I don't know. But if you enable such features, they should be > "on a case basis", i.e. the user should have the possibility to enable > line numbering here, disable it there, enable it a few pages further down > and so on.
But that applies also to screen, if you see the TDG you will see that it is the same as programming list, it also accepts the linenumbering attribute so your reasoning will apply also here. ;-) > > 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. > > I did this, I reconfigured LyX, then restarted it and opened my > mySGML.lyx, then exported it to DocBook - but the <programlisting> tags > are all there! LyX version: 1.2.0. Anything I am missing? I have checked that it works for 1.4 and 1.3. > My .lyx/docbook.layout file: The file is correct but not the location, it should be ~/.lyx/layouts/docbook.layout notice the extra "layouts" directory. > ----------- > > #% Do not delete the line below; configure depends on this > # \DeclareDocBookClass[article]{DocBook article (SGML)} > # DocBook textclass definition file. > # Author : Jose' Matos <[EMAIL PROTECTED]> > > # Input general definitions > Input db_stdclass.inc > > MaxCounter Counter_Section > > # Exclude higher, or equal, sections: > NoStyle Part > NoStyle Chapter > > # Local customization for LyX-to-X: > # > # Export code environment as <screen>: > Style Code > LatexName screen > End > > -------------------- The file is correct. > > 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. > > Is your .lyx then a symlink to the right directory? Actually I have one for 1.3.5cvs, one for 1.4.0cvs and ~/.lyx is for the system lyx (it is not a symbolic link). But as I have shown before this shouldn't be a problem. :-) -- José Abílio LyX and docbook, a perfect match. :-)