Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-10-05 13:49:15


Author: johnmaddock
Date: 2007-10-05 13:49:12 EDT (Fri, 05 Oct 2007)
New Revision: 39714
URL: http://svn.boost.org/trac/boost/changeset/39714

Log:
Update Jamfiles to make PDF generation easier.
Text files modified:
   trunk/libs/config/doc/Jamfile.v2 | 6 +++++-
   trunk/libs/math/doc/Jamfile.v2 | 25 +++++++++++++++++++++++++
   trunk/libs/regex/doc/Jamfile.v2 | 11 ++++-------
   trunk/libs/type_traits/doc/Jamfile.v2 | 6 +++++-
   4 files changed, 39 insertions(+), 9 deletions(-)

Modified: trunk/libs/config/doc/Jamfile.v2
==============================================================================
--- trunk/libs/config/doc/Jamfile.v2 (original)
+++ trunk/libs/config/doc/Jamfile.v2 2007-10-05 13:49:12 EDT (Fri, 05 Oct 2007)
@@ -14,6 +14,8 @@
 
 import quickbook ;
 
+path-constant boost-images : ../../../doc/src/images ;
+
 xml config
     :
         config.qbk
@@ -49,10 +51,12 @@
         # Set this one for PDF generation *only*:
         # default pnd graphics are awful in PDF form,
         # better use SVG's instead:
- #<xsl:param>admon.graphics.extension=".svg"
+ <format>pdf:<xsl:param>admon.graphics.extension=".svg"
+ <format>pdf:<xsl:param>admon.graphics.path=$(boost-images)/
     ;
 
 
 
 
 
+

Modified: trunk/libs/math/doc/Jamfile.v2
==============================================================================
--- trunk/libs/math/doc/Jamfile.v2 (original)
+++ trunk/libs/math/doc/Jamfile.v2 2007-10-05 13:49:12 EDT (Fri, 05 Oct 2007)
@@ -5,6 +5,9 @@
 
 using quickbook ;
 
+path-constant boost-images : ../../../doc/src/images ;
+path-constant images_location : ../../../doc/html ;
+
 xml math : math.qbk ;
 boostbook standalone
     :
@@ -12,6 +15,28 @@
     :
         <xsl:param>nav.layout=none
         <xsl:param>navig.graphics=0
+ # PDF Options:
+ # TOC Generation: this is needed for FOP-0.9 and later:
+ #<xsl:param>fop1.extensions=1
+ # Or enable this if you're using XEP:
+ <xsl:param>xep.extensions=1
+ # TOC generation: this is needed for FOP 0.2, but must not be set to zero for FOP-0.9!
+ <xsl:param>fop.extensions=0
+ # No indent on body text:
+ <xsl:param>body.start.indent=0pt
+ # Margin size:
+ <xsl:param>page.margin.inner=0.5in
+ # Margin size:
+ <xsl:param>page.margin.outer=0.5in
+ # Yes, we want graphics for admonishments:
+ <xsl:param>admon.graphics=1
+ # Set this one for PDF generation *only*:
+ # default pnd graphics are awful in PDF form,
+ # better use SVG's instead:
+ <format>pdf:<xsl:param>admon.graphics.extension=".svg"
+ <format>pdf:<xsl:param>admon.graphics.path=$(boost-images)/
+ <format>pdf:<xsl:param>img.src.path=$(images_location)/
     ;
 
 
+

Modified: trunk/libs/regex/doc/Jamfile.v2
==============================================================================
--- trunk/libs/regex/doc/Jamfile.v2 (original)
+++ trunk/libs/regex/doc/Jamfile.v2 2007-10-05 13:49:12 EDT (Fri, 05 Oct 2007)
@@ -5,6 +5,8 @@
 
 using quickbook ;
 
+path-constant boost-images : ../../../doc/src/images ;
+
 xml regex : regex.qbk ;
 boostbook standalone
     :
@@ -48,13 +50,8 @@
         # Set this one for PDF generation *only*:
         # default pnd graphics are awful in PDF form,
         # better use SVG's instead:
- #<xsl:param>admon.graphics.extension=".svg"
+ <format>pdf:<xsl:param>admon.graphics.extension=".svg"
+ <format>pdf:<xsl:param>admon.graphics.path=$(boost-images)/
     ;
 
 
-
-
-
-
-
-

Modified: trunk/libs/type_traits/doc/Jamfile.v2
==============================================================================
--- trunk/libs/type_traits/doc/Jamfile.v2 (original)
+++ trunk/libs/type_traits/doc/Jamfile.v2 2007-10-05 13:49:12 EDT (Fri, 05 Oct 2007)
@@ -5,6 +5,8 @@
 
 using quickbook ;
 
+path-constant boost-images : ../../../doc/src/images ;
+
 xml type_traits : type_traits.qbk ;
 boostbook standalone
     :
@@ -54,10 +56,12 @@
         # Set this one for PDF generation *only*:
         # default pnd graphics are awful in PDF form,
         # better use SVG's instead:
- # <xsl:param>admon.graphics.extension=".svg"
+ <format>pdf:<xsl:param>admon.graphics.extension=".svg"
+ <format>pdf:<xsl:param>admon.graphics.path=$(boost-images)/
     ;
 
 #install html : ../../../doc/html/boostbook.css ;
 #install ../ : ../../../boost.png ;
 
 
+


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk