source: stylesheets/pdf/lfs-pagesetup.xsl@ 4da2304

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 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/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 4da2304 was 4da2304, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Adapted the FO stylesheets to rebder properly varablelist.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3535 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.4 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
4
5<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6 xmlns:fo="http://www.w3.org/1999/XSL/Format"
7 version="1.0">
8
9 <!-- Force section1's onto a new page -->
10 <xsl:attribute-set name="section.level1.properties">
11 <xsl:attribute name="break-after">
12 <xsl:choose>
13 <xsl:when test="not(position()=last())">
14 <xsl:text>page</xsl:text>
15 </xsl:when>
16 <xsl:otherwise>
17 <xsl:text>auto</xsl:text>
18 </xsl:otherwise>
19 </xsl:choose>
20 </xsl:attribute>
21 </xsl:attribute-set>
22
23 <!-- Header -->
24 <xsl:attribute-set name="header.content.properties">
25 <xsl:attribute name="font-family">
26 <xsl:value-of select="$body.fontset"/>
27 </xsl:attribute>
28 <xsl:attribute name="text-align">right</xsl:attribute>
29 </xsl:attribute-set>
30
31 <xsl:template name="header.content">
32 <xsl:value-of select="/book/bookinfo/title"/>
33 <xsl:text> - </xsl:text>
34 <xsl:value-of select="/book/bookinfo/subtitle"/>
35 </xsl:template>
36
37 <xsl:template name="header.table">
38 <xsl:param name="gentext-key" select="''"/>
39 <xsl:choose>
40 <xsl:when test="$gentext-key = 'book'"/>
41 <xsl:otherwise>
42 <xsl:call-template name="header.content"/>
43 </xsl:otherwise>
44 </xsl:choose>
45 </xsl:template>
46
47 <!-- Centered titles for book and part -->
48 <xsl:template name="book.titlepage">
49 <fo:block space-before="2in">
50 <fo:block>
51 <xsl:call-template name="book.titlepage.before.recto"/>
52 <xsl:call-template name="book.titlepage.recto"/>
53 </fo:block>
54 <fo:block>
55 <xsl:call-template name="book.titlepage.before.verso"/>
56 <xsl:call-template name="book.titlepage.verso"/>
57 </fo:block>
58 <xsl:call-template name="book.titlepage.separator"/>
59 </fo:block>
60 </xsl:template>
61
62 <xsl:template name="part.titlepage">
63 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
64 <fo:block space-before="2.5in">
65 <xsl:call-template name="part.titlepage.before.recto"/>
66 <xsl:call-template name="part.titlepage.recto"/>
67 </fo:block>
68 <fo:block>
69 <xsl:call-template name="part.titlepage.before.verso"/>
70 <xsl:call-template name="part.titlepage.verso"/>
71 </fo:block>
72 <xsl:call-template name="part.titlepage.separator"/>
73 </fo:block>
74 </xsl:template>
75
76 <!-- Margins -->
77 <xsl:param name="page.margin.inner">0.75in</xsl:param>
78 <xsl:param name="page.margin.outer">0.75in</xsl:param>
79 <xsl:param name="title.margin.left">-1pc</xsl:param>
80 <xsl:attribute-set name="normal.para.spacing">
81 <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
82 <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
83 <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
84 </xsl:attribute-set>
85 <xsl:attribute-set name="list.block.spacing">
86 <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
87 <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
88 <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
89 <xsl:attribute name="space-after.optimum">0.8em</xsl:attribute>
90 <xsl:attribute name="space-after.minimum">0.6em</xsl:attribute>
91 <xsl:attribute name="space-after.maximum">1em</xsl:attribute>
92 </xsl:attribute-set>
93 <xsl:attribute-set name="list.item.spacing">
94 <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
95 <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
96 <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
97 </xsl:attribute-set>
98 <xsl:attribute-set name="verbatim.properties">
99 <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
100 <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
101 <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
102 <xsl:attribute name="space-after.minimum">0.6em</xsl:attribute>
103 <xsl:attribute name="space-after.optimum">0.8em</xsl:attribute>
104 <xsl:attribute name="space-after.maximum">1em</xsl:attribute>
105 </xsl:attribute-set>
106
107 <!-- Others-->
108 <xsl:param name="header.rule" select="0"></xsl:param>
109 <xsl:param name="footer.rule" select="0"></xsl:param>
110 <xsl:param name="marker.section.level" select="-1"></xsl:param>
111
112 <!-- Dropping a blank page -->
113 <xsl:template name="book.titlepage.separator"/>
114
115 <!-- How render a variablelist -->
116 <xsl:param name="variablelist.as.blocks" select="1"/>
117
118</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.