• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version='1.0'?>
2<xsl:stylesheet
3  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4  xmlns:fo="http://www.w3.org/1999/XSL/Format"
5 version="1.0"
6>
7
8<!-- ************** FOP ************** -->
9<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
10<xsl:param name="fop1.extensions">1</xsl:param>
11<xsl:param name="sidebar.float.type">none</xsl:param>
12<xsl:param name="alignment">left</xsl:param>
13
14<!--
15Make all hyperlinks blue colored:
16-->
17<xsl:attribute-set name="xref.properties">
18  <xsl:attribute name="color">blue</xsl:attribute>
19</xsl:attribute-set>
20
21<!--
22Put a box around admonishments and keep them together:
23-->
24<xsl:attribute-set name="graphical.admonition.properties">
25  <xsl:attribute name="border-color">#FF8080</xsl:attribute>
26  <xsl:attribute name="border-width">1px</xsl:attribute>
27  <xsl:attribute name="border-style">solid</xsl:attribute>
28  <xsl:attribute name="padding-left">0.2cm</xsl:attribute>
29  <xsl:attribute name="padding-right">0.2cm</xsl:attribute>
30  <xsl:attribute name="padding-top">0.2cm</xsl:attribute>
31  <xsl:attribute name="padding-bottom">0.2cm</xsl:attribute>
32  <xsl:attribute name="keep-together.within-page">1</xsl:attribute>
33  <xsl:attribute name="margin-left">0pt</xsl:attribute>
34  <xsl:attribute name="margin-right">0pt</xsl:attribute>
35</xsl:attribute-set>
36
37<!--
38Put a box around code blocks, also set the font size
39and keep the block together if we can using the widows
40and orphans controls.  Hyphenation and line wrapping
41is also turned on, so that long lines of code don't
42bleed off the edge of the page, a carriage return
43symbol is used as the hyphenation character:
44-->
45<xsl:attribute-set name="monospace.verbatim.properties">
46  <xsl:attribute name="border-color">#DCDCDC</xsl:attribute>
47  <xsl:attribute name="border-width">1px</xsl:attribute>
48  <xsl:attribute name="border-style">solid</xsl:attribute>
49  <xsl:attribute name="padding-left">0.2cm</xsl:attribute>
50  <xsl:attribute name="padding-right">0.2cm</xsl:attribute>
51  <xsl:attribute name="padding-top">0.2cm</xsl:attribute>
52  <xsl:attribute name="padding-bottom">0.2cm</xsl:attribute>
53  <xsl:attribute name="widows">6</xsl:attribute>
54  <xsl:attribute name="orphans">40</xsl:attribute>
55  <xsl:attribute name="font-size">9pt</xsl:attribute>
56  <xsl:attribute name="margin-left">0pt</xsl:attribute>
57  <xsl:attribute name="background-color">#EEEEEE</xsl:attribute>
58  <xsl:attribute name="margin-right">0pt</xsl:attribute>
59  <!--
60  <xsl:attribute name="hyphenate">true</xsl:attribute>
61  <xsl:attribute name="wrap-option">wrap</xsl:attribute>
62  <xsl:attribute name="hyphenation-character">&#x21B5;</xsl:attribute>
63  -->
64  <xsl:attribute name="hyphenate">false</xsl:attribute>
65  <xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
66</xsl:attribute-set>
67
68<!--Regular monospace text should have the same font size as code blocks etc-->
69<xsl:attribute-set name="monospace.properties">
70  <xsl:attribute name="font-size">9pt</xsl:attribute>
71</xsl:attribute-set>
72
73<!--
74Put some small amount of padding around table cells, and keep tables
75together on one page if possible:
76-->
77<xsl:attribute-set name="table.cell.padding">
78  <xsl:attribute name="padding-left">0.2cm</xsl:attribute>
79  <xsl:attribute name="padding-right">0.2cm</xsl:attribute>
80  <xsl:attribute name="padding-top">0.2cm</xsl:attribute>
81  <xsl:attribute name="padding-bottom">0.2cm</xsl:attribute>
82</xsl:attribute-set>
83
84<!--Formal and informal tables have the same properties-->
85<xsl:param name="table.frame.border.thickness">medium</xsl:param>
86<xsl:param name="table.cell.border.thickness">medium</xsl:param>
87<xsl:param name="table.frame.border.color">#DCDCDC</xsl:param>
88<xsl:param name="table.cell.border.color">#DCDCDC</xsl:param>
89
90<!--Formal and informal tables have the same properties
91Using widow-and-orphan control here gives much better
92results for very large tables than a simple "keep-together"
93instruction
94-->
95<xsl:attribute-set name="table.properties">
96  <xsl:attribute name="keep-together.within-page">1</xsl:attribute>
97</xsl:attribute-set>
98<xsl:attribute-set name="informaltable.properties">
99  <xsl:attribute name="keep-together.within-page">1</xsl:attribute>
100</xsl:attribute-set>
101
102<!--
103General default options go here:
104* Borders are mid-grey.
105* Body text is not indented compared to the titles.
106* Page margins are a rather small 0.5in, but we need
107  all the space we can get for code blocks.
108* Paper size is A4: an ISO standard, slightly taller and narrower than US Letter.
109* Use SVG graphics for admonishments: the bitmaps look awful in PDF's.
110* Disable draft mode so we're not constantly trying to download the necessary graphic.
111* Set default image paths to pull down direct from SVN: individual Jamfiles can override this
112  and pass an absolute path to local versions of the images, but we can't get that here, so
113  we'll use SVN instead so that most things "just work".
114-->
115<xsl:param name="body.start.indent">0pt</xsl:param>
116<xsl:param name="admon.graphics">1</xsl:param>
117<xsl:param name="admon.graphics.extension">.svg</xsl:param>
118<xsl:param name="draft.mode">no</xsl:param>
119<xsl:param name="double.sided">1</xsl:param>
120<xsl:param name="show.bookmarks" select="1"></xsl:param>
121<xsl:param name="page.margin.inner">0.75in</xsl:param>
122<xsl:param name="page.margin.outer">0.50in</xsl:param>
123<xsl:param name="body.margin.top">0.50in</xsl:param>
124<xsl:param name="section.autolabel" select="1"></xsl:param>
125<xsl:param name="section.autolabel.max.depth">2</xsl:param>
126<xsl:param name="ulink.show" select="0"></xsl:param>
127<xsl:param name="admon.graphics.path">http://svn.boost.org/svn/boost/trunk/doc/src/images/</xsl:param>
128<xsl:param name="callout.graphics.path">http://svn.boost.org/svn/boost/trunk/doc/src/images/callouts/</xsl:param>
129
130<!-- ******* Table of Contents ******** -->
131<!-- How far down sections get TOC's -->
132<xsl:param name = "toc.section.depth" select="3" />
133<!-- Max depth in each TOC: -->
134<xsl:param name = "toc.max.depth" select="3" />
135<!-- How far down we go with TOC's -->
136<xsl:param name="generate.section.toc.level" select="0" />
137
138<!-- ******* Chapter Titles ******* -->
139<xsl:param name="force.blank.pages" select="1"></xsl:param>
140
141<!--
142<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
143  <l:l10n language="en">
144    <l:context name="title-numbered">
145      <l:template name="chapter" text="%n.&#160;%t"/>
146    </l:context>
147  </l:l10n>
148</l:i18n>
149-->
150
151<xsl:attribute-set name="chapter.title.properties">
152  <xsl:attribute name="font-family">
153    <xsl:value-of select="$title.font.family"/>
154  </xsl:attribute>
155  <xsl:attribute name="font-weight">bold</xsl:attribute>
156  <!-- font size is added dynamically by section.heading template -->
157  <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
158  <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
159  <xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
160  <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
161  <xsl:attribute name="text-align">left</xsl:attribute>
162  <xsl:attribute name="start-indent">0pt</xsl:attribute>
163</xsl:attribute-set>
164
165<!-- ******* Section Level 5 properties  ******* -->
166<!-- used by bridgeheads -->
167<xsl:attribute-set name="section.title.level5.properties">
168  <xsl:attribute name="font-size">
169    <xsl:value-of select="$body.font.master * 1.2"/>
170    <xsl:text>pt</xsl:text>
171  </xsl:attribute>
172</xsl:attribute-set>
173
174</xsl:stylesheet>
175