On Fri, Sep 10, 1999 at 12:03:32PM -0700, Kayvan A. Sylvan wrote:
> On Fri, Sep 10, 1999 at 12:46:47PM +0200, Jean-Marc Lasgouttes wrote:
> > >>>>> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes:
> >
> > Kayvan> How do I use DocBook instead of LinuxDoc with LyX? Is it
> > Kayvan> possible?
Hi Kayvan,
last week I had flu... So the answer just goes now, without any
virus ;-)
[...]
> Hi Jean-Marc!
>
> I've attached the newfile.lyx and the generated newfile.sgml using
> the newest stuff from the 1.0.4pre series (latest CVS).
>
> I still can't get the thing to work with DocBook and the latest sgmltools.
>
> Here's what happens when I try to jade and tex the SGML:
> [kayvan@satyr ~/etc/scouts/lyx]$ jade -t tex newfile.sgml
A small, non related question: Do scouts means what I think it means ;-) ?
[jade errors]
A short introduction: The docbook is a DTD (Document Type Definition) declared using
the SGML (Standard Generalized Markup Language). That is SGML is a meta-language where
the docbook is specified.
Other examples of DTD are linuxdoc and html.
The DTD defines all the possible structures of the docbook documents.
As an example it says that the document should start with an header, the header
should contain one and only one title, with other optional tags.
The header is not optional but required.
The document should also contain a body, whithin that element, there could
be other elements, but with a fixed number of possibilities as defined in the
DTD.
The example I gave used a mini description of the html DTD.
Back to docbook: The next step is to validate the html you produced, that is,
to see if its structure conforms the docbook DTD. Only after this step the
docbook code is translated to the final backends (html, tex,...)
So the problem with your document is that it doesn't conform to the docbook
definition, further information in
http://www.oasis-open.org/docbook/documentation/index.html
search in particular in the reference manual to see which elements are allowed and
where.
If want to I can send you some of my links regarding sgml (for beginners, as me :-)
For the moment, without further complications, the errors shows that you have in the
<name> element another one that is not allowed, the link to your homepage.
the name must have also other subelements that generally are <firstname> and
<surname>.
One of the main ideas of sgml is to completly (or almost as possible) to separate
the content
from the document presentation.
The effect you pretend would then be achieved telling the dsssl stylesheet to have
your
email adress presenting your name.
I append one small example, that should become the docbook example file.
> Nontheless, the tex file is created.
>
> The tex file does not have a \begin{document} or \end{document} so
> I added those:
IIRC that is not latex, as your pretend with the begin and end document, but jadetex.
LaTeX is one construct over tex, that adds some macros using the underlying tex
language. Within the latex document you simply use some of this macros instead of pure
raw tex [Jean-Marc, or anyone else, please correct me here as probably I don't know
what
I'm saying :-)].
jadetex is another group of those macros.
> [kayvan@satyr ~/etc/scouts/lyx]$ (echo '\begin{document}'; cat newfile.tex ; echo
>'\end{document}' ) > foo.tex
>
> And then the jadetex run:
>
> [kayvan@satyr ~/etc/scouts/lyx]$ jadetex foo.tex
> This is TeX, Version 3.14159 (Web2C 7.3.1)
> (foo.tex
> JadeTeX 1998/10/12: 2.3
> No file foo.aux.
> (/usr/share/texmf/tex/latex/base/ts1cmr.fd)
> (/usr/share/texmf/tex/latex/ot2cyr/ot2wncyr.fd)
> (/usr/share/texmf/tex/latex/psnfss/t1ptm.fd)
> (/usr/share/texmf/tex/jadetex/isoents.tex
> ! TeX capacity exceeded, sorry [pool size=17372].
> l.1716 \def\
> Entxfr{\ensuremath{\mathfrak{x}}}% E4AC
> No pages of output.
> Transcript written on foo.log.
> [kayvan@satyr ~/etc/scouts/lyx]$
>
> That's all the details.
>
> --
> Kayvan Aghaiepour Sylvan | Proud husband of | Father to my kids:
> Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89)
> http://sylvan.com/~kayvan | | Robin Gregory (2/28/92)
Running out of time...
--
José