This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: TOC, Itemizedlist and Apache FOP
[Moving this over to docbook-apps]
On Tue, Feb 18, 2003 at 04:24:21PM +0100, Jeroen Alblas wrote:
> Hello,
>
> I just started of with XSL:FO and DocBook. I hoped
> DocBook would solve my problem regarding the automated
> generation of the TOC. I have a DocBook with chapters and
> sections. First I compile the DocBook to XSL:FO using the
> docbook-xsl-1.60.1. Then I use Apache FOP 0.20.4 to compile
> the XSLFO into a PDF document. In the PDF, only the
> Chapters are automaticly numbered. The Sections do appear
> in the TOC that is automaticly generated, but without
> numbering. How do I solve this?
See
http://www.sagehill.net/xml/docbookxsl/PrintOutput.html#FOSectionNumbering
> Another thing is, that the the listitems within an
> <itemizedlist> seem to have a blank line between them. Is
> this caused by the nessary <para> tag within the <listitem>
> tag?
No, that is the default style for lists in DocBook XSL.
You can customize the 'list-item-spacing' attribute-set from
fo/param.xsl to change the default spacing. Or you could
add the spacing="compact" attribute to your itemizedlist elements
in your document.
> And last but not least... what is the optimal
> configuration at the moment to compile docbook to pdf? FOP
> still has a lot of unimplemented features and I'm not too
> enthousiastic about the layout in the PDF either...
In my experience to this point, the commericial offerings
(RenderX, Antenna House) produce the best output. I'm
hoping FOP will catch up.
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com