On Sun, Sep 23, 2001 at 07:42:03PM +0100, Jose Abilio Oliveira Matos wrote:
>   In first analisys I would say that the language of docbook article is
> portuguese (mine language :-)). That is weird since those documents that I
> have in my document are in english.
> 
>   Could you please change the language to english and see the result?

LyX document's language was English (I have not change it) -- see
attached and result is still the same:

Converting from  docbook to dvi
Calling db2dvi 'docbook_article.sgml'
OUTPUT FILE NAME IS docbook_article.dvi
jade:/usr/lib/sgml/stylesheets/nwalsh-modular/print/../common/dbl1ptbr.ent:73:23:E: 
non SGML character number 259
This is TeX, Version 3.14159 (Web2C 7.3.1)
(Fatal format file error; I'm stymied)
Executing command: xdvi -paper us 'docbook_article.dvi'
file:docbook_article.dvi: No such file or directory

Does anybody have any idea, what's up?

Thanks

Matej

-- 
Do you suppose, that those eighteen on whom the tower in Siloam fell 
and killed them, were worse culprits than all the men who live in 
Jerusalem? I tell you, no, but UNLESS you repent you will likewise 
perish.
                                                    -- Luke 13,4-5
#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass docbook
\language english
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout SGML


\begin_inset Info
Here goes the information about the article:
  * title
  * date
  * author
    + first name
    + last name
 * abstract
\end_inset 


\layout Title
\added_space_top vfill \added_space_bottom vfill 
Docbook with LyX
\layout Date

24 September 1999
\layout Author

\begin_deeper 
\layout SGML
\align center 

\size normal 

\begin_inset Info
The author name is always composed of:
  * first name
  * surname

It is always possible to have more than one author.
\end_inset 


\layout FirstName


\latex no_latex 
Jos
\latex default 
e'
\layout Surname


\latex no_latex 
Matos
\end_deeper 
\layout Abstract

This is a small illustration of lyx's features using DocBook.
\layout Abstract

The abstract can span several paragraphs.
\layout Section


\begin_inset LatexCommand \label{first-section}

\end_inset 

Introduction
\layout Standard

This file ilustrates the generation of docbook documents with LyX.
\layout Standard

This will improve as soon as new features are available.
\layout Section

Standard layouts
\layout Standard

One of the goals is the support, as much as possible, of layouts used in
 other textclass, for compatibility purposes.
\layout Standard

Remember that this is work in progress, I would like to hear any comments,
 good or 
\begin_inset Quotes eld
\end_inset 

bad
\begin_inset Quotes erd
\end_inset 

.
\layout Subsection

Lists
\layout Standard

This is an example with several nested lists.
\layout Itemize

item 1
\begin_deeper 
\layout Enumerate

item 2
\layout Description

new item
\begin_deeper 
\layout Enumerate

collection
\end_deeper 
\end_deeper 
\layout Itemize

new set
\layout Subsection

Code
\layout Standard

Required steps to have a running lyx.
\layout Quotation

Be carefull with your own code.
\layout Quotation

The debugger.
\layout Code

cat > env.out
\layout Code

tar xvzf lyx.tgz
\layout Code

cd lyx-1_0_x
\layout Code

./configure
\layout Code

make
\layout Code

make install
\layout Subsection

Labels
\layout Standard

If a label is the first element in any layout, that label will be merged
 with that element.
 See as an example 
\begin_inset LatexCommand \ref[first-section]{first-section}

\end_inset 

.
\layout Subsection

Fonts
\layout Standard

The only fonts supported are 
\emph on 
Emphasis
\emph default 
 and 
\latex latex 
<literal>SGML</literal>
\latex default 
.
\layout Subsection

Figures
\layout Standard

One of the major changes in the docbook when compared with the linuxdoc
 support are the figures support.
 LyX only allows to view eps figures.
 So you should have one of these if you want to take advantage of this feature.
\layout Standard

Notice that when the docbook code is exported the filename extension is
 stripped.
 This enables that when the several backends are processed in sgmltools,
 the corresponding extensions are added.
 The default extension are eps for the print and gif for the html backend.
\layout Standard

\begin_float fig 
\layout Standard


\begin_inset Figure size 56 85
file /usr/share/lyx/doc/platypus.eps
width 1 2
height 1 3
angle 45
flags 2

\end_inset 


\layout Caption

Nice platypus
\end_float 
 
\layout Standard

Wide figures are treated as normal figures.
\layout Standard

\begin_float wide-fig 
\layout Standard


\begin_inset Figure size 56 85
file /usr/share/lyx/doc/platypus.eps
width 1 2
height 1 3
angle 45
flags 2

\end_inset 


\layout Caption

long, very long...
 :-)
