Changeset 3523830 for stylesheets
- Timestamp:
- 08/20/2005 08:58:43 PM (19 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- b74eff5a
- Parents:
- b26564ea
- Location:
- stylesheets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/blfs-pdf.xsl
rb26564ea r3523830 5 5 version="1.0"> 6 6 7 7 <!-- We use FO and FOP as the processor --> 8 8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.68.1/fo/docbook.xsl"/> 9 9 <xsl:param name="fop.extensions" select="1"/> 10 10 <xsl:param name="draft.mode" select="'no'"/> 11 11 12 12 <!-- Including our others customized templates --> 13 13 <xsl:include href="pdf/lfs-admon.xsl"/> 14 14 <xsl:include href="pdf/lfs-index.xsl"/> … … 21 21 <xsl:param name="local.l10n.xml" select="document('blfs-l10n.xml')"/> 22 22 23 23 <!-- Probably want to make the paper size configurable --> 24 24 <xsl:param name="paper.type" select="'letter'"/> 25 25 26 26 <!-- Printing Style --> 27 <xsl:param name="double.sided" select=" 1"/>27 <xsl:param name="double.sided" select="0"/> 28 28 <xsl:param name="hyphenate">false</xsl:param> 29 29 <xsl:param name="alignment">justify</xsl:param> 30 30 31 31 <!-- Font size --> 32 32 <xsl:param name="body.font.master">9</xsl:param> 33 33 <xsl:param name="body.font.size">12pt</xsl:param> 34 34 35 35 <!-- TOC generation --> 36 36 <xsl:param name="generate.toc"> 37 37 book toc -
stylesheets/pdf/lfs-mixed.xsl
rb26564ea r3523830 6 6 7 7 8 <!-- This is a hack and isn't correct semantically. Theoretically, the beginpage 9 tags should be placed in the XML source only to render the PDF output and 8 <!-- This is a hack and isn't correct semantically. Theoretically, the beginpage 9 tags should be placed in the XML source only to render the PDF output and 10 10 should be removed after it. But there is no a better way and we need this.--> 11 11 <xsl:template match="beginpage"> … … 139 139 <xsl:param name="variablelist.max.termlength">32</xsl:param> 140 140 141 <!-- Adding space before segmentedlist-->141 <!-- Making the same look that in the XHTML output. --> 142 142 <xsl:template match="segmentedlist"> 143 143 <!--<xsl:variable name="presentation"> … … 162 162 </xsl:when> 163 163 <xsl:otherwise>--> 164 <fo:block space-before.minimum="0.4em" space-before.optimum="0.6em" 165 space-before.maximum="0.8em"> 166 <xsl:apply-templates/> 167 </fo:block> 164 <fo:list-block provisional-distance-between-starts="11em" 165 provisional-label-separation="1em" 166 xsl:use-attribute-sets="list.block.spacing"> 167 <xsl:apply-templates/> 168 </fo:list-block> 168 169 <!--</xsl:otherwise> 169 170 </xsl:choose>--> 171 </xsl:template> 172 173 <xsl:template match="seglistitem"> 174 <xsl:apply-templates/> 175 </xsl:template> 176 177 <xsl:template match="seg"> 178 <xsl:variable name="segnum" select="count(preceding-sibling::seg)+1"/> 179 <xsl:variable name="seglist" select="ancestor::segmentedlist"/> 180 <xsl:variable name="segtitles" select="$seglist/segtitle"/> 181 <!-- Note: segtitle is only going to be the right thing in a well formed 182 SegmentedList. If there are too many Segs or too few SegTitles, 183 you'll get something odd...maybe an error --> 184 <fo:list-item xsl:use-attribute-sets="list.item.spacing"> 185 <fo:list-item-label end-indent="label-end()" text-align="start"> 186 <fo:block> 187 <fo:inline font-weight="bold"> 188 <xsl:apply-templates select="$segtitles[$segnum=position()]" 189 mode="segtitle-in-seg"/> 190 <xsl:text>: </xsl:text> 191 </fo:inline> 192 </fo:block> 193 </fo:list-item-label> 194 <fo:list-item-body start-indent="body-start()"> 195 <fo:block text-align="left"> 196 <xsl:apply-templates/> 197 </fo:block> 198 </fo:list-item-body> 199 </fo:list-item> 170 200 </xsl:template> 171 201
Note:
See TracChangeset
for help on using the changeset viewer.