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