1
2# Copyright 2005 Daniel James.
3# Distributed under the Boost Software License, Version 1.0. (See accompanying
4# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6using boostbook ;
7using quickbook ;
8
9path-constant images_location : ../ ;
10path-constant admonishment_location : ../../../../doc/src/images ;
11
12xml unordered : unordered.qbk ;
13boostbook standalone : unordered :
14    <xsl:param>chunk.first.sections=1
15    <xsl:param>chunk.section.depth=2
16    <xsl:param>generate.section.toc.level=2
17    <xsl:param>toc.section.depth=1
18    <xsl:param>toc.max.depth=1
19
20    <xsl:param>boost.compact.typedef=0
21    <xsl:param>boost.compact.function=0
22    <xsl:param>boost.compact.enum=0
23
24    # HTML Options:
25
26    <format>html:<xsl:param>boost.root=../../../..
27    <format>html:<xsl:param>img.src.path=../../../../doc/html/
28    <format>xhtml:<xsl:param>boost.root=../../../..
29    <format>xhtml:<xsl:param>img.src.path=../../../../doc/html/
30
31    # PDF Options:
32
33    # TOC Generation: this is needed for FOP-0.9 and later:
34    <xsl:param>fop1.extensions=0
35    <format>pdf:<xsl:param>xep.extensions=1
36    # TOC generation: this is needed for FOP 0.2, but must not be set to zero for FOP-0.9!
37    <format>pdf:<xsl:param>fop.extensions=0
38    # No indent on body text:
39    <format>pdf:<xsl:param>body.start.indent=0pt
40    # Margin size:
41    <format>pdf:<xsl:param>page.margin.inner=0.5in
42    # Margin size:
43    <format>pdf:<xsl:param>page.margin.outer=0.5in
44    # Paper type = A4
45    <format>pdf:<xsl:param>paper.type=A4
46    # Yes, we want graphics for admonishments:
47    <xsl:param>admon.graphics=1
48    # Set this one for PDF generation *only*:
49    # default png graphics are awful in PDF form,
50    # better use SVG's instead:
51    <format>pdf:<xsl:param>admon.graphics.extension=".svg"
52    <format>pdf:<xsl:param>use.role.for.mediaobject=1
53    <format>pdf:<xsl:param>preferred.mediaobject.role=print
54    <format>pdf:<xsl:param>img.src.path=$(images_location)/
55    #<format>pdf:<xsl:param>admon.graphics.path=$(admonishment_location)
56    <format>pdf:<xsl:param>draft.mode="no"
57    <format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/libs/unordered/doc/html
58    ;
59
60