\end_float 
\layout Subsection

Tables
\layout Standard

There is also basic support for tables.
\begin_float tab 
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center 

\begin_inset  Tabular
<lyxtabular version="2" rows="3" columns="5">
<features rotate="false" islongtable="false" endhead="0" endfirsthead="0" endfoot="0" endlastfoot="0">
<column alignment="center" valignment="top" leftline="true" rightline="false" width="" special="">
<column alignment="center" valignment="top" leftline="true" rightline="false" width="" special="">
<column alignment="center" valignment="top" leftline="true" rightline="false" width="" special="">
<column alignment="center" valignment="top" leftline="true" rightline="false" width="" special="">
<column alignment="center" valignment="top" leftline="true" rightline="true" width="" special="">
<row topline="true" bottomline="false" newpage="false">
<cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
<cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

Software 1
\end_inset 
</cell>
<cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

Software 2
\end_inset 
</cell>
<cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

Software 3
\end_inset 
</cell>
<cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="true" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

Software 4
\end_inset 
</cell>
</row>
<row topline="true" bottomline="false" newpage="false">
<cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

Plataform 1
\end_inset 
</cell>
<cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

25 MB
\end_inset 
</cell>
<cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

10 MB
\end_inset 
</cell>
<cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="true" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

34 MB
\end_inset 
</cell>
<cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="true" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
</row>
<row topline="true" bottomline="true" newpage="false">
<cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

Plataform 2
\end_inset 
</cell>
<cell multicolumn="1" alignment="center" valignment="top" topline="false" bottomline="true" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
<cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

12 MB
\end_inset 
</cell>
<cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

30 MB
\end_inset 
</cell>
<cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="true" rotate="false" usebox="none" width="" special="">
\begin_inset Text

\layout Standard

35 MB
\end_inset 
</cell>
</row>
</lyxtabular>

\end_inset 


\layout Caption

Nice Formal Table
\end_float 
 
\layout Standard

As it happens with the figures the wide tables are treated as normal tables.
\layout Subsection

Margins
\layout Standard

There are some restrictions when using margins.
 For further information on docbook allowed syntax consult the 
\begin_inset LatexCommand \url[docbook reference manual]{http://www.oasis-open.org/docbook/documentation/reference/}

\end_inset 

.
\layout Quotation

It is also possible to insert margin notes inside some environments.
\begin_deeper 
\layout SGML

\begin_float margin 
\end_deeper 
\layout Standard

margin note
\layout Standard

second par -> margin note
\layout Standard

third par -> margin note
\end_float 
 
\layout Quotation

Notice that the previous layout is at level 1 
\begin_float footnote 
\layout Standard

This comes from a docbook restriction.
 Sidebar can only appear inside "MSGTEXT", "CAUTION", "IMPORTANT", "NOTE",
 "TIP", "WARNING", "BLOCKQUOTE".
\layout Standard

These environments are easily added to the docbook layout.
\end_float 
 and so is the follow:
\begin_deeper 
\layout SGML

\begin_float margin 
\end_deeper 
\layout Standard

too marginal ;-)
\end_float 
 
\layout Section

The road map
\layout Standard

This is a small list of the remaining tasks:
\layout Itemize

Expand the number of layouts
\begin_deeper 
\layout Itemize

example
\layout Itemize

note
\layout Itemize

warning
\layout Itemize

tip
\layout Itemize

caution
\layout Itemize

important
\end_deeper 
\layout Itemize

Compose other layout files, besides article
\begin_deeper 
\layout Enumerate

book
\layout Enumerate

set (very unlikely)
\begin_float footnote 
\end_deeper 
\layout Standard

I do not expect lyx to deal with colection of books, for now!
\end_float 
\begin_deeper 
\layout Enumerate

