Hi,
I would like to use Lyx to output DocBook SGML. I have installed Lyx
1.2.1 on my RH 7.3 system and have the docbook tool-set installed
openjade-1.3.1-4
jadetex-3.12-2
docbook-dtds-1.0-14
docbook-style-dsssl-1.76-6
docbook-style-xsl-1.49-1
docbook-utils-0.6.11-2
docbook-dtd41-xml-1.0-7
docbook-utils-pdf-0.6.11-2
Creating a new document using the Docbook template works, and
writing *text* works fine. Troubles start when I try to include
graphics. Jade gives errors when processing the SGML produced by Lyx.
I have attached a test Lyx file, the Docbook SGML produced by Lyx,
and the error message produced by Jade.
It is pretty easy to hand-edit the SGML to sort out the problem, but
how do I get Lyx to produce the correct SGML in the first place?
In addition Lyx does not produce an size attributes to the graphics
element ( e.g. WIDTH, SCALE ) - which means that the figure must be the
right size for the page, and won't be scaled. ( Mind you, jade seems to
ignore size attributes in any case ).
Another irritation is that the only file-format for graphics that
seems to work with Jade is PDF - am I missing something obvious ?
Does anybody know how include graphics in Docbook with Lyx?
Cheers,
David
--
David Cussans University of Bristol,
H.H. Wills Physics Laboratory,
Tyndall Avenue,
Bristol BS8 1TL, UK
#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 220
\textclass docbook
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 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 Title
\added_space_top vfill \added_space_bottom vfill
Test of Graphics in Lyx/DocBook
\layout Date
Date
\layout Author
\begin_inset ERT
status Collapsed
\layout Standard
<firstname>
\end_inset
Joe
\begin_inset ERT
status Collapsed
\layout Standard
</firstname><surname>
\end_inset
Doe
\begin_inset ERT
status Collapsed
\layout Standard
</surname>
\end_inset
\layout Abstract
Abstract
\layout Section
Stick a figure in here
\layout Standard
some text...
\layout Standard
\begin_inset Float figure
wide false
collapsed false
\layout Caption
1
\layout Standard
\begin_inset Graphics FormatVersion 1
filename jtag_bus_sketch.eps
display default
size_type 0
rotateOrigin leftBaseline
lyxsize_type 0
\end_inset
\end_inset
\the_end
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.1//EN"
[
<!ENTITY graph1001 "jtag_bus_sketch"> ]>
<article lang="en"><!-- DocBook file was created by LyX 1.2
See http://www.lyx.org/ for more information -->
<articleinfo><title>Test of Graphics in Lyx/DocBook</title><date>Date </date><author><firstname>Joe</firstname><surname>Doe</surname></author><abstract><para>Abstract</para></abstract></articleinfo>
<sect1><title>Stick a figure in here</title><para>some text...</para><para><figure><title>1</title><para><graphic fileref="&graph1001;"></para></figure></para></sect1>
</article>
Using catalogs: /etc/sgml/sgml-docbook-4.1-1.0-14.cat
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.11/docbook-utils.dsl#print
Working on: /tmp/lyx_tmpdir11541zJ46IL/lyx_tmpbuf0/graphics_test.sgml
jade:/tmp/lyx_tmpdir11541zJ46IL/lyx_tmpbuf0/graphics_test.sgml:8:104:E: document type
does not allow element "PARA" here; missing one of "BLOCKQUOTE", "INFORMALEXAMPLE"
start-tag
jade:/tmp/lyx_tmpdir11541zJ46IL/lyx_tmpbuf0/graphics_test.sgml:8:151:E: end tag for
"FIGURE" which is not finished