"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.


> 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?

My .lyx/docbook.layout file:

-----------

#% 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

--------------------

>   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?


> -- 
> José Abílio
> 
> LyX and docbook, a perfect match. :-)

-- 
Regards

Chris Karakas
http://www.karakas-online.de

Reply via email to