refentry
\end_deeper 
\layout Itemize

goodies
\begin_deeper 
\layout Enumerate

including other lyx files
\layout Enumerate

more advanced tables support
\end_deeper 
\layout Itemize

better documentation
\layout Standard

That's all.
 ;-)
\the_end
<!doctype article public "-//OASIS//DTD DocBook V3.1//EN">

<article lang="en">
<!-- DocBook file was created by LyX 1.1
  See http://www.lyx.org/ for more information -->

  <artheader>
   <title>
   Docbook with LyX
  </title>
  <date>
   24 September 1999
  </date>
  <author>
   

  <firstname>
   Jose'
  </firstname>
  <surname>
   Matos
  </surname>
  </author>
  <abstract>
  <para>
   This is a small illustration of lyx's features using DocBook.
  </para>
  <para>
   The abstract can span several paragraphs.
  </para>
  </abstract>
  </artheader>
  <sect1 id="first-section">
   <title>
   Introduction
  </title>
  <para>
   This file ilustrates the generation of docbook documents with LyX.
  </para>
  <para>
   This will improve as soon as new features are available.
  </para>
  </sect1>
  <sect1>
   <title>
   Standard layouts
  </title>
  <para>
   One of the goals is the support, as much as possible, of layouts used in other textclass, for compatibility purposes.
  </para>
  <para>
   Remember that this is work in progress, I would like to hear any comments, good or &ldquo;bad&rdquo;.
  </para>
   <sect2>
    <title>
    Lists
   </title>
   <para>
    This is an example with several nested lists.
   </para>
   <itemizedlist>
    <listitem>
    <para>
    item 1
    </para>
    <orderedlist>
     <listitem>
     <para>
     item 2
     </para>
    </listitem>
    </orderedlist>
    <variablelist>
     <varlistentry>
     <term>
     new
</term><listitem><para>item
     </para>
     <orderedlist>
      <listitem>
      <para>
      collection
      </para>
     </listitem>
     </orderedlist>
    </listitem>
    </varlistentry>
    </variablelist>
   </listitem>
    <listitem>
    <para>
    new set
    </para>
   </listitem>
   </itemizedlist>
   </sect2>
   <sect2>
    <title>
    Code
   </title>
   <para>
    Required steps to have a running lyx.
   </para>
   <blockquote>
   <para>
    Be carefull with your own code.
   </para>
   <para>
    The debugger.
   </para>
   </blockquote>
   <programlisting>
<![ CDATA [cat > env.out
]]><![ CDATA [tar xvzf lyx.tgz
]]><![ CDATA [cd lyx-1_0_x
]]><![ CDATA [./configure
]]><![ CDATA [make
]]><![ CDATA [make install
]]>   </programlisting>
   </sect2>
   <sect2>
    <title>
    Labels
   </title>
   <para>
    If a label is the first element in any layout, that label will be merged with that element. See as an example <link linkend="first-section">first-section</link>.
   </para>
   </sect2>
   <sect2>
    <title>
    Fonts
   </title>
   <para>
    The only fonts supported are <emphasis>Emphasis</emphasis> and <literal>SGML</literal>.
   </para>
   </sect2>
   <sect2>
    <title>
    Figures
   </title>
   <para>
    One of the major changes in the docbook when compared with the linuxdoc support are the figures support. LyX only allows to view eps figures. So you should have one of these if you want to take advantage of this feature.
   </para>
   <para>
    Notice that when the docbook code is exported the filename extension is stripped. This enables that when the several backends are processed in sgmltools, the corresponding extensions are added. The default extension are eps for the print and gif for the html backend.
   </para>
   <para>
    
    <figure>
     <title>
      Nice platypus
     </title>


<graphic fileref="/usr/share/lyx/doc/platypus"></graphic>    </figure>
     
   </para>
   <para>
    Wide figures are treated as normal figures.
   </para>
   <para>
    
    <figure>
     <title>
      long, very long... :-)
     </title>


<graphic fileref="/usr/share/lyx/doc/platypus"></graphic>    </figure>
    
   </para>
   </sect2>
   <sect2>
    <title>
    Tables
   </title>
   <para>
    There is also basic support for tables.
    <table>
     <title>
      Nice Formal Table
     </title>

