summaryrefslogtreecommitdiffstats
path: root/tools/user_guide_fo.xsl
blob: 0742e78034a8c451519786ee679992da256016d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- Import original style sheet: chunk.xsl (multi-page) or docbook.xsl (one page) -->

  <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/fo/docbook.xsl"/>

<!-- ******************************************************************
   -
   -  Load the common customization layer:
   -
   - ******************************************************************
   -->

	<xsl:include href="user_guide_common.xsl"/>

	<!-- xsl:include href="fo_titlepage.xsl"/ -->

<!-- ******************************************************************
   -
   -  Customization starts here:
   -
   - ******************************************************************
   -->

<!--
   - Trial: use FOP extensions. Put here the stuff to generate PDF using FOP.
   -->
<xsl:param name="fop.extensions">1</xsl:param>
<xsl:param name="xep.extensions">1</xsl:param>

<!--
   - DO NOT HYPHENATE WORD IN PDF: as hyphenation is not intelligent, it
	- can produce strange output in some cases...
   -
   -->

<xsl:param name="hyphenate">false</xsl:param>

<!--
   - Page layout: page size, paper type, margins,...
	-
  -->

<!-- A4, portrait orientation/size, single sided -->

<xsl:param name="page.orientation">portrait</xsl:param>
<xsl:param name="paper.type"      >USletter</xsl:param>
<xsl:param name="double.sided"    >0</xsl:param>

<xsl:param name="draft.mode" select="'no'"></xsl:param>

<!-- Right margin -->

<xsl:param name="page.margin.inner"  >1.5cm</xsl:param>

<!-- Left margin -->

<xsl:param name="page.margin.outer"  >1.5cm</xsl:param>

<!-- Bottom margin, extend,... -->

<xsl:param name="page.margin.bottom" >0.5cm</xsl:param>
<xsl:param name="body.margin.bottom" >2.5cm</xsl:param>
<xsl:param name="region.after.extent">1.5cm</xsl:param>

<!-- Top margin, extend,... -->

<xsl:param name="page.margin.top"     >0.5cm</xsl:param>
<xsl:param name="body.margin.top"     >2.5cm</xsl:param>
<xsl:param name="region.before.extent">1.5cm</xsl:param>

<!-- Left margin for titles -->

<xsl:param name="title.margin.left"   >-0.5cm</xsl:param>

<!--
   - Headers and footers settings:
	-
	-->

<!-- Print headers and footers on blank pages -->

<xsl:param name="headers.on.blank.pages">1</xsl:param>
<xsl:param name="footers.on.blank.pages">1</xsl:param>

<xsl:param name="variablelist.as.blocks" select="1"></xsl:param>

<!-- monospace font size set to 0.8 of master font size -->
<!-- Affects programlisting, screen etc -->

<xsl:attribute-set name="monospace.properties">
  <xsl:attribute name="font-size">
    <xsl:value-of select="$body.font.master * 0.8"/>
    <xsl:text>pt</xsl:text>
  </xsl:attribute>
  <xsl:attribute name="font-family">
    <xsl:value-of select="$monospace.font.family"/>
  </xsl:attribute>
</xsl:attribute-set>

<xsl:attribute-set name="monospace.verbatim.properties" use-attribute-sets="verbatim.properties monospace.properties">
  <xsl:attribute name="font-size">
    <xsl:value-of select="$body.font.master * 0.8"/>
    <xsl:text>pt</xsl:text>
  </xsl:attribute>
  <xsl:attribute name="text-align">start</xsl:attribute>
</xsl:attribute-set>

<xsl:attribute-set name="verbatim.properties">
  <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
  <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
  <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
  <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
  <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
  <xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
  <xsl:attribute name="font-size">
    <xsl:value-of select="$body.font.master * 0.8"/>
    <xsl:text>pt</xsl:text>
  </xsl:attribute>
</xsl:attribute-set>

</xsl:stylesheet>