You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mathml.fo 4.8KB

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