-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprint-stylesheet.xsl
94 lines (74 loc) · 3.22 KB
/
print-stylesheet.xsl
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
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version='1.0'>
<xsl:import href="fo-stylesheet.xsl"/>
<!-- Page related Settings -->
<xsl:param name="double.sided">1</xsl:param>
<xsl:param name="paper.type">A4</xsl:param>
<!--
<xsl:param name="page.margin.top">1in</xsl:param>
<xsl:param name="page.margin.bottom">1in</xsl:param>
<xsl:param name="page.margin.outer">1in</xsl:param>
<xsl:param name="page.margin.inner">1in</xsl:param>
-->
<!-- Van de Graaf:
-->
<xsl:param name="page.margin.top">16.5mm</xsl:param>
<xsl:param name="page.margin.bottom">33mm</xsl:param>
<xsl:param name="body.margin.top">16.5mm</xsl:param>
<xsl:param name="body.margin.bottom">33mm</xsl:param>
<xsl:param name="region.before.extent">16.6mm</xsl:param>
<xsl:param name="region.after.extent">33mm</xsl:param>
<xsl:param name="page.margin.inner">23mm</xsl:param>
<xsl:param name="page.margin.outer">47mm</xsl:param>
<xsl:param name="section.margin.bottom">2em</xsl:param>
<!-- Custom font settings
<xsl:template match="link">
<xsl:text>[</xsl:text>
<xsl:call-template name="inline.boldseq"/>
<xsl:text>]</xsl:text>
</xsl:template>
-->
<xsl:param name="callout.unicode">1</xsl:param>
<xsl:param name="callout.graphics">0</xsl:param>
<xsl:param name="title.font.family">sans-serif,SimHei</xsl:param>
<xsl:param name="body.font.family">serif,SimSun</xsl:param>
<xsl:param name="sans.font.family">sans-serif,SimHei</xsl:param>
<xsl:param name="dingbat.font.family">serif,SimSun</xsl:param>
<xsl:param name="monospace.font.family">monospace,FangSong,SimSun</xsl:param>
<xsl:attribute-set name="part.properties">
<xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-width">.1mm</xsl:attribute>
<xsl:attribute name="background-color">#EEEEEE</xsl:attribute>
</xsl:attribute-set>
<!-- Admonitions and callouts settings
<xsl:param name="admon.textlabel" select="0" />
<xsl:param name="admon.graphics" select="1" />
<xsl:param name="admon.graphics.path">images/</xsl:param>
<xsl:param name="admon.graphics.extension">.png</xsl:param>
<xsl:param name="callout.graphics" select="1" />
<xsl:param name="callout.graphics.extension">.png</xsl:param>
<xsl:param name="variablelist.as.blocks" select="1" />
-->
<!-- Uncomment this to enable auto-numbering of sections -->
<!-- xsl:param name="section.autolabel" select="1" / -->
<!-- Breaking long lines
<xsl:param name="hyphenate.verbatim">0</xsl:param>
<xsl:attribute-set name="monospace.verbatim.properties"
use-attribute-sets="verbatim.properties monospace.properties">
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
<xsl:attribute name="hyphenation-character">►</xsl:attribute>
</xsl:attribute-set>
-->
<!-- Colourize links in output -->
<xsl:attribute-set name="xref.properties">
<xsl:attribute name="color">black</xsl:attribute>
</xsl:attribute-set>
<!--
<xsl:attribute-set name="sidebar.properties" use-attribute-sets="formal.object.properties">
<xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-width">.1mm</xsl:attribute>
<xsl:attribute name="background-color">#EEEEEE</xsl:attribute>
</xsl:attribute-set>
-->
</xsl:stylesheet>