• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#  Boost.cstdfloat documentation Jamfile.v2
2#
3#  Copyright Paul A. Bristow 2014.
4#  Use, modification and distribution is subject to
5#  the Boost Software License, Version 1.0.
6#  (See accompanying file LICENSE_1_0.txt or copy at
7#  http://www.boost.org/LICENSE_1_0.txt)
8
9#  boost-no-inspect
10
11# This builds a standalone version of the cstdfloat docs
12# using the same cstdfloat.qbk called from cstdfloat_header.qbk
13# The full math only uses cstdfloat.qbk.
14
15import modules ;
16
17path-constant images_location : html ;
18path-constant nav_images : html/images ;
19path-constant here : . ;
20using quickbook ;
21
22xml cstdfloat : cstdfloat_header.qbk ;
23
24using boostbook ;
25
26boostbook standalone
27   :
28      cstdfloat
29   :
30
31   # General settings
32   # =================
33   # Path for links to Boost folder, for example: boost_1_55_0 or boost-trunk, relative to folder /doc/html.
34   <xsl:param>boost.root=../../../../..
35   # Path for libraries index:
36	 <xsl:param>boost.libraries=../../../../../../libs/libraries.htm
37
38
39		# Or a local custom stylesheet:
40		#<xsl:param>html.stylesheet=boostbook.css
41		<xsl:param>html.stylesheet=boostbook.css
42
43		#<xsl:param>nav.layout=none # No navigation bar (home, prev, next).
44		# Defining creates a runtime error: Global parameter nav.layout already defined.
45		<xsl:param>nav.layout=horizontal # to get a horizontal navigation bar (you probably DO want this).
46
47		# Path for links to Boost logo.
48		#<xsl:param>boost.image=Boost # options are: none (no logo), Boost (for boost.png), or your own logo, for example, inspired_by_boost.png
49		#<xsl:param>boost.image.src=boost.png #
50		#<xsl:param>boost.image.w=180 # Width of logo in pixels. (JM has W = 162, h = 46)
51    #<xsl:param>boost.image.h=90 # Height of logo in pixels.
52
53     # Some general style settings:
54			<xsl:param>table.footnote.number.format=1
55			<xsl:param>footnote.number.format=1
56
57			# HTML options first:
58			# Use graphics not text for navigation:
59			<xsl:param>navig.graphics=1
60			# How far down we chunk nested sections, basically all of them:
61			<xsl:param>chunk.section.depth=10
62			# Don't put the first section on the same page as the TOC:
63			<xsl:param>chunk.first.sections=1
64			# How far down sections get TOC's
65			<xsl:param>toc.section.depth=10
66			# Max depth in each TOC:
67			<xsl:param>toc.max.depth=4
68			# How far down we go with TOC's
69			<xsl:param>generate.section.toc.level=10
70			# Index on type:
71			<xsl:param>index.on.type=1
72			<xsl:param>boost.noexpand.chapter.toc=1
73
74			#<xsl:param>root.filename="sf_dist_and_tools"
75			#<xsl:param>graphicsize.extension=1
76			#<xsl:param>use.extensions=1
77
78			# PDF Options:
79			# TOC Generation: this is needed for FOP-0.9 and later:
80			<xsl:param>fop1.extensions=0
81			<format>pdf:<xsl:param>xep.extensions=1
82			# TOC generation: this is needed for FOP 0.2, but must not be set to zero for FOP-0.9!
83			<format>pdf:<xsl:param>fop.extensions=0
84			<format>pdf:<xsl:param>fop1.extensions=0
85			# No indent on body text:
86			<format>pdf:<xsl:param>body.start.indent=0pt
87			# Margin size:
88			<format>pdf:<xsl:param>page.margin.inner=0.5in
89			# Margin size:
90			<format>pdf:<xsl:param>page.margin.outer=0.5in
91			# Paper type = A4
92			<format>pdf:<xsl:param>paper.type=A4
93			# Yes, we want graphics for admonishments:
94			<xsl:param>admon.graphics=1
95			# Set this one for PDF generation *only*:
96			# default pnd graphics are awful in PDF form,
97			# better use SVG's instead:
98			<format>pdf:<xsl:param>admon.graphics.extension=".svg"
99			<format>pdf:<xsl:param>use.role.for.mediaobject=1
100			<format>pdf:<xsl:param>preferred.mediaobject.role=print
101			<format>pdf:<xsl:param>img.src.path=$(images_location)/
102			<format>pdf:<xsl:param>draft.mode="no"
103			<format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/libs/math/doc/html
104			<format>pdf:<xsl:param>index.on.type=1
105    ;
106
107
108install pdf-install : standalone : <install-type>PDF <location>. <name>cstdfloat.pdf ;
109
110