Revision: 11775
http://sourceforge.net/p/foray/code/11775
Author: victormote
Date: 2021-01-13 00:52:52 +0000 (Wed, 13 Jan 2021)
Log Message:
-----------
Add inline MathML fragment.
Modified Paths:
--------------
trunk/foray/master/dist/resource/fo-examples/basic/graphics.fo
Modified: trunk/foray/master/dist/resource/fo-examples/basic/graphics.fo
===================================================================
--- trunk/foray/master/dist/resource/fo-examples/basic/graphics.fo 2021-01-13 00:40:26 UTC (rev 11774)
+++ trunk/foray/master/dist/resource/fo-examples/basic/graphics.fo 2021-01-13 00:52:52 UTC (rev 11775)
@@ -2,6 +2,7 @@
<fo:root
xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:math="http://www.w3.org/1998/Math/MathML"
font-family="Times Roman"
font-size="12pt"
text-align="center"
@@ -231,11 +232,34 @@
font-weight="bold"
space-before.minimum="1em"
space-before.optimum="1.5em"
- space-before.maximum="2em">A MathML Example</fo:block>
+ space-before.maximum="2em">A MathML Example in an external-graphic</fo:block>
<fo:block>
<fo:external-graphic src="url('../graphics/mathml-example-1.xml')"/>
</fo:block>
+ <fo:block>This formula is MathML code embedded in the FO.
+ <fo:instream-foreign-object>
+ <math:math mode="display">
+ <math:mrow>
+ <math:mo>(</math:mo>
+ <math:mfrac linethickness="1">
+ <math:mrow>
+ <math:mi>h</math:mi>
+ </math:mrow>
+ <math:mrow>
+ <math:mi>k</math:mi>
+ <math:mo>/</math:mo>
+ <math:mn>2</math:mn>
+ </math:mrow>
+ </math:mfrac>
+ <math:mo>)</math:mo>
+ </math:mrow>
+ </math:math>
+ </fo:instream-foreign-object>
+ The formula should be after the first sentence and before this one.
+ </fo:block>
+
+
</fo:flow>
</fo:page-sequence>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|