[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] toc where every chapter/section starts exactlyat the same vertical position
Hello Bob,
thank you very much for your help!
Meanwhile I found a solution by using tables, but your solution seems a
lot more intuitive and 'cleaner' :-) to me. I had problems to include
the fo:table-elements correctly (- at the right position since I got
some error messages) in the toc.line-template, but I managed it now.
Nevertheless I will use your suggestion since it is much smarter.
Best Regards
Stefan
Bob Stayton schrieb:
> Hi Stefan,
> You could customize the template named 'toc.line' in fo/autotoc.xsl to
> use a fo:list-block with one list-item to format the two pieces.
> Something like this:
>
> <fo:list-block provisional-distance-between-starts="0.5in">
> <fo:list-item>
> <fo:list-item-label end-indent="label-end()">
> <fo:block>
> <xsl:copy-of select="$label"/>
> </fo:block>
> </fo:list-item-label>
> <fo:list-item-body start-indent="body-start()">
> <!-- the fo:block that formats the title with the leader and page
> reference -->
> </fo:list-item-body>
> </fo:list-item>
> </fo:list-block>
>
> It is the provisional-distance-between-starts that provides the
> consistent spacing, sort of like a two-column table.
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
>
>
> ----- Original Message ----- From: "Stefan Zander"
> <szander@multamedio.de>
> To: <docbook-apps@lists.oasis-open.org>
> Sent: Thursday, June 29, 2006 8:07 AM
> Subject: [docbook-apps] toc where every chapter/section starts exactly
> at the same vertical position
>
>
>> Hello everybody,
>>
>> sorry for the imprecise subject matter.
>> Does anybody know how to generate a toc in a pdf-file with docbook
>> 4.4, which looks as follows:
>>
>> 1 Chapter 1
>> 1.1 Chapter 1.1
>> 1.2 Chapter 1.2
>> 1.2.1 Chapter 1.2.1
>> etc.
>>
>> What docbook does is something like this:
>> 1 Chapter 1
>> 1.1 Chapter 1.1
>> 1.1.1 Chapter 1.1.1
>> etc.
>>
>> Any ideas how to realize this?
>> I am working with docbook 4.4, fop0.92beta, Java 1.5, docbook-xsl 1.70.1
>>
>> I tried to customize the autotox.xsl-stylesheet and use tables, but
>> it seems that this doesn't work.
>>
>> Thanks for any help.
>>
>> Stefan
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>>
>>
>>
>
>
--
Stefan Zander, Dipl. Inf. (FH) MULTA MEDIO Informationssysteme AG
Mergentheimer Str. 76a
97082 Würzburg
mailto:szander@multamedio.de Tel: +49 (0)931 79717-31
http://www.multamedio.de Fax: +49 (0)931 79717-30
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]