source: stylesheets/pdf/lfs-pagesetup.xsl@ af7b097

10.0 10.1 11.0 6.0 6.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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since af7b097 was af7b097, checked in by Randy McMurchy <randy@…>, 17 years ago

Updated to Manuel's newest PDF stylesheets; updated Glossary

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3227 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.6 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:fo="http://www.w3.org/1999/XSL/Format"
5 version="1.0">
6
7 <!-- Header -->
8 <xsl:template name="header.content">
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:text>Beyond Linux From Scratch - </xsl:text>
18 <xsl:value-of select="/book/bookinfo/subtitle"/>
19 </fo:block>
20 </xsl:template>
21
22 <xsl:template name="header.table">
23 <xsl:param name="sequence" select="''"/>
24 <xsl:param name="gentext-key" select="''"/>
25 <xsl:choose>
26 <xsl:when test="$gentext-key = 'book' or $sequence = 'blank'"/>
27 <xsl:otherwise>
28 <xsl:call-template name="header.content">
29 <xsl:with-param name="sequence" select="$sequence"/>
30 </xsl:call-template>
31 </xsl:otherwise>
32 </xsl:choose>
33 </xsl:template>
34
35 <!-- Centered titles for book and part -->
36 <xsl:template name="book.titlepage">
37 <fo:block space-before="2in">
38 <fo:block>
39 <xsl:call-template name="book.titlepage.before.recto"/>
40 <xsl:call-template name="book.titlepage.recto"/>
41 </fo:block>
42 <fo:block>
43 <xsl:call-template name="book.titlepage.before.verso"/>
44 <xsl:call-template name="book.titlepage.verso"/>
45 </fo:block>
46 <xsl:call-template name="book.titlepage.separator"/>
47 </fo:block>
48 </xsl:template>
49
50 <xsl:template name="part.titlepage">
51 <fo:block>
52 <fo:block space-before="2.5in">
53 <xsl:call-template name="part.titlepage.before.recto"/>
54 <xsl:call-template name="part.titlepage.recto"/>
55 </fo:block>
56 <fo:block>
57 <xsl:call-template name="part.titlepage.before.verso"/>
58 <xsl:call-template name="part.titlepage.verso"/>
59 </fo:block>
60 <xsl:call-template name="part.titlepage.separator"/>
61 </fo:block>
62 </xsl:template>
63
64 <!-- Font size for chapter title. -->
65 <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
66 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
67 xsl:use-attribute-sets="chapter.titlepage.recto.style"
68 font-size="21pt" font-weight="bold" text-align="left">
69 <xsl:call-template name="component.title">
70 <xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/>
71 </xsl:call-template>
72 </fo:block>
73 </xsl:template>
74
75 <!-- Margins -->
76 <xsl:param name="page.margin.inner">0.5in</xsl:param>
77 <xsl:param name="page.margin.outer">0.375in</xsl:param>
78 <xsl:param name="title.margin.left">-0.7pc</xsl:param>
79 <xsl:attribute-set name="normal.para.spacing">
80 <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
81 <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
82 <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
83 </xsl:attribute-set>
84 <xsl:attribute-set name="list.block.spacing">
85 <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
86 <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
87 <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
88 <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
89 <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
90 <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
91 </xsl:attribute-set>
92 <xsl:attribute-set name="list.item.spacing">
93 <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
94 <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
95 <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
96 </xsl:attribute-set>
97 <xsl:attribute-set name="verbatim.properties">
98 <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
99 <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
100 <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
101 <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
102 <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
103 <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
104 </xsl:attribute-set>
105
106 <!-- Others-->
107 <xsl:param name="header.rule" select="0"></xsl:param>
108 <xsl:param name="footer.rule" select="0"></xsl:param>
109 <xsl:param name="marker.section.level" select="-1"></xsl:param>
110
111 <!-- Dropping a blank page -->
112 <xsl:template name="book.titlepage.separator"/>
113
114
115</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.