# 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 ; path-constant images_location : html ; xml auto_index : auto_index.qbk ; boostbook standalone : auto_index : # Path for links to Boost: boost.root=../../../.. # Path for libraries index: boost.libraries=$(boost-root)/libs/libraries.htm # 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 # 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 # No indent on body text: 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:use.role.for.mediaobject=1 pdf:preferred.mediaobject.role=print pdf:img.src.path=$(images_location)/ pdf:admon.graphics.path=$(images_location)/images/ pdf:draft.mode="no" # Choose indexing method (separately for html and pdf): html:on # on (or off) to use internally generated indexes. pdf:off # on (or off) to use internally generated indexes. : # Default build options, can be overridden on the command line. on # Turns on index (or off). # Turns on (or off) index-verbose for diagnostic info (using /bin auto-index-verbose folders). on index.on.type=1 # = 1 For the native stylesheets to generate multiple different indexes. # PDF native index support is probably better for PDFs as then you actually get page numbers. autoindex.idx # Specifies the name of the script to load for mylibrary. ; install pdf-install : standalone : PDF . auto_index.pdf ;