Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76838 - trunk/doc/test
From: john_at_[hidden]
Date: 2012-02-02 05:36:44


Author: johnmaddock
Date: 2012-02-02 05:36:43 EST (Thu, 02 Feb 2012)
New Revision: 76838
URL: http://svn.boost.org/trac/boost/changeset/76838

Log:
Add (mostly non-working) equation demonstrations using LaTex, MathML and SVG.
Added:
   trunk/doc/test/test.mml (contents, props changed)
   trunk/doc/test/test.png (contents, props changed)
   trunk/doc/test/test.svg (contents, props changed)
Text files modified:
   trunk/doc/test/Jamfile.v2 | 3 +++
   trunk/doc/test/test.qbk | 20 ++++++++++++++++++++
   2 files changed, 23 insertions(+), 0 deletions(-)

Modified: trunk/doc/test/Jamfile.v2
==============================================================================
--- trunk/doc/test/Jamfile.v2 (original)
+++ trunk/doc/test/Jamfile.v2 2012-02-02 05:36:43 EST (Thu, 02 Feb 2012)
@@ -186,6 +186,8 @@
         <xsl:param>chunk.section.depth=1
         <xsl:param>boost.root=../../..
         <xsl:param>navig.graphics=1
+ <xsl:param>boost.mathjax=1
+ <xsl:path>$(images_location)/..
 
 
         # PDF Options:
@@ -205,3 +207,4 @@
 
 
 
+

Added: trunk/doc/test/test.mml
==============================================================================
--- (empty file)
+++ trunk/doc/test/test.mml 2012-02-02 05:36:43 EST (Thu, 02 Feb 2012)
@@ -0,0 +1,30 @@
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mtext>asinh</mtext>
+ <mfenced>
+ <mrow>
+ <mi>x</mi>
+ </mrow>
+ </mfenced>
+ <mo>&#x2248;</mo>
+ <mi>x</mi>
+ <mo>&#x2212;</mo>
+ <mfrac>
+ <mrow>
+ <msup>
+ <mi>x</mi>
+ <mn>3</mn>
+ </msup>
+ </mrow>
+ <mn>6</mn>
+ </mfrac>
+ <mspace width="1em"></mspace>
+ <mo>;</mo>
+ <mspace width="1em"></mspace>
+ <mi>x</mi>
+ <mo>&lt;</mo>
+ <msqrt>
+ <mi>&#x03B5;</mi>
+ </msqrt>
+ </mrow>
+</math>

Added: trunk/doc/test/test.png
==============================================================================
Binary file. No diff available.

Modified: trunk/doc/test/test.qbk
==============================================================================
--- trunk/doc/test/test.qbk (original)
+++ trunk/doc/test/test.qbk 2012-02-02 05:36:43 EST (Thu, 02 Feb 2012)
@@ -606,6 +606,26 @@
 
 [endsect]
 
+[section Equations]
+
+This page is largely to test equation handling in various browsers, unfortunately none of this works as well as it should (or at all?)
+in Internet Explorer....
+
+This equation is formatted from Latex text:
+
+'''<inlinemediaobject><textobject role="tex">ax^2 + bx + c = 0</textobject></inlinemediaobject>'''
+
+This equation is formed from MathML:
+
+'''<inlinemediaobject><textobject role="MathML"><?dbhtml-include href="test.mml"?></textobject></inlinemediaobject>'''
+
+This equation is SVG:
+
+'''<inlinemediaobject><imageobject><imagedata format="SVG" fileref="../test.svg"></imagedata></imageobject></inlinemediaobject>'''
+
+
+[endsect]
+
 [include test_HTML4_symbols.qbk]
 
 [include remez.qbk]

Added: trunk/doc/test/test.svg
==============================================================================
Binary file. No diff available.


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