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