aboutsummaryrefslogtreecommitdiffstats
path: root/examples/mathml/docs
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2003-01-29 16:25:25 +0000
committerJeremias Maerki <jeremias@apache.org>2003-01-29 16:25:25 +0000
commit3bb877507c6bbeb32ca72d0aa2196f2203e6de09 (patch)
treefe9a69b9d2421583735732462c3fe27ca8153677 /examples/mathml/docs
parent5b2e97ba5b0fc57ba7e5edf1acdba8da31065eef (diff)
downloadxmlgraphics-fop-3bb877507c6bbeb32ca72d0aa2196f2203e6de09.tar.gz
xmlgraphics-fop-3bb877507c6bbeb32ca72d0aa2196f2203e6de09.zip
Move over from contrib/mathml
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195908 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'examples/mathml/docs')
-rw-r--r--examples/mathml/docs/example.mml63
-rw-r--r--examples/mathml/docs/mathml.fo172
2 files changed, 235 insertions, 0 deletions
diff --git a/examples/mathml/docs/example.mml b/examples/mathml/docs/example.mml
new file mode 100644
index 000000000..0f04968c2
--- /dev/null
+++ b/examples/mathml/docs/example.mml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+ <math xmlns="http://www.w3.org/1998/Math/MathML" mode="display">
+ <mrow>
+ <mo stretchy="false">{</mo>
+ <munder>
+ <mrow>
+ <mover>
+ <mrow>
+ <mpadded width="0"/>
+ <!--mpadded width="0">(</mpadded-->
+ <!-- \mathstrut -ugly hack a la TeX -->
+ <mi>a</mi>
+ <mo>,</mo>
+ <mo>...</mo>
+ <mo>,</mo>
+ <mi>a</mi>
+ </mrow>
+ <mover>
+ <mo>&#x0FE37;</mo>
+ <mrow>
+ <mi>k</mi>
+ <mtext>&#x000A0;</mtext>
+ <mi>a</mi>
+ <mtext>'s</mtext>
+ </mrow>
+ </mover>
+ </mover>
+ <mo>,</mo>
+ <mover>
+ <mrow>
+ <mpadded/>
+ <!--mpadded width="0">(</mpadded-->
+ <!-- \mathstrut -ugly hack a la TeX -->
+ <mi>b</mi>
+ <mo>,</mo>
+ <mo>...</mo>
+ <mo>,</mo>
+ <mi>b</mi>
+ </mrow>
+ <mover>
+ <mo>&#x0FE37;</mo>
+ <mrow>
+ <mi>&#x02113;</mi>
+ <mtext>&#x000A0;</mtext>
+ <mi>b</mi>
+ <mtext>'s</mtext>
+ </mrow>
+ </mover>
+ </mover>
+ </mrow>
+ <munder>
+ <mo>&#x0FE38;</mo>
+ <mrow>
+ <mi>k</mi>
+ <mo>+</mo>
+ <mi>&#x02113;</mi>
+ <mtext>&#x000A0;elements</mtext>
+ </mrow>
+ </munder>
+ </munder>
+ <mo stretchy="false">}</mo>
+ </mrow>
+ </math>
diff --git a/examples/mathml/docs/mathml.fo b/examples/mathml/docs/mathml.fo
new file mode 100644
index 000000000..a5ff53f26
--- /dev/null
+++ b/examples/mathml/docs/mathml.fo
@@ -0,0 +1,172 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <fo:layout-master-set>
+ <fo:simple-page-master
+ margin-right="1.5cm"
+ margin-left="1.5cm"
+ margin-bottom="2cm"
+ margin-top="1cm"
+ page-width="21cm"
+ page-height="29.7cm"
+ master-name="first">
+ <fo:region-before extent="1cm"/>
+ <fo:region-body margin-top="1cm"/>
+ <fo:region-after extent="1.5cm"/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+
+ <fo:page-sequence master-reference="first">
+ <fo:static-content flow-name="xsl-region-before">
+ <fo:block line-height="14pt" font-size="10pt"
+ text-align="end">Plan Extension</fo:block>
+ </fo:static-content>
+ <fo:static-content flow-name="xsl-region-after">
+ <fo:block line-height="14pt" font-size="10pt"
+ text-align="end">Page <fo:page-number/></fo:block>
+ </fo:static-content>
+
+ <fo:flow flow-name="xsl-region-body">
+
+ <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
+ The MathML Extension
+ </fo:block>
+
+ <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
+The mathml extension is an addition to FOP that can be used to draw mathml
+expressions.
+ </fo:block>
+
+ <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
+ Examples
+ </fo:block>
+
+ <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
+<fo:block space-after.optimum="5pt">
+<fo:instream-foreign-object>
+ <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline">
+ <mrow>
+ <mi>I</mi>
+ <mrow>
+ <mo>(</mo>
+ <mi>x</mi>
+ <mo>)</mo>
+ </mrow>
+ <mo>=</mo>
+ <mi>F</mi>
+ <mo stretchy="false">(</mo>
+ <mi>x</mi>
+ <mo stretchy="false">)</mo>
+ <mo>+</mo>
+ <mi>C</mi>
+ </mrow>
+ </math>
+</fo:instream-foreign-object>
+</fo:block>
+ </fo:block>
+
+ <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
+<fo:block space-after.optimum="5pt">
+<fo:instream-foreign-object>
+ <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline">
+ <mrow>
+ <mo>(</mo>
+ <mtable>
+ <mtr>
+ <mtd columnalign="center">
+ <mrow>
+ <mo>(</mo>
+ <mtable>
+ <mtr>
+ <mtd columnalign="center">
+ <mi>a</mi>
+ </mtd>
+ <mtd columnalign="center">
+ <mi>b</mi>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd columnalign="center">
+ <mi>c</mi>
+ </mtd>
+ <mtd columnalign="center">
+ <mi>d</mi>
+ </mtd>
+ </mtr>
+ </mtable>
+ <mo>)</mo>
+ </mrow>
+ </mtd>
+ <mtd columnalign="center">
+ <mrow>
+ <mo>(</mo>
+ <mtable>
+ <mtr>
+ <mtd columnalign="center">
+ <mi>e</mi>
+ </mtd>
+ <mtd columnalign="center">
+ <mi>f</mi>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd columnalign="center">
+ <mi>g</mi>
+ </mtd>
+ <mtd columnalign="center">
+ <mi>h</mi>
+ </mtd>
+ </mtr>
+ </mtable>
+ <mo>)</mo>
+ </mrow>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd columnalign="center">
+ <mn>0</mn>
+ </mtd>
+ <mtd columnalign="center">
+ <mrow>
+ <mo>(</mo>
+ <mtable>
+ <mtr>
+ <mtd columnalign="center">
+ <mi>i</mi>
+ </mtd>
+ <mtd columnalign="center">
+ <mi>j</mi>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd columnalign="center">
+ <mi>k</mi>
+ </mtd>
+ <mtd columnalign="center">
+ <mi>l</mi>
+ </mtd>
+ </mtr>
+ </mtable>
+ <mo>)</mo>
+ </mrow>
+ </mtd>
+ </mtr>
+ </mtable>
+ <mo>)</mo>
+ </mrow>
+ </math>
+
+</fo:instream-foreign-object>
+</fo:block>
+</fo:block>
+
+ <fo:block>
+An external mathml document.
+ </fo:block>
+
+ <fo:block>
+<fo:external-graphic src="example.mml"/>
+ </fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+</fo:root>
+