# Copyright John Maddock 2005. Use, modification, and distribution are # subject to the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) using quickbook ; using auto-index ; import modules ; import regex ; path-constant images_location : html ; path-constant here : . ; constant here-url : [ regex.replace $(here) "\\\\" "/" ] ; xml math : math.qbk : enable_index __base_path__=$(here-url) pdf:__build_pdf html:__build_html ; boostbook standalone : math : # Path for links to Boost: boost.root=../../../.. html.stylesheet=math.css # Some general style settings: table.footnote.number.format=1 footnote.number.format=1 # HTML options first: # Use graphics not text for navigation: navig.graphics=1 # How far down we chunk nested sections, basically all of them: chunk.section.depth=10 # Don't put the first section on the same page as the TOC: chunk.first.sections=1 # How far down sections get TOC's toc.section.depth=10 # Max depth in each TOC: toc.max.depth=4 # How far down we go with TOC's generate.section.toc.level=10 # Index on type: index.on.type=1 boost.noexpand.chapter.toc=1 #root.filename="sf_dist_and_tools" #graphicsize.extension=1 #use.extensions=1 # PDF Options: # TOC Generation: this is needed for FOP-0.9 and later: fop1.extensions=0 pdf:xep.extensions=1 # TOC generation: this is needed for FOP 0.2, but must not be set to zero for FOP-0.9! pdf:fop.extensions=0 pdf:fop1.extensions=0 # No indent on body text: #pdf:body.start.indent=15px indents ALL the text relative to the title :-(. pdf:body.start.indent=0pt # Margin size: pdf:page.margin.inner=0.5in # Margin size: pdf:page.margin.outer=0.5in # Paper type = A4 pdf:paper.type=A4 # Yes, we want graphics for admonishments: admon.graphics=1 # Set this one for PDF generation *only*: # default pnd graphics are awful in PDF form, # better use SVG's instead: pdf:admon.graphics.extension=".svg" pdf:admon.graphics.path=$(here)/../../../doc/src/images/ pdf:use.role.for.mediaobject=1 pdf:preferred.mediaobject.role=print pdf:img.src.path=$(images_location)/ pdf:draft.mode="no" pdf:boost.url.prefix=http\://www.boost.org/doc/libs/release/libs/math/doc/html on pdf:off html:on $(here)/index.idx $(here)/../../.. #on pdf:index.on.type=1 ; install pdfinstall : standalone/pdf : . PDF math.pdf ; explicit pdfinstall ; # b2 pdf pdfinstall to do this pdf file copy. install css_install : math.css : $(here)/html ; ############################################################################### alias boostdoc ; explicit boostdoc ; alias boostrelease : standalone ; explicit boostrelease ;