José, Many thanks for your help. I can get things to work now. The sequence I use is
at command line: lyx foo.lyx in Lyx: "File->Export->DOCBOOK" at command line: db2dvi foo.sgml followed by: dvips foo.dvi In Lyx if I try "File->Export->PDF", db2dvi can't find the graphics file ( see lyx_graphics_errors.log (command line transcript) ). If I export DocBook SGML from Lyx and try "db2pdf foo.sgml" from the command line, I find that Jade can't cope with included EPS files ( but PDF is OK ) - see db2pdf_errors.log and graphics_test.log. Looking at graphics_test.log, graphics file-formats for db2pdf seems to be limited to .png,.pdf,.jpg,.mps,.tif . Obviously this isn't a Lyx problem, but certainly had me confused. The command "db2dvi" seems to cope with EPS with no problems. Thanks again for your help. I have a solution that works.... David José Abílio Oliveira Matos wrote: >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 >> >> > > > -- David Cussans University of Bristol, H.H. Wills Physics Laboratory, tel: +44-(117)-928 8772 Tyndall Avenue, fax: +44-(117)-925 5624 Bristol BS8 1TL, UK
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_tmpdir12943gRAwEL/lyx_tmpbuf0/jtag_backplane.sgml This is TeX, Version 3.14159 (Web2C 7.3.1) (/tmp/lyx_tmpdir12943gRAwEL/lyx_tmpbuf0/jtag_backplane.tex JadeTeX 2002/01/25: 3.12 (/usr/share/texmf/tex/latex/psnfss/t1ptm.fd) Elements will be labelled Jade begin document sequence at 21 (/tmp/lyx_tmpdir12943gRAwEL/lyx_tmpbuf0/jtag_backplane.aux) (/usr/share/texmf/tex/latex/cyrillic/t2acmr.fd) (/usr/share/texmf/tex/latex/base/ts1cmr.fd) (/usr/share/texmf/tex/latex/hyperref/nameref.sty) (/usr/share/texmf/tex/latex/psnfss/t1ppl.fd) (/usr/share/texmf/tex/latex/psnfss/t1phv.fd) LaTeX Warning: Reference `12' on page 1 undefined on input line 245. LaTeX Warning: Reference `20' on page 1 undefined on input line 277. LaTeX Warning: Reference `25' on page 1 undefined on input line 309. LaTeX Warning: Reference `30' on page 1 undefined on input line 341. [1.0.26] [2.0.26] ! LaTeX Error: File `jtag_bus_sketch_small' not found. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.549 {}} \endPar{}\endNode{}\endPar{}\Node% [3.0.26] [4.0.26] (/tmp/lyx_tmpdir12943gRAwEL/lyx_tmpbuf0/jtag_backplane.aux) LaTeX Warning: There were undefined references. ) (see the transcript file for additional information) Output written on jtag_backplane.dvi (4 pages, 21628 bytes). Transcript written on jtag_backplane.log.
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: /users/phdgc/sgml/graphics_test.sgml This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1) (/users/phdgc/sgml/graphics_test.tex{/usr/share/texmf/pdftex/config/pdftex.cfg} JadeTeX 2002/01/25: 3.12 (/usr/share/texmf/tex/latex/psnfss/t1ptm.fd) Elements will be labelled Jade begin document sequence at 21 (/users/phdgc/sgml/graphics_test.aux) (/usr/share/texmf/tex/latex/cyrillic/t2acmr.fd) (/usr/share/texmf/tex/latex/base/ts1cmr.fd) (/usr/share/texmf/tex/context/base/supp-pdf.tex (/usr/share/texmf/tex/context/base/supp-mis.tex loading : Context Support Macros / Missing ) loading : Context Support Macros / PDF ) (/usr/share/texmf/tex/latex/hyperref/nameref.sty) (/users/phdgc/sgml/graphics_test.out) (/users/phdgc/sgml/graphics_test.out) (/usr/share/texmf/tex/latex/psnfss/t1ppl.fd) (/usr/share/texmf/tex/latex/psnfss/t1phv.fd) LaTeX Warning: Reference `9' on page 1 undefined on input line 208. [1.0.26{/usr/share/texmf/dvips/config/pdftex.map}] [2.0.26] ! LaTeX Error: File `jtag_bus_sketch' not found. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.407 {}} \endPar{}\endNode{}\endPar{}\Node% [3.0.26] [4.0.26] (/users/phdgc/sgml/graphics_test.aux) LaTeX Warning: There were undefined references. ) (see the transcript file for additional information){/usr/share/texmf/dvips/bas e/8r.enc}</usr/share/texmf/fonts/type1/urw/palatino/uplri8a.pfb></usr/share/tex mf/fonts/type1/urw/palatino/uplb8a.pfb></usr/share/texmf/fonts/type1/urw/palati no/uplr8a.pfb> Output written on graphics_test.pdf (4 pages, 43718 bytes). Transcript written on graphics_test.log.
This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1) (format=pdfjadetex 2002.7.3) 18 SEP 2002 08:38 **graphics_test.tex (/users/phdgc/sgml/graphics_test.tex{/usr/share/texmf/pdftex/config/pdftex.cfg} JadeTeX 2002/01/25: 3.12 LaTeX Font Info: Try loading font information for T1+ptm on input line 1. (/usr/share/texmf/tex/latex/psnfss/t1ptm.fd File: t1ptm.fd 2000/01/12 PSNFSS-v8.1 font definitions for T1/ptm. ) Elements will be labelled Jade begin document sequence at 21 (/users/phdgc/sgml/graphics_test.aux) \openout1 = `graphics_test.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for T2A/cmr/m/n on input line 21. LaTeX Font Info: Try loading font information for T2A+cmr on input line 21. (/usr/share/texmf/tex/latex/cyrillic/t2acmr.fd File: t2acmr.fd 1999/01/07 v1.0 Computer Modern Cyrillic font definitions ) LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 21. LaTeX Font Info: Try loading font information for TS1+cmr on input line 21. (/usr/share/texmf/tex/latex/base/ts1cmr.fd File: ts1cmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions ) LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for LECO/omseco/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for LECX/omsecx/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for LECY/omsecy/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for LEGR/omsegr/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for LEHA/omseha/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for LEIP/omseip/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for LELA/omsela/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. LaTeX Font Info: Checking defaults for LETI/omseti/m/n on input line 21. LaTeX Font Info: ... okay on input line 21. (/usr/share/texmf/tex/context/base/supp-pdf.tex (/usr/share/texmf/tex/context/base/supp-mis.tex loading : Context Support Macros / Missing \protectiondepth=\count116 \scratchcounter=\count117 \scratchtoks=\toks22 \scratchdimen=\dimen131 \scratchskip=\skip54 \scratchmuskip=\muskip10 \scratchbox=\box62 \scratchread=\read1 \scratchwrite=\write4 \zeropoint=\dimen132 \nextbox=\box63 \nextdepth=\dimen133 \everyline=\toks23 \!!counta=\count118 \!!countb=\count119 \recursecounter=\count120 ) loading : Context Support Macros / PDF \nofMPsegments=\count121 \nofMParguments=\count122 \everyMPtoPDFconversion=\toks24 ) Package hyperref Info: Link coloring ON on input line 21. (/usr/share/texmf/tex/latex/hyperref/nameref.sty Package: nameref 2000/05/08 v2.18 Cross-referencing by name of section \c@section@level=\count123 ) (/users/phdgc/sgml/graphics_test.out) (/users/phdgc/sgml/graphics_test.out) \openout3 = `graphics_test.out'. LaTeX Info: Redefining \ref on input line 21. LaTeX Info: Redefining \pageref on input line 21. LaTeX Font Info: Try loading font information for T1+ppl on input line 34. (/usr/share/texmf/tex/latex/psnfss/t1ppl.fd File: t1ppl.fd 2000/01/12 PSNFSS-v8.1 font definitions for T1/ppl. ) LaTeX Font Info: Try loading font information for T1+phv on input line 98. (/usr/share/texmf/tex/latex/psnfss/t1phv.fd File: t1phv.fd 2000/01/12 PSNFSS-v8.1 scalable font definitions for T1/phv. ) LaTeX Font Info: Font shape `T1/phv/bx/n' in size <16.105> not available (Font) Font shape `T1/phv/b/n' tried instead on input line 98. LaTeX Font Info: Font shape `T1/phv/bx/n' in size <13.31> not available (Font) Font shape `T1/phv/b/n' tried instead on input line 114. LaTeX Font Info: Font shape `T1/ppl/bx/n' in size <10> not available (Font) Font shape `T1/ppl/b/n' tried instead on input line 192. LaTeX Font Info: Font shape `T1/ptm/bx/n' in size <10> not available (Font) Font shape `T1/ptm/b/n' tried instead on input line 208. LaTeX Warning: Reference `9' on page 1 undefined on input line 208. [1.0.26{/usr/share/texmf/dvips/config/pdftex.map}] [2.0.26 ] LaTeX Font Info: Font shape `T1/phv/bx/n' in size <12.1> not available (Font) Font shape `T1/phv/b/n' tried instead on input line 331. ! LaTeX Error: File `jtag_bus_sketch' not found. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.407 {}} \endPar{}\endNode{}\endPar{}\Node% I could not locate the file with any of these extensions: .png,.pdf,.jpg,.mps,.tif Try typing <return> to proceed. If that doesn't work, type X <return> to quit. [3.0.26] [4.0.26 ] (/users/phdgc/sgml/graphics_test.aux) LaTeX Warning: There were undefined references. ) Here is how much of TeX's memory you used: 604 strings out of 40578 8830 string characters out of 592036 145552 words of memory out of 1500001 13354 multiletter control sequences out of 10000+50000 22444 words of font info for 33 fonts, out of 400000 for 1000 14 hyphenation exceptions out of 10000 27i,11n,39p,268b,1052s stack positions out of 3000i,500n,3000p,50000b,5000s {/usr/share/texmf/dvips/base/8r.enc}</usr/share/texmf/fonts/type1/urw/palatin o/uplri8a.pfb></usr/share/texmf/fonts/type1/urw/palatino/uplb8a.pfb></usr/share /texmf/fonts/type1/urw/palatino/uplr8a.pfb> Output written on graphics_test.pdf (4 pages, 43718 bytes).