aboutsummaryrefslogtreecommitdiffstats
path: root/examples/mathml/docs/mathml.fo
blob: a5ff53f26a082b7a92adc56385995c051a7fa501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
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>