aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2009-01-04 04:48:38 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2009-01-04 04:48:38 +0000
commit4c0c012ee1d275edef51360346368e1c282f2aec (patch)
treefcf5e7ead881e2ea67943f3c92188b27f64694a0 /stylesheets
parenta1712769bd646acf61390e7ce64e8a2ebfa4aee6 (diff)
Reformatted several pages so pdf is properly generated.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8781 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets')
-rw-r--r--stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/lists.xsl2
-rw-r--r--stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/table.xsl2
-rw-r--r--stylesheets/lfs-xsl/pdf/lfs-mixed.xsl23
3 files changed, 25 insertions, 2 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/lists.xsl b/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/lists.xsl
index ffdfaec9a..1ee666eaf 100644
--- a/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/lists.xsl
+++ b/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/lists.xsl
@@ -577,7 +577,7 @@
<xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
<fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing"
- keep-together.within-column="always"
+ keep-together.within-column="auto"
keep-with-next.within-column="always">
<xsl:apply-templates select="term"/>
</fo:block>
diff --git a/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/table.xsl b/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/table.xsl
index a741c072e..238494204 100644
--- a/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/table.xsl
+++ b/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/table.xsl
@@ -248,7 +248,7 @@
xsl:use-attribute-sets="table.cell.padding">
<xsl:if test="$xep.extensions != 0">
<!-- Suggested by RenderX to workaround a bug in their implementation -->
- <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
+ <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
</xsl:if>
<xsl:if test="$rowsep &gt; 0">
<xsl:call-template name="border">
diff --git a/stylesheets/lfs-xsl/pdf/lfs-mixed.xsl b/stylesheets/lfs-xsl/pdf/lfs-mixed.xsl
index 99fcc4092..4a0647f74 100644
--- a/stylesheets/lfs-xsl/pdf/lfs-mixed.xsl
+++ b/stylesheets/lfs-xsl/pdf/lfs-mixed.xsl
@@ -99,9 +99,32 @@ $Date$
<xsl:when test="$keep.together != ''">
<xsl:value-of select="$keep.together"/>
</xsl:when>
+
+<!-- The following section has been modified by Martin Miehe. Page breaks
+ should be allowed within the long script listings in the appendices.
+
<xsl:otherwise>always</xsl:otherwise>
+-->
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="ancestor::appendix">auto</xsl:when>
+ <xsl:otherwise>always</xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+<!-- End of modification -->
+
</xsl:choose>
</xsl:attribute>
+
+<!-- The following lines were inserted by Martin Miehe. Scripts and rules
+ in the appendices should have a smaller font-size so that at least
+ 80 characters fit to one line. -->
+
+ <xsl:if test="ancestor::appendix"> <!-- name(/) != appendix" -->
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
+ </xsl:if>
+<!-- End of insertion. -->
+
<xsl:apply-imports/>
</fo:block>
</xsl:template>