aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl/pdf
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/lfs-xsl/pdf
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/lfs-xsl/pdf')
-rw-r--r--stylesheets/lfs-xsl/pdf/lfs-mixed.xsl23
1 files changed, 23 insertions, 0 deletions
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>