This is the mail archive of the
mailing list for the DocBook project.
Re: Re: LyX with Docbook
- To: docbook at lists dot oasis-open dot org
- Subject: Re: DOCBOOK: Re: LyX with Docbook
- From: Matt Mozur <matt dot mozur at flashcom dot net>
- Date: Thu, 04 Nov 1999 21:23:05 -0500
- References: <firstname.lastname@example.org>
- Reply-To: docbook at lists dot oasis-open dot org
Well, I'm pretty new at this - but here is what I have been
ablt to piece together...
LyX is indeed a LaTeX editor - but... you can set the editor to
produce a DocBook article by using the Layout --> Document
menu and setting the Document Class to be SGML(Docbook). By
doing this, the file you create will still be in LaTex format,
but with DocBook Article elements.
When you update the document, you must save the changes in
native LyX (LaTeX) mode and then you can export the file to
DocBook. This creates an SGML file, which can now be processed
LyX cannot directly read or import SGML files, nor can it
directly "read" the DocBook DTD. It uses a layout file
in which DocBook elements are defined as a Class and equated
to LaTeX types, names, & parameters. The layout files are
in (on my system, YMMV) /usr/local/share/lyx/layouts.
So, if you are a LaTeX guru you can write your own class file,
or enhance an existing one.
Bob Stayton wrote:
> I thought LyX was a LateX editor, meaning it's native file
> format was LateX. Can one just open a Docbook .sgml file
> with LyX? How about a Docbook .xml file? Does it import
> and convert to LateX, or can it edit in SGML or XML and
> write those file formats back out? Is LyX working
> with the DTD, and can it work with other DTDs?