<tgroup cols="5" colsep="1" rowsep="1">
<colspec colname="col0" align="center"/>
<colspec colname="col1" align="center"/>
<colspec colname="col2" align="center"/>
<colspec colname="col3" align="center"/>
<colspec colname="col4" align="center"/>
<tbody>
<row>
<entry align="center" valign="top">
</entry><entry align="center" valign="top">Software 1
</entry><entry align="center" valign="top">Software 2
</entry><entry align="center" valign="top">Software 3
</entry><entry align="center" valign="top">Software 4
</entry></row>
<row>
<entry align="center" valign="top">Plataform 1
</entry><entry align="center" valign="top" namest="col1" nameend="col1">25 MB
</entry><entry align="center" valign="top">10 MB
</entry><entry align="center" valign="top" namest="col3" nameend="col4">34 MB
</entry></row>
<row>
<entry align="center" valign="top">Plataform 2
</entry><entry align="center" valign="top" namest="col1" nameend="col1">
</entry><entry align="center" valign="top">12 MB
</entry><entry align="center" valign="top">30 MB
</entry><entry align="center" valign="top">35 MB
</entry></row>
</tbody>
</tgroup>
    </table>
     
   </para>
   <para>
    As it happens with the figures the wide tables are treated as normal tables.
   </para>
   </sect2>
   <sect2>
    <title>
    Margins
   </title>
   <para>
    There are some restrictions when using margins. For further information on docbook allowed syntax consult the <ulink url="http://www.oasis-open.org/docbook/documentation/reference/";>docbook reference manual</ulink>.
   </para>
   <blockquote>
   <para>
    It is also possible to insert margin notes inside some environments.
   </para>

    <sidebar>
     <para>
margin note
     </para>
     <para>
second par -&gt; margin note
     </para>
     <para>
third par -&gt; margin note
     </para>
    </sidebar>
 
   <para>
    Notice that the previous layout is at level 1 
    <footnote>
     <para>
This comes from a docbook restriction. Sidebar can only appear inside &quot;MSGTEXT&quot;, &quot;CAUTION&quot;, &quot;IMPORTANT&quot;, &quot;NOTE&quot;, &quot;TIP&quot;, &quot;WARNING&quot;, &quot;BLOCKQUOTE&quot;.
     </para>
     <para>
These environments are easily added to the docbook layout.
     </para>
    </footnote>
     and so is the follow:
   </para>

    <sidebar>
     <para>
too marginal ;-)
     </para>
    </sidebar>
 
   </blockquote>
   </sect2>
  </sect1>
  <sect1>
   <title>
   The road map
  </title>
  <para>
   This is a small list of the remaining tasks:
  </para>
  <itemizedlist>
   <listitem>
   <para>
   Expand the number of layouts
   </para>
   <itemizedlist>
    <listitem>
    <para>
    example
    </para>
   </listitem>
    <listitem>
    <para>
    note
    </para>
   </listitem>
    <listitem>
    <para>
    warning
    </para>
   </listitem>
    <listitem>
    <para>
    tip
    </para>
   </listitem>
    <listitem>
    <para>
    caution
    </para>
   </listitem>
    <listitem>
    <para>
    important
    </para>
   </listitem>
   </itemizedlist>
  </listitem>
   <listitem>
   <para>
   Compose other layout files, besides article
   </para>
   <orderedlist>
    <listitem>
    <para>
    book
    </para>
   </listitem>
    <listitem>
    <para>
    set (very unlikely)
    <footnote>
     <para>
I do not expect lyx to deal with colection of books, for now!
     </para>
    </footnote>
    
    </para>
   </listitem>
    <listitem>
    <para>
    refentry
    </para>
   </listitem>
   </orderedlist>
  </listitem>
   <listitem>
   <para>
   goodies
   </para>
   <orderedlist>
    <listitem>
    <para>
    including other lyx files
    </para>
   </listitem>
    <listitem>
    <para>
    more advanced tables support
    </para>
   </listitem>
   </orderedlist>
  </listitem>
   <listitem>
   <para>
   better documentation
   </para>
  </listitem>
  </itemizedlist>
  <para>
   That's all. ;-)
  </para>
  </sect1>


</article>

Reply via email to