Hello José. Success! Thank you again.
I have created a textclass that produces the docbook <screen></screen>
tags. This is what I did (by modifying copies of existing files).
1. Create a file /usr/share/lyx/layouts/docbook-newbiedoc.layout:
#% Do not delete the line below; configure depends on this
# \DeclareDocBookClass[article] {DocBook Newbiedoc article (SGML)}
# DocBook textclass definition file.
# Author : Chris Lale <[EMAIL PROTECTED]>
# Input general definitions
Input db_stdclass.inc
Input db_extra.inc
MaxCounter Counter_Section
# Exclude higher, or equal, sections:
NoStyle Part
NoStyle Chapter
2. Create a file /usr/share/lyx/layouts/db_extra.inc:
# Textclass definition file for docbook with extra tags.
# Author : Chris Lale <[EMAIL PROTECTED]>
# This is the counterpart of lyxmacros.inc
# It is desireable, as far as possible, to have the same look and
feeling for
# related layouts in latex and docbook.
Input lyxmacros.inc
# Screen style definition
Style Screen
LatexType Paragraph
LatexName screen
Font
Family Typewriter
EndFont
End
3. In Lyx, Edit > Reconfigure and restart Lyx.
Now, another question if I may? Can you nest paragraphs? I want the SGML
to look like this:
<revhistory>
<revision>
<revnumber>1.2</revnumber>
<date>8th September 2002</date> <authorinitials>CTL</authorinitials>
<revremark>Fixed some mistakes</revremark>
</revision>
<revision>
<revnumber>1.1</revnumber>
<date>28th March 2002</date>
<authorinitials>CTL</authorinitials>
<revremark>Completed sections on configuring</revremark>
</revision>
</revhistory>
Cheers,
Chris.
PS I have been writing articles for the Debian GNU/Linux Newbiedoc
project (http://newbiedoc.sourceforge.net/) using Emacs, but Lyx would
be far easier!
--
: ___ Chris Lale <[EMAIL PROTECTED]> :
: / \ :
: | <_/ My PC runs Debian GNU/Linux 3.0. :
: \ Robust, secure and free operating system + applications. :
: \ Available at http://www.debian.org :
- DocBook SGML Chris Lale
- Re: DocBook SGML José Abílio Oliveira Matos
- Re: DocBook SGML Chris Lale
- Re: DocBook SGML José Abílio Oliveira Matos
- Re: DocBook SGML Chris Lale
- Re: DocBook SGML Andre Poenitz
- Re: DocBook SGML José Abílio Oliveira Matos