Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / math / doc / Jamfile.v2
1
2 # Copyright John Maddock 2005. Use, modification, and distribution are
3 # subject to 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
6 using quickbook ;
7 using auto-index ;
8 import modules ;
9 import regex ;
10
11 path-constant images_location : html ;
12 path-constant here : . ;
13 constant here-url : [ regex.replace $(here) "\\\\" "/" ] ;
14
15 xml math : math.qbk :
16         <quickbook-define>enable_index 
17         <quickbook-define>__base_path__=$(here-url)
18         <format>pdf:<quickbook-define>__build_pdf
19         <format>html:<quickbook-define>__build_html
20 ;
21 boostbook standalone
22     :
23         math
24     :
25         # Path for links to Boost:
26         <xsl:param>boost.root=../../../..
27         <xsl:param>html.stylesheet=math.css
28         
29         # Some general style settings:
30         <xsl:param>table.footnote.number.format=1
31         <xsl:param>footnote.number.format=1
32
33         # HTML options first:
34         # Use graphics not text for navigation:
35         <xsl:param>navig.graphics=1
36         # How far down we chunk nested sections, basically all of them:
37         <xsl:param>chunk.section.depth=10
38         # Don't put the first section on the same page as the TOC:
39         <xsl:param>chunk.first.sections=1
40         # How far down sections get TOC's
41         <xsl:param>toc.section.depth=10
42         # Max depth in each TOC:
43         <xsl:param>toc.max.depth=4
44         # How far down we go with TOC's
45         <xsl:param>generate.section.toc.level=10
46         # Index on type:
47         <xsl:param>index.on.type=1
48         <xsl:param>boost.noexpand.chapter.toc=1
49         
50         #<xsl:param>root.filename="sf_dist_and_tools"
51         #<xsl:param>graphicsize.extension=1
52         #<xsl:param>use.extensions=1
53         
54         # PDF Options:
55         # TOC Generation: this is needed for FOP-0.9 and later:
56         <xsl:param>fop1.extensions=0
57         <format>pdf:<xsl:param>xep.extensions=1
58         # TOC generation: this is needed for FOP 0.2, but must not be set to zero for FOP-0.9!
59         <format>pdf:<xsl:param>fop.extensions=0
60         <format>pdf:<xsl:param>fop1.extensions=0
61         # No indent on body text:
62         #<format>pdf:<xsl:param>body.start.indent=15px indents ALL the text relative to the title :-(.
63         <format>pdf:<xsl:param>body.start.indent=0pt
64         # Margin size:
65         <format>pdf:<xsl:param>page.margin.inner=0.5in
66         # Margin size:
67         <format>pdf:<xsl:param>page.margin.outer=0.5in
68         # Paper type = A4
69         <format>pdf:<xsl:param>paper.type=A4
70         # Yes, we want graphics for admonishments:
71         <xsl:param>admon.graphics=1
72         # Set this one for PDF generation *only*:
73         # default pnd graphics are awful in PDF form,
74         # better use SVG's instead:
75         <format>pdf:<xsl:param>admon.graphics.extension=".svg"
76         <format>pdf:<xsl:param>admon.graphics.path=$(here)/../../../doc/src/images/
77         <format>pdf:<xsl:param>use.role.for.mediaobject=1 
78         <format>pdf:<xsl:param>preferred.mediaobject.role=print
79         <format>pdf:<xsl:param>img.src.path=$(images_location)/
80         <format>pdf:<xsl:param>draft.mode="no"
81         <format>pdf:<xsl:param>boost.url.prefix=http\://www.boost.org/doc/libs/release/libs/math/doc/html
82         <auto-index>on <format>pdf:<auto-index-internal>off
83         <format>html:<auto-index-internal>on
84         <auto-index-script>$(here)/index.idx
85         <auto-index-prefix>$(here)/../../.. 
86         #<auto-index-verbose>on
87         <format>pdf:<xsl:param>index.on.type=1
88     ;
89
90 install pdfinstall : standalone/<format>pdf : <location>. <install-type>PDF <name>math.pdf ;
91 explicit pdfinstall ; # b2 pdf pdfinstall to do this pdf file copy.
92
93 install css_install : math.css : <location>$(here)/html ; 
94
95 ###############################################################################
96 alias boostdoc ;
97 explicit boostdoc ;
98 alias boostrelease : standalone ;
99 explicit boostrelease ;