From: Norman Walsh Date: Tue, 4 Dec 2001 18:48:22 +0000 (+0000) Subject: Feature #445713 TOC customization X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d58ed998dbb4a32e78d4c4c32eb57ec2019fe16;p=docbook-dsssl Feature #445713 TOC customization --- diff --git a/xsl/fo/autotoc.xsl b/xsl/fo/autotoc.xsl index ac5c526d0..1e1497d35 100644 --- a/xsl/fo/autotoc.xsl +++ b/xsl/fo/autotoc.xsl @@ -15,14 +15,35 @@ + + + + + + + + + + + + + + + + + + + - + @@ -35,13 +56,7 @@ |appendix"/> - - - - TableofContents - - - + @@ -54,12 +69,18 @@ + + + + + end-indent="{$toc.indent.width}pt" + last-line-end-indent="-{$toc.indent.width}pt"> - - + + + + @@ -77,13 +98,26 @@ + + + + + + + + + + + + - - - + + + + + @@ -91,8 +125,8 @@ - - + + @@ -106,26 +140,73 @@ mode="toc"> - - - + + + + + - + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/params/toc.indent.width.xml b/xsl/params/toc.indent.width.xml new file mode 100644 index 000000000..5ca83a45e --- /dev/null +++ b/xsl/params/toc.indent.width.xml @@ -0,0 +1,28 @@ + + +toc.indent.width +float + + +toc.indent.width +Amount of indentation for TOC entries + + + + + + + + +Description + +Specifies, in points, the distance by which each level of the +TOC is indented from its parent. + +This value is expressed in points, without +a unit (in other words, it is a bare number). Using a bare number allows the stylesheet +to perform calculations that would otherwise have to be performed by the FO processor +because not all processors support expressions. + + +