Lines Matching +full:copy +full:- +full:item

1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- sgml -*- -->
6 <xsl:import href="bz-common.xsl"/>
8 <!-- set indent = yes while debugging, then change to NO -->
11 <!-- ensure only passivetex extensions are on -->
13 <!-- fo extensions: PDF bookmarks and index terms -->
21 <!-- ensure we are using single sided -->
24 <!-- insert cross references to page numbers -->
27 <!-- <?custom-pagebreak?> inserts a page break at this point -->
28 <xsl:template match="processing-instruction('custom-pagebreak')">
29 <fo:block break-before='page'/>
32 <!-- show links in color -->
33 <xsl:attribute-set name="xref.properties">
35 </xsl:attribute-set>
37 <!-- make pre listings indented a bit + a bg colour -->
39 <fo:block start-indent="0.25in" wrap-option="no-wrap"
40 white-space-collapse="false" text-align="start"
41 font-family="monospace" background-color="#f2f2f9"
42 linefeed-treatment="preserve"
43 xsl:use-attribute-sets="normal.para.spacing">
44 <xsl:apply-templates/>
47 <!-- make verbatim output prettier -->
49 <fo:block start-indent="0.25in" wrap-option="no-wrap"
50 white-space-collapse="false" text-align="start"
51 font-family="monospace" background-color="#edf7f4"
52 linefeed-treatment="preserve"
53 space-before="0em" space-after="0em">
54 <xsl:apply-templates/>
58 <!-- workaround bug in passivetex fo output for itemizedlist -->
61 <xsl:call-template name="object.id"/></xsl:variable>
63 <xsl:call-template name="list.itemsymbol">
64 <xsl:with-param name="node" select="parent::itemizedlist"/>
65 </xsl:call-template>
67 <xsl:variable name="item.contents">
68 <fo:list-item-label end-indent="label-end()">
76 </fo:list-item-label>
77 <fo:list-item-body start-indent="body-start()">
78 <xsl:apply-templates/> <!-- removed extra block wrapper -->
79 </fo:list-item-body>
83 <fo:list-item id="{$id}"
84 xsl:use-attribute-sets="compact.list.item.spacing">
85 <xsl:copy-of select="$item.contents"/>
86 </fo:list-item>
89 <fo:list-item id="{$id}" xsl:use-attribute-sets="list.item.spacing">
90 <xsl:copy-of select="$item.contents"/>
91 </fo:list-item>
96 <!-- workaround bug in passivetex fo output for orderedlist -->
99 <xsl:call-template name="object.id"/></xsl:variable>
100 <xsl:variable name="item.contents">
101 <fo:list-item-label end-indent="label-end()">
103 <xsl:apply-templates select="." mode="item-number"/>
105 </fo:list-item-label>
106 <fo:list-item-body start-indent="body-start()">
107 <xsl:apply-templates/> <!-- removed extra block wrapper -->
108 </fo:list-item-body>
112 <fo:list-item id="{$id}"
113 xsl:use-attribute-sets="compact.list.item.spacing">
114 <xsl:copy-of select="$item.contents"/>
115 </fo:list-item>
118 <fo:list-item id="{$id}" xsl:use-attribute-sets="list.item.spacing">
119 <xsl:copy-of select="$item.contents"/>
120 </fo:list-item>
125 <!-- workaround bug in passivetex fo output for variablelist -->
129 <xsl:call-template name="object.id"/></xsl:variable>
130 <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing"
131 keep-together.within-column="always"
132 keep-with-next.within-column="always">
133 <xsl:apply-templates select="term"/>
135 <fo:block start-indent="0.5in" end-indent="0in"
136 space-after.minimum="0.2em"
137 space-after.optimum="0.4em"
138 space-after.maximum="0.6em">
140 <xsl:apply-templates select="listitem"/>
146 <!-- workaround bug in footers: force right-align w/two 80|30 cols -->
150 <xsl:param name="gentext-key" select="''"/>
153 <xsl:attribute name="margin-left">0pt</xsl:attribute>
157 <fo:table table-layout="fixed" width="100%">
158 <fo:table-column column-number="1" column-width="80%"/>
159 <fo:table-column column-number="2" column-width="20%"/>
160 <fo:table-body>
161 <fo:table-row height="14pt">
162 <fo:table-cell text-align="left" display-align="after">
163 <xsl:attribute name="relative-align">baseline</xsl:attribute>
165 <fo:block> </fo:block><!-- empty cell -->
167 </fo:table-cell>
168 <fo:table-cell text-align="center" display-align="after">
169 <xsl:attribute name="relative-align">baseline</xsl:attribute>
171 <xsl:call-template name="footer.content">
172 <xsl:with-param name="pageclass" select="$pageclass"/>
173 <xsl:with-param name="sequence" select="$sequence"/>
174 <xsl:with-param name="position" select="'center'"/>
175 <xsl:with-param name="gentext-key" select="$gentext-key"/>
176 </xsl:call-template>
178 </fo:table-cell>
179 </fo:table-row>
180 </fo:table-body>
183 <!-- Really output a footer? -->
185 <xsl:when test="$pageclass='titlepage' and $gentext-key='book'
187 <!-- no, book titlepages have no footers at all -->
190 <!-- no output -->
193 <xsl:copy-of select="$candidate"/>
199 <!-- fix bug in headers: force right-align w/two 40|60 cols -->
203 <xsl:param name="gentext-key" select="''"/>
206 <xsl:attribute name="margin-left">0pt</xsl:attribute>
210 <fo:table table-layout="fixed" width="100%">
211 <xsl:call-template name="head.sep.rule">
212 <xsl:with-param name="pageclass" select="$pageclass"/>
213 <xsl:with-param name="sequence" select="$sequence"/>
214 <xsl:with-param name="gentext-key" select="$gentext-key"/>
215 </xsl:call-template>
216 <fo:table-column column-number="1" column-width="40%"/>
217 <fo:table-column column-number="2" column-width="60%"/>
218 <fo:table-body>
219 <fo:table-row height="14pt">
220 <fo:table-cell text-align="left" display-align="before">
221 <xsl:attribute name="relative-align">baseline</xsl:attribute>
223 <fo:block> </fo:block><!-- empty cell -->
225 </fo:table-cell>
226 <fo:table-cell text-align="center" display-align="before">
227 <xsl:attribute name="relative-align">baseline</xsl:attribute>
229 <xsl:call-template name="header.content">
230 <xsl:with-param name="pageclass" select="$pageclass"/>
231 <xsl:with-param name="sequence" select="$sequence"/>
232 <xsl:with-param name="position" select="'center'"/>
233 <xsl:with-param name="gentext-key" select="$gentext-key"/>
234 </xsl:call-template>
236 </fo:table-cell>
237 </fo:table-row>
238 </fo:table-body>
241 <!-- Really output a header? -->
243 <xsl:when test="$pageclass = 'titlepage' and $gentext-key = 'book'
245 <!-- no, book titlepages have no headers at all -->
248 <!-- no output -->
251 <xsl:copy-of select="$candidate"/>
257 <!-- Bug-fix for Suse 10 PassiveTex version -->
258 <!-- Precompute attribute values 'cos PassiveTex is too stupid: -->
259 <xsl:attribute-set name="component.title.properties">
260 <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
261 <xsl:attribute name="space-before.optimum">
262 <xsl:value-of select="concat($body.font.master, 'pt')"/>
264 <xsl:attribute name="space-before.minimum">
265 <xsl:value-of select="$body.font.master * 0.8"/>
268 <xsl:attribute name="space-before.maximum">
269 <xsl:value-of select="$body.font.master * 1.2"/>
273 </xsl:attribute-set>