From d1b1da0b3439a857049a5dc2cca38b7d896ba630 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Mon, 11 Feb 2002 12:23:08 +0000 Subject: [PATCH] Patch #510996: add support for two-colum indexes --- xsl/fo/component.xsl | 4 ++++ xsl/fo/index.xsl | 5 ++++- xsl/fo/pagesetup.xsl | 26 ++++++++++++++++++++++---- xsl/fo/param.ent | 1 + xsl/fo/param.xweb | 2 ++ xsl/fo/titlepage.templates.xml | 1 + xsl/params/column.count.of.index.xml | 23 +++++++++++++++++++++++ 7 files changed, 57 insertions(+), 5 deletions(-) create mode 100644 xsl/params/column.count.of.index.xml diff --git a/xsl/fo/component.xsl b/xsl/fo/component.xsl index d4f7f458d..281415016 100644 --- a/xsl/fo/component.xsl +++ b/xsl/fo/component.xsl @@ -17,6 +17,7 @@ + @@ -38,6 +39,9 @@ + + all + diff --git a/xsl/fo/index.xsl b/xsl/fo/index.xsl index 7e50e2e34..c2ca705e9 100644 --- a/xsl/fo/index.xsl +++ b/xsl/fo/index.xsl @@ -35,7 +35,10 @@ - + + + - + + + + + 2 + + + + + + + + + + diff --git a/xsl/fo/param.ent b/xsl/fo/param.ent index f4afff3c0..c19a766fb 100644 --- a/xsl/fo/param.ent +++ b/xsl/fo/param.ent @@ -28,6 +28,7 @@ + diff --git a/xsl/fo/param.xweb b/xsl/fo/param.xweb index 3489b8bdb..b792b52dc 100644 --- a/xsl/fo/param.xweb +++ b/xsl/fo/param.xweb @@ -282,6 +282,7 @@ zero by default, so this is simply the page-master region-left. &hyphenate; &line-height; &column.count; +&column.count.of.index; ®ion.after.extent; ®ion.before.extent; &default.units; @@ -377,6 +378,7 @@ around all these parameters. + diff --git a/xsl/fo/titlepage.templates.xml b/xsl/fo/titlepage.templates.xml index 35dac9efe..3bc5de423 100644 --- a/xsl/fo/titlepage.templates.xml +++ b/xsl/fo/titlepage.templates.xml @@ -720,6 +720,7 @@ force="1" named-template="component.title" param:node="ancestor-or-self::index[1]" + param:pagewide="1" fo:margin-left="{$title.margin.left}" fo:font-size="&hsize3;" fo:font-family="{$title.font.family}" diff --git a/xsl/params/column.count.of.index.xml b/xsl/params/column.count.of.index.xml new file mode 100644 index 000000000..a8048db94 --- /dev/null +++ b/xsl/params/column.count.of.index.xml @@ -0,0 +1,23 @@ + + +column.count.of.index +integer + + +column.count.of.index +Number of columns in the index + + + + + + + + +Description + +This parameter specifies the number of columns on pages in the index. +The default is the same as the column.count. + + + -- 2.40.0