I mean after I run
$ xsltproc /usr/share/sgml/docbook/xsl-stylesheets/fo/docbook.xsl exp >
foo.fo
And then run pdflatex foo.fo I get the errors
On Thursday 28 November 2002 08:37 pm, Paul wrote:
> When I run:
>
> $ xsltproc /usr/share/sgml/docbook/xsl-stylesheets/fo/docbook.xsl exp <
> foo.fo
>
> i get :
>
> [paulb@malloc docbook]$ pdflatex foo.fo
> This is pdfTeX, Version 3.14159-1.00b-pretest-20020211-HO20020731 (Web2C
> 7.3.7)
> (./foo.fo{/usr/share/texmf/pdftex/config/pdftex.cfg}
> LaTeX2e <2001/06/01>
> Babel <v3.7h> and hyphenation patterns for american, french, german,
> ngerman, b
> asque, italian, portuges, russian, spanish, swedish, nohyphenation, loaded.
>
> ! LaTeX Error: Missing \begin{document}.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.1 <
> ?xml version="1.0"?>
> ? exit
> No pages of output.
> Transcript written on foo.log.
>
> Whats going on?
>
> -Paul
>
> On Thursday 28 November 2002 06:02 pm, Michael JasonSmith wrote:
> > 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.