On Thu, 2002-11-28 at 17:49, Paul wrote:
> I am trying to convery docbook files intopdfs using docbook to pdf. It keeps
> telling me I need a catalog file. Where do I find the catalog file?
Hmmm. There is no direct way (that I know of) to convert a DocBook file
into a PDF. There *is* a "db2pdf" script that is shipped with some
distributions, but I think that it is a bit old... To get a PDF out of
a DocBook you
1. Convert the DocBook into a FO file, and then
2. Convert the FO into PDF.
To do (1) use "xsltproc"[1]:
xsltproc /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/fo/docbook.xsl \
foo.xml > foo.fo
The location of the stylesheet will vary from system to system, so try
locate docbook.xsl
With any luck you will find one in the "fo" directory.
To do (2) you need a program that understands FO and outputs PDF. There
are two that I know of: the Java-based FOP and LaTeX. I use the latter.
pdflatex foo.fo
For the above to work you will need the "passivetex" packages
installed. You may find that some of the memory limits in the
"texmf.cnf" are too low; trial and error will tell you which ones need
to be increased.
[1] "xsltproc" ships with GNOME.
--
Michael JasonSmith http://www.cosc.canterbury.ac.nz/~mpj17/