displaystyle-1.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>displaystyle</title>
  5. <meta charset="utf-8"/>
  6. </head>
  7. <body>
  8. <!-- Test displaystyle on mstyle -->
  9. <math>
  10. <mstyle displaystyle="true">
  11. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  12. </mstyle>
  13. <mstyle displaystyle="false">
  14. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  15. </mstyle>
  16. </math>
  17. <!-- The mfrac element sets displaystyle to "false", or if it was already
  18. false increments scriptlevel by 1, within numerator and denominator.
  19. -->
  20. <math>
  21. <mstyle displaystyle="true">
  22. <mfrac>
  23. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  24. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  25. </mfrac>
  26. </mstyle>
  27. </math>
  28. <!-- The mroot element increments scriptlevel by 2, and sets
  29. displaystyle to "false", within index, but leaves both attributes
  30. unchanged within base.
  31. The msqrt element leaves both attributes unchanged within its
  32. argument. -->
  33. <math>
  34. <mstyle displaystyle="true">
  35. <mroot>
  36. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  37. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  38. </mroot>
  39. <msqrt>
  40. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  41. </msqrt>
  42. </mstyle>
  43. </math>
  44. <!--
  45. The msub element [...] increments scriptlevel by 1, and sets displaystyle to
  46. "false", within subscript, but leaves both attributes unchanged within base.
  47. The msup element [...] increments scriptlevel by 1, and sets displaystyle to
  48. "false", within superscript, but leaves both attributes unchanged within
  49. base.
  50. The msubsup element [...] increments scriptlevel by 1, and sets displaystyle
  51. to "false", within subscript and superscript, but leaves both attributes
  52. unchanged within base.
  53. The mmultiscripts element increments scriptlevel by 1, and sets displaystyle
  54. to "false", within each of its arguments except base, but leaves both
  55. attributes unchanged within base.
  56. -->
  57. <math>
  58. <mstyle displaystyle="true">
  59. <msub>
  60. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  61. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  62. </msub>
  63. <msup>
  64. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  65. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  66. </msup>
  67. <msubsup>
  68. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  69. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  70. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  71. </msubsup>
  72. <mmultiscripts>
  73. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  74. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  75. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  76. <mprescripts/>
  77. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  78. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  79. </mmultiscripts>
  80. </mstyle>
  81. </math>
  82. <!--
  83. The munder element [...] always sets displaystyle to "false" within the
  84. underscript, but increments scriptlevel by 1 only when accentunder is
  85. "false". Within base, it always leaves both attributes unchanged.
  86. The mover element [...] always sets displaystyle to "false" within
  87. overscript, but increments scriptlevel by 1 only when accent is "false".
  88. Within base, it always leaves both attributes unchanged.
  89. The munderover [..] always sets displaystyle to "false" within underscript
  90. and overscript, but increments scriptlevel by 1 only when accentunder or
  91. accent, respectively, are "false". Within base, it always leaves both
  92. attributes unchanged.
  93. -->
  94. <math>
  95. <mstyle displaystyle="true">
  96. <munder>
  97. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  98. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  99. </munder>
  100. <mover>
  101. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  102. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  103. </mover>
  104. <munderover>
  105. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  106. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  107. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  108. </munderover>
  109. </mstyle>
  110. </math>
  111. <!--
  112. The displaystyle attribute is allowed on the mtable element to set the
  113. inherited value of the attribute. If the attribute is not present, the
  114. mtable element sets displaystyle to "false" within the table elements.
  115. -->
  116. <math>
  117. <mstyle displaystyle="false">
  118. <mtable displaystyle="true">
  119. <mtr>
  120. <mtd>
  121. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  122. </mtd>
  123. </mtr>
  124. </mtable>
  125. </mstyle>
  126. <mstyle displaystyle="true">
  127. <mtable>
  128. <mtr>
  129. <mtd>
  130. <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
  131. </mtd>
  132. </mtr>
  133. </mtable>
  134. </mstyle>
  135. </math>
  136. </body>
  137. </html>