| 1 | <?xml version='1.0' ?>
|
|---|
| 2 | <!-- ******************************************************************** -->
|
|---|
| 3 | <!-- FO Customization Layer of Docbook XSL -->
|
|---|
| 4 | <!-- ******************************************************************** -->
|
|---|
| 5 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
|
|---|
| 6 | xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 10 | <!-- Import the FO stylesheet -->
|
|---|
| 11 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 12 | <xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl" />
|
|---|
| 13 |
|
|---|
| 14 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 15 | <!-- Include the file which specifies common DocBook XSL parameters. -->
|
|---|
| 16 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 17 | <xsl:include href="./G4XSLCommon.xsl" />
|
|---|
| 18 |
|
|---|
| 19 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 20 | <!-- Include the file which specifies the customized title page. -->
|
|---|
| 21 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 22 | <xsl:include href="./G4BookTitlePageFO.xsl" />
|
|---|
| 23 |
|
|---|
| 24 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 25 | <!-- Define useful processing instructions for FO -->
|
|---|
| 26 | <!-- [Usage] <? PI-name ?> -->
|
|---|
| 27 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 28 |
|
|---|
| 29 | <!-- Hard pagebreak -->
|
|---|
| 30 | <xsl:template match="processing-instruction('hard-pagebreak')">
|
|---|
| 31 | <fo:block break-before='page' />
|
|---|
| 32 | </xsl:template>
|
|---|
| 33 |
|
|---|
| 34 | <!-- Soft pagebreak -->
|
|---|
| 35 | <xsl:template match="processing-instruction('soft-pagebreak')">
|
|---|
| 36 | <fo:block-container width="100%" height="3.0cm">
|
|---|
| 37 | <fo:block />
|
|---|
| 38 | </fo:block-container>
|
|---|
| 39 | <fo:block space-before="-3.0cm" />
|
|---|
| 40 | </xsl:template>
|
|---|
| 41 |
|
|---|
| 42 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 43 | <!-- Page layout -->
|
|---|
| 44 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 45 |
|
|---|
| 46 | <!-- Paper size -->
|
|---|
| 47 | <xsl:param name="paper.type">A4</xsl:param>
|
|---|
| 48 |
|
|---|
| 49 | <!-- Indentation of body text -->
|
|---|
| 50 | <xsl:param name="body.start.indent">0pt</xsl:param>
|
|---|
| 51 |
|
|---|
| 52 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 53 | <!-- Global style for appearance of 'Title' in the major tags including -->
|
|---|
| 54 | <!-- chapter, appendix, bibliography, index, etc -->
|
|---|
| 55 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 56 | <xsl:attribute-set name="component.title.properties">
|
|---|
| 57 | <xsl:attribute name="font-weight">bold</xsl:attribute>
|
|---|
| 58 | <xsl:attribute name="font-size">
|
|---|
| 59 | <xsl:value-of select="$body.font.master * 2.0"/>
|
|---|
| 60 | <xsl:text>pt</xsl:text>
|
|---|
| 61 | </xsl:attribute>
|
|---|
| 62 | </xsl:attribute-set>
|
|---|
| 63 |
|
|---|
| 64 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 65 | <!-- Style for appearance of 'Title' in various section level -->
|
|---|
| 66 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 67 | <xsl:attribute-set name="section.title.level1.properties">
|
|---|
| 68 | <xsl:attribute name="font-size">
|
|---|
| 69 | <xsl:value-of select="$body.font.master * 1.8"/>
|
|---|
| 70 | <xsl:text>pt</xsl:text>
|
|---|
| 71 | </xsl:attribute>
|
|---|
| 72 | </xsl:attribute-set>
|
|---|
| 73 |
|
|---|
| 74 | <xsl:attribute-set name="section.title.level2.properties">
|
|---|
| 75 | <xsl:attribute name="font-size">
|
|---|
| 76 | <xsl:value-of select="$body.font.master * 1.6"/>
|
|---|
| 77 | <xsl:text>pt</xsl:text>
|
|---|
| 78 | </xsl:attribute>
|
|---|
| 79 | </xsl:attribute-set>
|
|---|
| 80 |
|
|---|
| 81 | <xsl:attribute-set name="section.title.level3.properties">
|
|---|
| 82 | <xsl:attribute name="font-size">
|
|---|
| 83 | <xsl:value-of select="$body.font.master * 1.4"/>
|
|---|
| 84 | <xsl:text>pt</xsl:text>
|
|---|
| 85 | </xsl:attribute>
|
|---|
| 86 | </xsl:attribute-set>
|
|---|
| 87 |
|
|---|
| 88 | <xsl:attribute-set name="section.title.level4.properties">
|
|---|
| 89 | <xsl:attribute name="font-size">
|
|---|
| 90 | <xsl:value-of select="$body.font.master * 1.2"/>
|
|---|
| 91 | <xsl:text>pt</xsl:text>
|
|---|
| 92 | </xsl:attribute>
|
|---|
| 93 | </xsl:attribute-set>
|
|---|
| 94 |
|
|---|
| 95 | <xsl:attribute-set name="section.title.level5.properties">
|
|---|
| 96 | <xsl:attribute name="font-size">
|
|---|
| 97 | <xsl:value-of select="$body.font.master * 1.0"/>
|
|---|
| 98 | <xsl:text>pt</xsl:text>
|
|---|
| 99 | </xsl:attribute>
|
|---|
| 100 | </xsl:attribute-set>
|
|---|
| 101 |
|
|---|
| 102 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 103 | <!-- Style for appearance of 'Title' in figure, table, example, etc -->
|
|---|
| 104 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 105 | <xsl:attribute-set name="formal.title.properties">
|
|---|
| 106 | <xsl:attribute name="font-weight">bold</xsl:attribute>
|
|---|
| 107 | <xsl:attribute name="font-size">12pt</xsl:attribute>
|
|---|
| 108 | <xsl:attribute name="hyphenate">false</xsl:attribute>
|
|---|
| 109 | <xsl:attribute name="space-before.minimum">0.3mm</xsl:attribute>
|
|---|
| 110 | <xsl:attribute name="space-before.optimum">0.5mm</xsl:attribute>
|
|---|
| 111 | <xsl:attribute name="space-before.maximum">1.0mm</xsl:attribute>
|
|---|
| 112 | <xsl:attribute name="space-after.minimum">0pt</xsl:attribute>
|
|---|
| 113 | <xsl:attribute name="space-after.optimum">0pt</xsl:attribute>
|
|---|
| 114 | <xsl:attribute name="space-after.maximum">0pt</xsl:attribute>
|
|---|
| 115 | </xsl:attribute-set>
|
|---|
| 116 |
|
|---|
| 117 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 118 | <!-- Example and informal example style -->
|
|---|
| 119 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 120 |
|
|---|
| 121 | <xsl:attribute-set name="example.properties">
|
|---|
| 122 | <xsl:attribute name="space-before.minimum">0.5em</xsl:attribute>
|
|---|
| 123 | <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
|
|---|
| 124 | <xsl:attribute name="space-before.maximum">2em</xsl:attribute>
|
|---|
| 125 | <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute>
|
|---|
| 126 | <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
|
|---|
| 127 | <xsl:attribute name="space-after.maximum">2em</xsl:attribute>
|
|---|
| 128 | <xsl:attribute name="background-color">#DDDDDD</xsl:attribute>
|
|---|
| 129 | </xsl:attribute-set>
|
|---|
| 130 |
|
|---|
| 131 | <xsl:attribute-set name="informalexample.properties">
|
|---|
| 132 | <xsl:attribute name="space-before.minimum">0.5em</xsl:attribute>
|
|---|
| 133 | <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
|
|---|
| 134 | <xsl:attribute name="space-before.maximum">2em</xsl:attribute>
|
|---|
| 135 | <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute>
|
|---|
| 136 | <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
|
|---|
| 137 | <xsl:attribute name="space-after.maximum">2em</xsl:attribute>
|
|---|
| 138 | <xsl:attribute name="background-color">#DDDDDD</xsl:attribute>
|
|---|
| 139 | </xsl:attribute-set>
|
|---|
| 140 |
|
|---|
| 141 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 142 | <!-- Reduce the font size in verbatim environment (ex. programlisting) -->
|
|---|
| 143 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 144 | <xsl:attribute-set name="monospace.verbatim.properties">
|
|---|
| 145 | <xsl:attribute name="font-size">75%</xsl:attribute>
|
|---|
| 146 | </xsl:attribute-set>
|
|---|
| 147 |
|
|---|
| 148 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 149 | <!-- Variablelist style -->
|
|---|
| 150 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 151 | <xsl:param name="variablelist.as.blocks">1</xsl:param>
|
|---|
| 152 |
|
|---|
| 153 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 154 | <!-- Ulink style -->
|
|---|
| 155 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 156 | <!-- xsl:param name="ulink.footnotes">1</xsl:param -->
|
|---|
| 157 | <!-- xsl:param name="ulink.hyphenate">1</xsl:param -->
|
|---|
| 158 | <xsl:param name="ulink.show">0</xsl:param>
|
|---|
| 159 |
|
|---|
| 160 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 161 | <!-- Footnote style -->
|
|---|
| 162 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|---|
| 163 | <xsl:attribute-set name="footnote.mark.properties">
|
|---|
| 164 | <xsl:attribute name="font-size">85%</xsl:attribute>
|
|---|
| 165 | <xsl:attribute name="font-weight">bold</xsl:attribute>
|
|---|
| 166 | <xsl:attribute name="font-style">italic</xsl:attribute>
|
|---|
| 167 | </xsl:attribute-set>
|
|---|
| 168 |
|
|---|
| 169 |
|
|---|
| 170 | </xsl:stylesheet>
|
|---|