Changeset 6872957 for stylesheets/pdf/lfs-pagesetup.xsl
- Timestamp:
- 08/10/2004 09:28:38 PM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- a03b9453
- Parents:
- a112251
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/pdf/lfs-pagesetup.xsl
ra112251 r6872957 5 5 version="1.0"> 6 6 7 <!-- Force section1's onto a new page -->8 <xsl:attribute-set name="section.level1.properties">9 <xsl:attribute name="break-after">10 <xsl:choose>11 <xsl:when test="not(position()=last())">12 <xsl:text>page</xsl:text>13 </xsl:when>14 <xsl:otherwise>15 <xsl:text>auto</xsl:text>16 </xsl:otherwise>17 </xsl:choose>18 </xsl:attribute>19 </xsl:attribute-set>20 21 7 <!-- Header --> 22 <xsl:attribute-set name="header.content.properties">23 <xsl:attribute name="font-family">24 <xsl:value-of select="$body.fontset"/>25 </xsl:attribute>26 <xsl:attribute name="text-align">right</xsl:attribute>27 </xsl:attribute-set>28 29 8 <xsl:template name="header.content"> 30 <xsl:value-of select="/book/bookinfo/title"/> 31 <xsl:text> - </xsl:text> 32 <xsl:value-of select="/book/bookinfo/subtitle"/> 9 <xsl:param name="sequence" select="''"/> 10 <fo:block> 11 <xsl:attribute name="text-align"> 12 <xsl:choose> 13 <xsl:when test="$sequence = 'first' or $sequence = 'odd'">right</xsl:when> 14 <xsl:otherwise>left</xsl:otherwise> 15 </xsl:choose> 16 </xsl:attribute> 17 <xsl:value-of select="/book/bookinfo/title"/> 18 <xsl:text> - </xsl:text> 19 <xsl:value-of select="/book/bookinfo/subtitle"/> 20 </fo:block> 33 21 </xsl:template> 34 22 35 23 <xsl:template name="header.table"> 24 <xsl:param name="sequence" select="''"/> 36 25 <xsl:param name="gentext-key" select="''"/> 37 26 <xsl:choose> 38 <xsl:when test="$gentext-key = 'book' "/>27 <xsl:when test="$gentext-key = 'book' or $sequence = 'blank'"/> 39 28 <xsl:otherwise> 40 <xsl:call-template name="header.content"/> 29 <xsl:call-template name="header.content"> 30 <xsl:with-param name="sequence" select="$sequence"/> 31 </xsl:call-template> 41 32 </xsl:otherwise> 42 33 </xsl:choose> … … 59 50 60 51 <xsl:template name="part.titlepage"> 61 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">52 <fo:block> 62 53 <fo:block space-before="2.5in"> 63 54 <xsl:call-template name="part.titlepage.before.recto"/> … … 73 64 74 65 <!-- Margins --> 75 <xsl:param name="page.margin.inner">0. 75in</xsl:param>76 <xsl:param name="page.margin.outer">0. 75in</xsl:param>66 <xsl:param name="page.margin.inner">0.5in</xsl:param> 67 <xsl:param name="page.margin.outer">0.375in</xsl:param> 77 68 <xsl:param name="title.margin.left">-1pc</xsl:param> 78 69 <xsl:attribute-set name="normal.para.spacing"> … … 111 102 <xsl:template name="book.titlepage.separator"/> 112 103 113 <!-- How render a variablelist -->114 <xsl:param name="variablelist.as.blocks" select="1"/>115 104 116 105 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.