On Tuesday 26 November 2002 15:10, Chris Lale wrote:
> Hello Jos�. Success! Thank you again.

  Good.

> 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

  I will include db_extra directly into db_stdclass.

> 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

  I will include this file also.

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

  In lyx 1.2.x we have already support for those. Upgrade.

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

  Although Andr� is right we can someimes forge this kind of nesting. And that 
is what we currently do for docbook.

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

  That is the purpose. :-)
-- 
Jos� Ab�lio

Reply via email to