On Tuesday 17 September 2002 15:57, David Cussans wrote: > 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
I have the same toolchain. > 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. The attached file should fix it. The only change is that the paragraph where the figure is was changed from Standard to SGML. > 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 ). I have been lazy here. Since I usually don't have problems with scaling I never had the ouptut correct for it. The patch for it is simple and it spans few lines. I will send it to the list soon and propose it for inclusion for future 1.2.2 > Another irritation is that the only file-format for graphics that > seems to work with Jade is PDF - am I missing something obvious ? I don't know. I don't remember to have problems here. > Does anybody know how include graphics in Docbook with Lyx? > > Cheers, > David -- Jos� Ab�lio
#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 SGML \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
