Jamfile.v2 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # Copyright John Maddock 2005. Use, modification, and distribution are
  2. # subject to the Boost Software License, Version 1.0. (See accompanying
  3. # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. using quickbook ;
  5. using auto-index ;
  6. import modules ;
  7. import regex ;
  8. path-constant images_location : html ;
  9. path-constant here : . ;
  10. constant here-url : [ regex.replace $(here) "\\\\" "/" ] ;
  11. xml math : math.qbk :
  12. <quickbook-define>enable_index
  13. <quickbook-define>__base_path__=$(here-url)
  14. <format>pdf:<quickbook-define>__build_pdf
  15. <format>html:<quickbook-define>__build_html
  16. ;
  17. boostbook standalone
  18. :
  19. math
  20. :
  21. # Path for links to Boost:
  22. <xsl:param>boost.root=../../../..
  23. <xsl:param>html.stylesheet=math.css
  24. # Some general style settings:
  25. <xsl:param>table.footnote.number.format=1
  26. <xsl:param>footnote.number.format=1
  27. # HTML options first:
  28. # Use graphics not text for navigation:
  29. <xsl:param>navig.graphics=1
  30. # How far down we chunk nested sections, basically all of them:
  31. <xsl:param>chunk.section.depth=10
  32. # Don't put the first section on the same page as the TOC:
  33. <xsl:param>chunk.first.sections=1
  34. # How far down sections get TOC's
  35. <xsl:param>toc.section.depth=10
  36. # Max depth in each TOC:
  37. <xsl:param>toc.max.depth=4
  38. # How far down we go with TOC's
  39. <xsl:param>generate.section.toc.level=10
  40. # Index on type:
  41. <xsl:param>index.on.type=1
  42. <xsl:param>boost.noexpand.chapter.toc=1
  43. #<xsl:param>root.filename="sf_dist_and_tools"
  44. #<xsl:param>graphicsize.extension=1
  45. #<xsl:param>use.extensions=1
  46. # PDF Options:
  47. # TOC Generation: this is needed for FOP-0.9 and later:
  48. <xsl:param>fop1.extensions=0
  49. <format>pdf:<xsl:param>xep.extensions=1
  50. # TOC generation: this is needed for FOP 0.2, but must not be set to zero for FOP-0.9!
  51. <format>pdf:<xsl:param>fop.extensions=0
  52. <format>pdf:<xsl:param>fop1.extensions=0
  53. # No indent on body text:
  54. #<format>pdf:<xsl:param>body.start.indent=15px indents ALL the text relative to the title :-(.
  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>admon.graphics.path=$(here)/../../../doc/src/images/
  69. <format>pdf:<xsl:param>use.role.for.mediaobject=1
  70. <format>pdf:<xsl:param>preferred.mediaobject.role=print
  71. <format>pdf:<xsl:param>img.src.path=$(images_location)/
  72. <format>pdf:<xsl:param>draft.mode="no"
  73. <format>pdf:<xsl:param>boost.url.prefix=http\://www.boost.org/doc/libs/release/libs/math/doc/html
  74. <auto-index>on <format>pdf:<auto-index-internal>off
  75. <format>html:<auto-index-internal>on
  76. <auto-index-script>$(here)/index.idx
  77. <auto-index-prefix>$(here)/../../..
  78. #<auto-index-verbose>on
  79. <format>pdf:<xsl:param>index.on.type=1
  80. ;
  81. install pdfinstall : standalone/<format>pdf : <location>. <install-type>PDF <name>math.pdf ;
  82. explicit pdfinstall ; # b2 pdf pdfinstall to do this pdf file copy.
  83. install css_install : math.css : <location>$(here)/html ;
  84. ###############################################################################
  85. alias boostdoc ;
  86. explicit boostdoc ;
  87. alias boostrelease : standalone ;
  88. explicit boostrelease ;