mstyle-1.xhtml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?xml version="1.0" encoding="us-ascii"?>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="content-type"
  5. content="application/xhtml+xml; charset=us-ascii" />
  6. <title>Test mstyle</title>
  7. <style type="text/css">
  8. table { width: 100%; border-collapse: collapse; }
  9. td { border: solid black 1px; }
  10. </style>
  11. </head>
  12. <body>
  13. <table>
  14. <tbody>
  15. <tr>
  16. <td>mfenced: open, close, separators </td>
  17. <td><math xmlns="http://www.w3.org/1998/Math/MathML">
  18. <mstyle open="[" close="]" separators=";">
  19. <mfenced>
  20. <mn>1</mn>
  21. <mn>2</mn>
  22. </mfenced>
  23. </mstyle>
  24. </math></td>
  25. </tr>
  26. <tr>
  27. <td>menclose: notation</td>
  28. <td><math xmlns="http://www.w3.org/1998/Math/MathML">
  29. <mstyle notation="box">
  30. <menclose>
  31. <mtext>menclose</mtext>
  32. </menclose>
  33. </mstyle>
  34. </math></td>
  35. </tr>
  36. <tr>
  37. <td>mfrac: bevelled, linethickness</td>
  38. <td><math xmlns="http://www.w3.org/1998/Math/MathML">
  39. <mstyle bevelled="true" linethickness="thick">
  40. <mfrac>
  41. <mi>a</mi>
  42. <mi>b</mi>
  43. </mfrac>
  44. </mstyle>
  45. </math></td>
  46. </tr>
  47. <tr>
  48. <td>mfrac: numalign</td>
  49. <td><math xmlns="http://www.w3.org/1998/Math/MathML">
  50. <mstyle numalign="right">
  51. <mfrac>
  52. <mn>1</mn>
  53. <mn>234</mn>
  54. </mfrac>
  55. </mstyle>
  56. </math></td>
  57. </tr>
  58. <tr>
  59. <td>mfrac: denomalign</td>
  60. <td><math xmlns="http://www.w3.org/1998/Math/MathML">
  61. <mstyle denomalign="right">
  62. <mfrac>
  63. <mn>123</mn>
  64. <mn>4</mn>
  65. </mfrac>
  66. </mstyle>
  67. </math></td>
  68. </tr>
  69. <tr>
  70. <td>mmultiscripts: subscriptshift, superscriptshift </td>
  71. <td><math xmlns="http://www.w3.org/1998/Math/MathML">
  72. <mstyle subscriptshift="1em" superscriptshift="1em">
  73. <mmultiscripts>
  74. <mi>a</mi>
  75. <mi>b</mi>
  76. <mi>c</mi>
  77. <mprescripts/>
  78. <mi>e</mi>
  79. <mi>f</mi>
  80. </mmultiscripts>
  81. </mstyle>
  82. </math></td>
  83. </tr>
  84. <tr>
  85. <td>msubsup: subscriptshift, superscriptshift</td>
  86. <td><math xmlns="http://www.w3.org/1998/Math/MathML">
  87. <mstyle subscriptshift="1em" superscriptshift="1em">
  88. <msubsup>
  89. <mi>a</mi>
  90. <mi>b</mi>
  91. <mi>c</mi>
  92. </msubsup>
  93. </mstyle>
  94. </math></td>
  95. </tr>
  96. <tr>
  97. <td>msub: subscriptshift</td>
  98. <td><math xmlns="http://www.w3.org/1998/Math/MathML">
  99. <mstyle subscriptshift="1em">
  100. <msub>
  101. <mi>a</mi>
  102. <mi>b</mi>
  103. </msub>
  104. </mstyle>
  105. </math></td>
  106. </tr>
  107. <tr>
  108. <td>msup: superscriptshift</td>
  109. <td><math xmlns="http://www.w3.org/1998/Math/MathML">
  110. <mstyle superscriptshift="1em">
  111. <msup>
  112. <mi>a</mi>
  113. <mi>b</mi>
  114. </msup>
  115. </mstyle>
  116. </math></td>
  117. </tr>
  118. </tbody>
  119. </table>
  120. </body>
  121. </html>