Boost logo

Boost-Commit :

From: eric_at_[hidden]
Date: 2008-01-08 12:43:35


Author: eric_niebler
Date: 2008-01-08 12:43:34 EST (Tue, 08 Jan 2008)
New Revision: 42616
URL: http://svn.boost.org/trac/boost/changeset/42616

Log:
automatically generate png files from LaTeX formulas using doxygen
Text files modified:
   trunk/libs/accumulators/doc/Jamfile.v2 | 40 ++++++++++++++++++++++++++++++++++++++++
   1 files changed, 40 insertions(+), 0 deletions(-)

Modified: trunk/libs/accumulators/doc/Jamfile.v2
==============================================================================
--- trunk/libs/accumulators/doc/Jamfile.v2 (original)
+++ trunk/libs/accumulators/doc/Jamfile.v2 2008-01-08 12:43:34 EST (Tue, 08 Jan 2008)
@@ -2,6 +2,8 @@
 # subject to the Boost Software License, Version 1.0. (See accompanying
 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
+import os ;
+import common ;
 import doxygen ;
 import quickbook ;
 
@@ -46,6 +48,42 @@
         <reftitle>"Accumulators Framework Reference"
     ;
 
+# Generate the HTML form of the stats documentation, as this
+# causes Doxygen to generate .png images for the LaTeX formulas
+# embedded in the doc comments.
+doxygen statsdoc.html
+ :
+ [ glob ../../../boost/accumulators/statistics*.hpp ]
+ [ glob ../../../boost/accumulators/statistics/*.hpp ]
+ [ glob ../../../boost/accumulators/statistics/variates/*.hpp ]
+ ;
+
+if [ os.name ] = NT
+{
+ CP = copy /y ;
+ FROM = \\..\\..\\html\\statsdoc\\*.png ;
+ TO = .\\html\\images\\accumulators ;
+}
+else
+{
+ CP = cp ;
+ FROM = /../../html/statsdoc/*.png ;
+ TO = ./html/images/accumulators ;
+}
+
+actions copy-latex-pngs
+{
+ mkdir $(TO)
+ $(CP) $(<:D)$(FROM) $(TO) && echo "Stamped" > "$(<)"
+}
+
+# This causes the png files built above to be copied
+# into the html/images/accumulators directory.
+make statsdoclatex.tag
+ : statsdoc.html
+ : @copy-latex-pngs
+ ;
+
 doxygen statsdoc
     :
         [ glob ../../../boost/accumulators/statistics*.hpp ]
@@ -67,8 +105,10 @@
         <doxygen:param>EXPAND_ONLY_PREDEF=YES
         <doxygen:param>SEARCH_INCLUDES=NO
         <doxygen:param>TAGFILES=accumulators.tag
+ <xsl:param>boost.doxygen.formuladir=images/accumulators/
         <reftitle>"Statistics Library Reference"
         <dependency>tagfile
+ <dependency>statsdoclatex.tag
     ;
 
 doxygen opdoc


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