[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Placement of auto-generated TOC
Thanks, Bob. I found that setting lot-first or first would work. I used:
<xsl:template name="select.user.pagemaster">
<xsl:param name="element"/>
<xsl:param name="pageclass"/>
<xsl:param name="default-pagemaster"/>
<!-- Return my customized title page master name if for
titlepage, otherwise return the default -->
<xsl:choose>
<xsl:when test="@role = 'non-reflow'">back-body-only</xsl:when>
<xsl:when test="self::toc">front</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$default-pagemaster"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
One oddity, is that I'm getting ???TITLE??? in the header. How do I set
the gentext to show "Table of Contents"?
Thanks,
--Scott
Bob Stayton wrote:
> 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
> bobs@sagehill.net
>
>
> ----- Original Message -----
> From: "Scott Hudson" <scott.hudson@flatironssolutions.com>
> To: "Docbook-Apps" <docbook-apps@lists.oasis-open.org>
> 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: docbook-apps-unsubscribe@lists.oasis-open.org
>>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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]