Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49620 - trunk/libs/units/doc
From: john_at_[hidden]
Date: 2008-11-07 04:44:50


Author: johnmaddock
Date: 2008-11-07 04:44:49 EST (Fri, 07 Nov 2008)
New Revision: 49620
URL: http://svn.boost.org/trac/boost/changeset/49620

Log:
Add PDF generation options.
Text files modified:
   trunk/libs/units/doc/Jamfile.v2 | 31 ++++++++++++++++++++++++++++---
   1 files changed, 28 insertions(+), 3 deletions(-)

Modified: trunk/libs/units/doc/Jamfile.v2
==============================================================================
--- trunk/libs/units/doc/Jamfile.v2 (original)
+++ trunk/libs/units/doc/Jamfile.v2 2008-11-07 04:44:49 EST (Fri, 07 Nov 2008)
@@ -184,6 +184,8 @@
     <dependency>abstract_reference
 ;
 
+path-constant images_location : ../../../doc/html ;
+
 boostbook standalone
   :
     units
@@ -191,8 +193,31 @@
     <xsl:param>toc.max.depth=1
     <xsl:param>toc.section.depth=8
     <xsl:param>chunk.section.depth=8
- <xsl:param>fop1.extensions=1
- <xsl:param>fop.extensions=0
     <xsl:param>boost.root="../../../.."
     <xsl:param>html.stylesheet=../../../../doc/html/boostbook.css
- ;
+
+ # PDF Options:
+ # TOC generation: uses XEP extensions at present, change to fop1 to use Apache FOP.
+ <format>pdf:<xsl:param>xep.extensions=1
+ <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=0pt
+ # Margin size:
+ <format>pdf:<xsl:param>page.margin.inner=0.5in
+ # Margin size:
+ <format>pdf:<xsl:param>page.margin.outer=0.5in
+ # Paper type = A4
+ <format>pdf:<xsl:param>paper.type=A4
+ # 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>img.src.path=$(images_location)/
+ <format>pdf:<xsl:param>admon.graphics.path=../../../doc/src/images
+ <format>pdf:<xsl:param>draft.mode="no"
+;
+
+


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