diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-08-10 21:28:38 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-08-10 21:28:38 +0000 |
commit | 68729574caf276733ee8d23b96c1b7d507ea46b1 (patch) | |
tree | 8ff6a7b512fb9c293c71730d94a7ad490b7ccbe3 /stylesheets/pdf/lfs-pagesetup.xsl | |
parent | a112251b966af505544593171443b560d031d54c (diff) |
Renamed the print stylesheets to pdf.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4028 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/pdf/lfs-pagesetup.xsl')
-rw-r--r-- | stylesheets/pdf/lfs-pagesetup.xsl | 51 |
1 files changed, 20 insertions, 31 deletions
diff --git a/stylesheets/pdf/lfs-pagesetup.xsl b/stylesheets/pdf/lfs-pagesetup.xsl index bde498838..4b6bc38e2 100644 --- a/stylesheets/pdf/lfs-pagesetup.xsl +++ b/stylesheets/pdf/lfs-pagesetup.xsl @@ -4,40 +4,31 @@ xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0"> - <!-- Force section1's onto a new page --> - <xsl:attribute-set name="section.level1.properties"> - <xsl:attribute name="break-after"> - <xsl:choose> - <xsl:when test="not(position()=last())"> - <xsl:text>page</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:text>auto</xsl:text> - </xsl:otherwise> - </xsl:choose> - </xsl:attribute> - </xsl:attribute-set> - <!-- Header --> - <xsl:attribute-set name="header.content.properties"> - <xsl:attribute name="font-family"> - <xsl:value-of select="$body.fontset"/> - </xsl:attribute> - <xsl:attribute name="text-align">right</xsl:attribute> - </xsl:attribute-set> - <xsl:template name="header.content"> - <xsl:value-of select="/book/bookinfo/title"/> - <xsl:text> - </xsl:text> - <xsl:value-of select="/book/bookinfo/subtitle"/> + <xsl:param name="sequence" select="''"/> + <fo:block> + <xsl:attribute name="text-align"> + <xsl:choose> + <xsl:when test="$sequence = 'first' or $sequence = 'odd'">right</xsl:when> + <xsl:otherwise>left</xsl:otherwise> + </xsl:choose> + </xsl:attribute> + <xsl:value-of select="/book/bookinfo/title"/> + <xsl:text> - </xsl:text> + <xsl:value-of select="/book/bookinfo/subtitle"/> + </fo:block> </xsl:template> <xsl:template name="header.table"> + <xsl:param name="sequence" select="''"/> <xsl:param name="gentext-key" select="''"/> <xsl:choose> - <xsl:when test="$gentext-key = 'book'"/> + <xsl:when test="$gentext-key = 'book' or $sequence = 'blank'"/> <xsl:otherwise> - <xsl:call-template name="header.content"/> + <xsl:call-template name="header.content"> + <xsl:with-param name="sequence" select="$sequence"/> + </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> @@ -58,7 +49,7 @@ </xsl:template> <xsl:template name="part.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <fo:block> <fo:block space-before="2.5in"> <xsl:call-template name="part.titlepage.before.recto"/> <xsl:call-template name="part.titlepage.recto"/> @@ -72,8 +63,8 @@ </xsl:template> <!-- Margins --> - <xsl:param name="page.margin.inner">0.75in</xsl:param> - <xsl:param name="page.margin.outer">0.75in</xsl:param> + <xsl:param name="page.margin.inner">0.5in</xsl:param> + <xsl:param name="page.margin.outer">0.375in</xsl:param> <xsl:param name="title.margin.left">-1pc</xsl:param> <xsl:attribute-set name="normal.para.spacing"> <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute> @@ -110,7 +101,5 @@ <!-- Dropping a blank page --> <xsl:template name="book.titlepage.separator"/> - <!-- How render a variablelist --> - <xsl:param name="variablelist.as.blocks" select="1"/> </xsl:stylesheet> |