2005-05-31 18:31:45

by Jeff Garzik

[permalink] [raw]
Subject: DocBook build failures, and graphical figures


Some DocBook-related comments and questions:

* "make psdocs" and "make pdfdocs" both fail in current tree, on Fedora
Core 2 (FC2) and Red Hat Enterprise Linux 4 (RHEL4). Strangely enough,
they fail on different files. I've attached output-psdocs.txt and
output-pdfdocs.txt showing the errors I get.

Both psdocs and pdfdocs -do- work for some files. Each target proceeds
for a bit, and then finds a specific file it doesn't like, and dies.
100% reproducible.

In each failing case, I can use "db2ps" or "db2pdf" to successfully
convert the XML file, whereas xmlto fails.


* Can you make it easy to change the paper size to something custom,
like 6x9in ?


* Is there an example somewhere describing how to insert graphics
(figures and charts) ?


Regards and thanks,

Jeff





2005-05-31 18:34:41

by Jeff Garzik

[permalink] [raw]
Subject: Re: DocBook build failures, and graphical figures

XMLTO Documentation/DocBook/wanbook.ps
Making portrait pages on USletter paper (8.5inx11in)
This is TeX, Version 3.14159 (Web2C 7.4.5)
(./tmp.fo
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
xmltex version: 2002/06/25 v1.9 (Exp):
(/usr/share/texmf/tex/xmltex/xmltex.cfg)
No File: tmp.cfg (/usr/share/texmf/tex/xmltex/passivetex/fotex.xmt)
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/xmltex/passivetex/fotex.sty
)
No file tmp.aux.
(/usr/share/texmf/tex/latex/cyrillic/t2acmr.fd)
(/usr/share/texmf/tex/latex/base/ts1cmr.fd)
(/usr/share/texmf/tex/latex/psnfss/t1ptm.fd)
No file tmp.out.
No file tmp.out.
INFO: Using normal, i.e. nonfrench-spacing in document
(/usr/share/texmf/tex/latex/psnfss/t1phv.fd)
(/usr/share/texmf/tex/latex/psnfss/t1pcr.fd) [1]
(/usr/share/texmf/tex/latex/psnfss/ts1ptm.fd) [2]
(/usr/share/texmf/tex/latex/amsfonts/umsa.fd)
(/usr/share/texmf/tex/latex/amsfonts/umsb.fd)
(/usr/share/texmf/tex/latex/wasysym/uwasy.fd)
(/usr/share/texmf/tex/latex/misc/ustmry.fd) [3]

LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <12.44159> not available
(Font) size <12> substituted on input line 328.


LaTeX Font Warning: Font shape `OML/cmm/m/it' in size <12.44159> not available
(Font) size <12> substituted on input line 328.


LaTeX Font Warning: Font shape `OMS/cmsy/m/n' in size <12.44159> not available
(Font) size <12> substituted on input line 328.


LaTeX Font Warning: Font shape `OMX/cmex/m/n' in size <12.44159> not available
(Font) size <12> substituted on input line 328.


LaTeX Font Warning: Font shape `U/msa/m/n' in size <12.44159> not available
(Font) size <12> substituted on input line 328.


LaTeX Font Warning: Font shape `U/msb/m/n' in size <12.44159> not available
(Font) size <12> substituted on input line 328.


LaTeX Font Warning: Font shape `U/wasy/m/n' in size <12.44159> not available
(Font) size <12> substituted on input line 328.


LaTeX Font Warning: Font shape `U/stmry/m/n' in size <12.44159> not available
(Font) size <12> substituted on input line 328.

[1]
Overfull \hbox (22.13274pt too wide) in paragraph at lines 384--384
[]\T1/phv/b/n/24.8832 Chapter$ $2.$ $Known Bugs And As-sump-tions

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.386 ...o:inline></fo:block></fo:list-item-label>
<fo:list-item-body start-i...

?
! Emergency stop.
...

l.386 ...o:inline></fo:block></fo:list-item-label>
<fo:list-item-body start-i...

Output written on tmp.dvi (4 pages, 14876 bytes).
Transcript written on tmp.log.
make[1]: *** [Documentation/DocBook/wanbook.ps] Error 1
make: *** [psdocs] Error 2


Attachments:
output-pdfdocs.txt (4.96 kB)
output-psdocs.txt (3.21 kB)
Download all attachments

2005-05-31 21:21:55

by Martin Waitz

[permalink] [raw]
Subject: Re: DocBook build failures, and graphical figures

hoi :)

On Tue, May 31, 2005 at 02:31:23PM -0400, Jeff Garzik wrote:
> In each failing case, I can use "db2ps" or "db2pdf" to successfully
> convert the XML file, whereas xmlto fails.

yes, passivetex (which is used by xmlto to process XML-FO) is not as
stable as I thought.
It breaks at strange times but I did not yet had the energy to really
look into it.
So we probably have to support db2pdf/ps again.

> * Can you make it easy to change the paper size to something custom,
> like 6x9in ?

you should be able to put the following lines into stylesheet.xsl:
<param name="paper.width">6in</param>
<param name="paper.height">11in</param>

would it be easy enough if I provided some commented out entries?
(well the above only works for xmlto, I don't know how to set
the paper size for db2*)

> * Is there an example somewhere describing how to insert graphics
> (figures and charts) ?

you can insert graphics with
<mediaobject><imageobject>
<imagedata fileref="blah.png" format="PNG"/>
</imageobject></mediaobject>
(See http://www.faqs.org/docs/docbook/html/mediaobject.html)

The above generates an <img src="blah.png"> in HTML mode.
Is that what you want?

--
Martin Waitz


Attachments:
(No filename) (1.16 kB)
signature.asc (189.00 B)
Digital signature
Download all attachments