Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / math / doc / Jamfile.v2
index 66e7378..7174672 100644 (file)
@@ -6,11 +6,18 @@
 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 ;
+xml math : math.qbk :
+        <quickbook-define>enable_index 
+        <quickbook-define>__base_path__=$(here-url)
+        <format>pdf:<quickbook-define>__build_pdf
+        <format>html:<quickbook-define>__build_html
+;
 boostbook standalone
     :
         math
@@ -52,6 +59,7 @@ boostbook standalone
         <format>pdf:<xsl:param>fop.extensions=0
         <format>pdf:<xsl:param>fop1.extensions=0
         # No indent on body text:
+        #<format>pdf:<xsl:param>body.start.indent=15px indents ALL the text relative to the title :-(.
         <format>pdf:<xsl:param>body.start.indent=0pt
         # Margin size:
         <format>pdf:<xsl:param>page.margin.inner=0.5in
@@ -76,12 +84,13 @@ boostbook standalone
         <auto-index-script>$(here)/index.idx
         <auto-index-prefix>$(here)/../../.. 
         #<auto-index-verbose>on
-        <quickbook-define>enable_index 
         <format>pdf:<xsl:param>index.on.type=1
     ;
 
 install pdfinstall : standalone/<format>pdf : <location>. <install-type>PDF <name>math.pdf ;
-explicit pdfinstall ;
+explicit pdfinstall ; # b2 pdf pdfinstall to do this pdf file copy.
+
+install css_install : math.css : <location>$(here)/html ; 
 
 ###############################################################################
 alias boostdoc ;