OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] end-indent for toc not working?


Actually, in 1.72.0 there is a new attribute set toc.line.properties, but 
the end-indents were not in there.  I've moved them from the toc.line 
template to the attribute-set, so this should be easier in 1.72.1.  Try the 
next snapshot.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Bob Stayton" <bobs@sagehill.net>
To: <christian@auspurg.de>; <docbook-apps@lists.oasis-open.org>
Sent: Thursday, February 01, 2007 11:02 AM
Subject: Re: [docbook-apps] end-indent for toc not working?


> The end-indent for the TOC that you set is being overridden by end-indent 
> properties added by the template named 'toc.line' from fo/autotoc.xsl. 
> That template sets both end-indent and last-line-end-indent to the value 
> of the $toc.indent.width parameter.
>
>  <fo:block text-align-last="justify"
>            text-align="start"
>            end-indent="{$toc.indent.width}pt"
>            last-line-end-indent="-{$toc.indent.width}pt">
>
> The end-indent sets the value, then the last-line-end-indent sets the 
> negative value.  The result is that single lines get both properties, and 
> hence no indent.  Any long lines that rollover to a second line have the 
> first line indented and the last line not.  That design keeps the text 
> out of the space reserved for the page numbers, making it more readable.
>
> This template, however, should really not be using the $toc.indent.width 
> parameter, which is intended for the relative indents on the left.  There 
> should be parameters for both the TOC end-indent and the 
> last-line-end-indent.
>
> So you will have to customize the template named 'toc.line' to reset both 
> of those property values.  If you want your page numbers indented by 30mm 
> and any rollover lines by 35mm, then you would use these values:
>
> end-indent="35mm"
> last-line-end-indent="-5mm"
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
>
>
> ----- Original Message ----- 
> From: "Christian Auspurg" <christian@auspurg.de>
> To: <docbook-apps@lists.oasis-open.org>
> Sent: Thursday, February 01, 2007 10:05 AM
> Subject: [docbook-apps] end-indent for toc not working?
>
>
>> Hi.
>>
>> I currently work on a customization layer for PDF output. I use the
>> Docbook-XSL stylesheets v1.72 and XEP v4.6.
>>
>> The double-sided layout I'm trying to realize has marginalia, so I had 
>> to
>> indent the body text. Indenting works well for all elements I use, but 
>> not
>> for TOC. Start-indent works, but end-indent doesn't seem to work here.
>>
>> I tried
>>
>> <xsl:attribute-set name="toc.margin.properties">
>>  <xsl:attribute name="start-indent">30mm</xsl:attribute>
>>  <xsl:attribute name="end-indent">30mm</xsl:attribute>
>> </xsl:attribute-set>
>>
>> and checked the settings in
>>
>> <xsl:template name="set.flow.properties">.
>>
>> I also had no success using margin-right instead of end-indent. There
>> seems to be no way indenting the TOC from the right.
>>
>> Thanks for your help.
>>
>> Christian
>>
>> ---------------------------------------------------------------------
>> 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]