| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> |
| 3 |
<fo:layout-master-set> |
| 4 |
<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"> |
| 5 |
<fo:region-body margin-top="1cm"/> |
| 6 |
<fo:region-before extent="1cm"/> |
| 7 |
<fo:region-after extent="1.5cm"/> |
| 8 |
</fo:simple-page-master> |
| 9 |
</fo:layout-master-set> |
| 10 |
<fo:page-sequence master-reference="first"> |
| 11 |
<fo:static-content flow-name="xsl-region-before"> |
| 12 |
<fo:block line-height="14pt" font-size="10pt" text-align="end">MathML Extension</fo:block> |
| 13 |
</fo:static-content> |
| 14 |
<fo:static-content flow-name="xsl-region-after"> |
| 15 |
<fo:block line-height="14pt" font-size="10pt" text-align="end">Page <fo:page-number/></fo:block> |
| 16 |
</fo:static-content> |
| 17 |
<fo:flow flow-name="xsl-region-body"> |
| 18 |
<fo:block space-before.optimum="3pt" space-after.optimum="15pt"> |
| 19 |
The MathML Extension |
| 20 |
</fo:block> |
| 21 |
<fo:block space-before.optimum="3pt" space-after.optimum="15pt"> |
| 22 |
The mathml extension is an addition to FOP that can be used to draw mathml |
| 23 |
expressions. |
| 24 |
</fo:block> |
| 25 |
<fo:block space-before.optimum="3pt" space-after.optimum="15pt"> |
| 26 |
Examples |
| 27 |
</fo:block> |
| 28 |
<fo:block space-before.optimum="3pt" space-after.optimum="15pt"> |
| 29 |
<fo:block space-after.optimum="5pt"> |
| 30 |
<fo:instream-foreign-object> |
| 31 |
<math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"> |
| 32 |
<mrow> |
| 33 |
<mi>I</mi> |
| 34 |
<mrow> |
| 35 |
<mo>(</mo> |
| 36 |
<mi>x</mi> |
| 37 |
<mo>)</mo> |
| 38 |
</mrow> |
| 39 |
<mo>=</mo> |
| 40 |
<mi>F</mi> |
| 41 |
<mo stretchy="false">(</mo> |
| 42 |
<mi>x</mi> |
| 43 |
<mo stretchy="false">)</mo> |
| 44 |
<mo>+</mo> |
| 45 |
<mi>C</mi> |
| 46 |
</mrow> |
| 47 |
</math> |
| 48 |
</fo:instream-foreign-object> |
| 49 |
</fo:block> |
| 50 |
</fo:block> |
| 51 |
<fo:block space-before.optimum="3pt" space-after.optimum="15pt"> |
| 52 |
<fo:block space-after.optimum="5pt"> |
| 53 |
<fo:instream-foreign-object> |
| 54 |
<math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"> |
| 55 |
<mrow> |
| 56 |
<mo>(</mo> |
| 57 |
<mtable> |
| 58 |
<mtr> |
| 59 |
<mtd columnalign="center"> |
| 60 |
<mrow> |
| 61 |
<mo>(</mo> |
| 62 |
<mtable> |
| 63 |
<mtr> |
| 64 |
<mtd columnalign="center"> |
| 65 |
<mi>a</mi> |
| 66 |
</mtd> |
| 67 |
<mtd columnalign="center"> |
| 68 |
<mi>b</mi> |
| 69 |
</mtd> |
| 70 |
</mtr> |
| 71 |
<mtr> |
| 72 |
<mtd columnalign="center"> |
| 73 |
<mi>c</mi> |
| 74 |
</mtd> |
| 75 |
<mtd columnalign="center"> |
| 76 |
<mi>d</mi> |
| 77 |
</mtd> |
| 78 |
</mtr> |
| 79 |
</mtable> |
| 80 |
<mo>)</mo> |
| 81 |
</mrow> |
| 82 |
</mtd> |
| 83 |
<mtd columnalign="center"> |
| 84 |
<mrow> |
| 85 |
<mo>(</mo> |
| 86 |
<mtable> |
| 87 |
<mtr> |
| 88 |
<mtd columnalign="center"> |
| 89 |
<mi>e</mi> |
| 90 |
</mtd> |
| 91 |
<mtd columnalign="center"> |
| 92 |
<mi>f</mi> |
| 93 |
</mtd> |
| 94 |
</mtr> |
| 95 |
<mtr> |
| 96 |
<mtd columnalign="center"> |
| 97 |
<mi>g</mi> |
| 98 |
</mtd> |
| 99 |
<mtd columnalign="center"> |
| 100 |
<mi>h</mi> |
| 101 |
</mtd> |
| 102 |
</mtr> |
| 103 |
</mtable> |
| 104 |
<mo>)</mo> |
| 105 |
</mrow> |
| 106 |
</mtd> |
| 107 |
</mtr> |
| 108 |
<mtr> |
| 109 |
<mtd columnalign="center"> |
| 110 |
<mn>0</mn> |
| 111 |
</mtd> |
| 112 |
<mtd columnalign="center"> |
| 113 |
<mrow> |
| 114 |
<mo>(</mo> |
| 115 |
<mtable> |
| 116 |
<mtr> |
| 117 |
<mtd columnalign="center"> |
| 118 |
<mi>i</mi> |
| 119 |
</mtd> |
| 120 |
<mtd columnalign="center"> |
| 121 |
<mi>j</mi> |
| 122 |
</mtd> |
| 123 |
</mtr> |
| 124 |
<mtr> |
| 125 |
<mtd columnalign="center"> |
| 126 |
<mi>k</mi> |
| 127 |
</mtd> |
| 128 |
<mtd columnalign="center"> |
| 129 |
<mi>l</mi> |
| 130 |
</mtd> |
| 131 |
</mtr> |
| 132 |
</mtable> |
| 133 |
<mo>)</mo> |
| 134 |
</mrow> |
| 135 |
</mtd> |
| 136 |
</mtr> |
| 137 |
</mtable> |
| 138 |
<mo>)</mo> |
| 139 |
</mrow> |
| 140 |
</math> |
| 141 |
</fo:instream-foreign-object> |
| 142 |
</fo:block> |
| 143 |
</fo:block> |
| 144 |
<fo:block> |
| 145 |
An external mathml document. |
| 146 |
</fo:block> |
| 147 |
<fo:block> |
| 148 |
<fo:external-graphic src="example.mml"/> |
| 149 |
</fo:block> |
| 150 |
<fo:block> |
| 151 |
An inline external graphic: <fo:external-graphic src="example.mml"/> with text before and after. |
| 152 |
</fo:block> |
| 153 |
<fo:block> |
| 154 |
An inline internal graphic: |
| 155 |
<fo:instream-foreign-object><math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"><msubsup><mi>X</mi><msubsup><mi>a</mi><mn>1</mn><mn>2</mn></msubsup><msubsup><mi>a</mi><mn>1</mn><mn>2</mn></msubsup></msubsup></math></fo:instream-foreign-object> |
| 156 |
with text before and after. |
| 157 |
</fo:block> |
| 158 |
<fo:block font-size="24pt" color="blue"> |
| 159 |
This is s 24pt block. An inline external graphic: <fo:external-graphic src="example.mml"/> with text before and after. |
| 160 |
</fo:block> |
| 161 |
<fo:block font-size="24pt" color="blue"> |
| 162 |
This is a 24pt block. An inline internal graphic: |
| 163 |
<fo:instream-foreign-object><math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"><msubsup><mi>X</mi><msubsup><mi>a</mi><mn>1</mn><mn>2</mn></msubsup><msubsup><mi>a</mi><mn>1</mn><mn>2</mn></msubsup></msubsup></math></fo:instream-foreign-object> |
| 164 |
with text before and after. |
| 165 |
<fo:block> |
| 166 |
Formula in ODF format: |
| 167 |
</fo:block> |
| 168 |
<fo:block><fo:external-graphic src="formula.odf"/></fo:block> |
| 169 |
</fo:block> |
| 170 |
</fo:flow> |
| 171 |
</fo:page-sequence> |
| 172 |
</fo:root> |