Changeset a9e89d0 for stylesheets/pdf
- Timestamp:
- 05/19/2004 08:16:58 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.0, 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:
- 8df9f63
- Parents:
- 28501c7
- Location:
- stylesheets/pdf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/pdf/lfs-index.xsl
r28501c7 ra9e89d0 13 13 version="1.0"> 14 14 15 15 <!--Only one column to fit the table layout--> 16 16 <xsl:param name="column.count.index" select="1"/> 17 17 … … 19 19 <xsl:template match="index" mode="title.markup"> 20 20 <xsl:text>Index of packages and important installed files</xsl:text> 21 21 </xsl:template> 22 22 23 23 <!-- Divisions--> 24 24 <xsl:template match="indexterm" mode="index-div"> 25 25 <xsl:param name="scope" select="."/> … … 52 52 <xsl:value-of select="$divtitle"/> 53 53 </xsl:otherwise> 54 54 </xsl:choose> 55 55 </xsl:with-param> 56 56 </xsl:call-template> 57 57 </xsl:if> 58 58 <fo:table table-layout="fixed" width="100%"> 59 60 61 59 <fo:table-column column-number="1" column-width="11em"/> 60 <fo:table-column column-number="2" column-width="19em"/> 61 <fo:table-column column-number="3"/> 62 62 <fo:table-body> 63 63 <xsl:apply-templates select="key('letter', $key)[&scope;] … … 67 67 <xsl:with-param name="scope" select="$scope"/> 68 68 </xsl:apply-templates> 69 69 </fo:table-body> 70 70 </fo:table> 71 71 </fo:block> … … 73 73 </xsl:template> 74 74 75 75 <!-- Dropping the separator from here --> 76 76 <xsl:template match="indexterm" mode="reference"> 77 77 <xsl:param name="scope" select="."/> 78 78 <xsl:call-template name="reference"> 79 79 <xsl:with-param name="zones" select="normalize-space(@zone)"/> 80 80 <xsl:with-param name="scope" select="$scope"/> … … 82 82 </xsl:template> 83 83 84 84 <!-- Changing the output tags and re-addind the separator--> 85 85 <xsl:template match="indexterm" mode="index-primary"> 86 86 <xsl:param name="scope" select="."/> … … 88 88 <xsl:variable name="refs" select="key('primary', $key)[&scope;]"/> 89 89 <fo:table-row> 90 91 90 <fo:table-cell> 91 <fo:block> 92 92 <xsl:value-of select="primary"/> 93 93 <xsl:text>: </xsl:text> 94 94 </fo:block> 95 95 </fo:table-cell> 96 96 <xsl:for-each select="$refs[not(see) and not(seealso) … … 100 100 </xsl:apply-templates> 101 101 </xsl:for-each> 102 103 102 </fo:table-row> 103 <xsl:if test="$refs/secondary"> 104 104 <xsl:apply-templates select="$refs[secondary and count(.|key('secondary', 105 106 107 108 109 105 concat($key, &sep;, &secondary;))[&scope;][1]) = 1]" mode="index-secondary"> 106 <xsl:with-param name="scope" select="$scope"/> 107 <xsl:sort select="translate(&secondary;, &lowercase;, &uppercase;)"/> 108 </xsl:apply-templates> 109 </xsl:if> 110 110 </xsl:template> 111 111 112 112 <xsl:template match="indexterm" mode="index-secondary"> 113 113 <xsl:param name="scope" select="."/> 114 114 <xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;)"/> 115 115 <xsl:variable name="refs" select="key('secondary', $key)[&scope;]"/> 116 116 <fo:table-row> 117 118 117 <fo:table-cell> 118 <fo:block start-indent="1pc"> 119 119 <xsl:value-of select="secondary"/> 120 120 <xsl:text>: </xsl:text> 121 121 </fo:block> 122 122 </fo:table-cell> 123 123 <xsl:for-each select="$refs[not(see) and not(seealso) and not(tertiary)]"> 124 124 <xsl:apply-templates select="." mode="reference"> … … 126 126 </xsl:apply-templates> 127 127 </xsl:for-each> 128 128 </fo:table-row> 129 129 </xsl:template> 130 130 131 131 <!-- Targets titles and bookmarks--> 132 132 <xsl:template name="reference"> 133 133 <xsl:param name="scope" select="."/> … … 150 150 </xsl:variable> 151 151 <fo:table-cell> 152 152 <fo:block> 153 153 <fo:basic-link internal-destination="{$id}"> 154 154 <xsl:value-of select="$target/title"/> … … 157 157 </xsl:apply-templates> 158 158 </fo:basic-link> 159 160 159 </fo:block> 160 </fo:table-cell> 161 161 <fo:table-cell> 162 162 <fo:block> 163 163 <fo:basic-link internal-destination="{$id2}"> 164 164 <xsl:text>description</xsl:text> … … 167 167 </xsl:apply-templates> 168 168 </fo:basic-link> 169 170 169 </fo:block> 170 </fo:table-cell> 171 171 </xsl:when> 172 172 <xsl:otherwise> … … 179 179 </xsl:variable> 180 180 <fo:table-cell> 181 181 <fo:block> 182 182 <fo:basic-link internal-destination="{$id}"> 183 183 <xsl:value-of select="$target/title"/> … … 186 186 </xsl:apply-templates> 187 187 </fo:basic-link> 188 189 188 </fo:block> 189 </fo:table-cell> 190 190 </xsl:otherwise> 191 191 </xsl:choose> -
stylesheets/pdf/lfs-pagesetup.xsl
r28501c7 ra9e89d0 5 5 version="1.0"> 6 6 7 7 <!-- Force section1's onto a new page --> 8 8 <xsl:attribute-set name="section.level1.properties"> 9 10 11 12 13 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 14 <xsl:otherwise> 15 15 <xsl:text>auto</xsl:text> 16 16 </xsl:otherwise> 17 17 </xsl:choose> … … 19 19 </xsl:attribute-set> 20 20 21 21 <!-- Header --> 22 22 <xsl:attribute-set name="header.content.properties"> 23 23 <xsl:attribute name="font-family"> … … 38 38 <xsl:when test="$gentext-key = 'book'"/> 39 39 <xsl:otherwise> 40 40 <xsl:call-template name="header.content"/> 41 41 </xsl:otherwise> 42 42 </xsl:choose> 43 43 </xsl:template> 44 44 45 45 <!-- Centered titles for book and part --> 46 46 <xsl:template name="book.titlepage"> 47 47 <fo:block space-before="2in"> … … 72 72 </xsl:template> 73 73 74 74 <!-- Margins --> 75 75 <xsl:param name="page.margin.inner">0.75in</xsl:param> 76 76 <xsl:param name="page.margin.outer">0.75in</xsl:param> … … 103 103 </xsl:attribute-set> 104 104 105 105 <!-- Others--> 106 106 <xsl:param name="header.rule" select="0"></xsl:param> 107 107 <xsl:param name="footer.rule" select="0"></xsl:param> 108 108 <xsl:param name="marker.section.level" select="-1"></xsl:param> 109 109 110 111 110 <!-- Dropping a blank page --> 111 <xsl:template name="book.titlepage.separator"/> 112 112 113 114 113 <!-- How render a variablelist --> 114 <xsl:param name="variablelist.as.blocks" select="1"/> 115 115 116 116 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.