source: stylesheets/pdf/lfs-pagesetup.xsl@ 9d332fc9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9d332fc9 was 276015d2, checked in by Randy McMurchy <randy@…>, 18 years ago

Added the LastChangedBy and Date keywords then set the corresponding keyword property on each file in the repo

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