[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] toc where every chapter/section starts exactly at the same vertical position
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 > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]