Re: [docbook-apps] Placement of auto-generated TOC

From
Bob Stayton <>
Date
2008-11-13T22:59:27+00:00
ID
010501c945e3$70d79880$6a00a8c0@pazu
Thread
Re: [docbook-apps] Placement of auto-generated TOC
Hi Scott,
The toc is put into its own page-sequence, calling the select.pagemaster 
template. That template does not have a choice for 'toc', so it falls back 
to 'body', which gives you two columns.  You can customize the 
'select.user.pagemaster' template to choose 'front' instead when the element 
is 'toc'.

I presume to get rid of the default front TOC you set the 'generate.toc' 
param to either blank or 'book nop'?

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Scott Hudson" <>
To: "Docbook-Apps" <>
Sent: Thursday, November 13, 2008 2:15 PM
Subject: Re: [docbook-apps] Placement of auto-generated TOC


> OK, the placement seems to work properly, but I am setting:
>   <xsl:param name="column.count.titlepage" select="1"/>
>   <xsl:param name="column.count.lot" select="1"/>
>   <xsl:param name="column.count.front" select="1"/>
>   <xsl:param name="column.count.body" select="2"/>
>   <xsl:param name="column.count.back" select="2"/>
>   <xsl:param name="column.count.index" select="2"/>
>
> Yet, my toc is still coming out in a 2 column flow. Do I have to set a 
> pagemaster differently somehow for empty tocs?
>
> Thanks,
>
> --Scott
>
> Scott Hudson wrote:
>> I've got a book, where the TOC should be inserted at the end of the 
>> frontmatter.
>>
>> I've got several preface elements in the frontmatter, so the book is 
>> essentially:
>> <book>
>>   <preface>...</preface>
>>   <preface>...</preface>
>>   <preface>...</preface>
>>   <toc/>
>> ...
>> </book>
>>
>> I've set the <xsl:param name="process.empty.source.toc" select="1"/> 
>> param in my customization layer, but the TOC keeps showing up at the 
>> front of the doc. What am I missing?
>>
>> I'm using the 1.74.0 stylesheets.
>>
>> Thanks and best regards,
>>
>> -- Scott
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: 
>> For additional commands, e-mail: 
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>