disabled-scriptlevel-1-ref.html (3833B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>scriptlevel</title> 5 <meta charset="utf-8"/> 6 </head> 7 <body> 8 9 <!-- Test scriptlevel on mstyle --> 10 <randomelement> 11 <mstyle scriptsizemultiplier="2"> 12 <mtext>O</mtext> 13 <mstyle scriptlevel="1"><mtext>O</mtext></mstyle> 14 </mstyle> 15 </randomelement> 16 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 <randomelement> 21 <mstyle scriptsizemultiplier="2"> 22 <mstyle displaystyle="false"> 23 <mfrac> 24 <mtext>O</mtext> 25 <mtext>O</mtext> 26 </mfrac> 27 </mstyle> 28 <mstyle displaystyle="true"> 29 <mfrac> 30 <mtext>O</mtext> 31 <mtext>O</mtext> 32 </mfrac> 33 </mstyle> 34 </mstyle> 35 </randomelement> 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 <randomelement> 43 <mstyle scriptsizemultiplier="2"> 44 <mroot> 45 <mtext>O</mtext> 46 <mtext>O</mtext> 47 </mroot> 48 <msqrt> 49 <mtext>O</mtext> 50 </msqrt> 51 </mstyle> 52 </randomelement> 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 <randomelement> 71 <mstyle scriptsizemultiplier="2"> 72 <msub> 73 <mtext>O</mtext> 74 <mtext>O</mtext> 75 </msub> 76 <msup> 77 <mtext>O</mtext> 78 <mtext>O</mtext> 79 </msup> 80 <msubsup> 81 <mtext>O</mtext> 82 <mtext>O</mtext> 83 <mtext>O</mtext> 84 </msubsup> 85 <mmultiscripts> 86 <mtext>O</mtext> 87 <mtext>O</mtext> 88 <mtext>O</mtext> 89 <mprescripts/> 90 <mtext>O</mtext> 91 <mtext>O</mtext> 92 </mmultiscripts> 93 </mstyle> 94 </randomelement> 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 <randomelement> 111 <mstyle scriptsizemultiplier="2"> 112 <munder> 113 <mtext>O</mtext> 114 <mtext>O</mtext> 115 </munder> 116 <mover> 117 <mtext>O</mtext> 118 <mtext>O</mtext> 119 </mover> 120 <munderover> 121 <mtext>O</mtext> 122 <mtext>O</mtext> 123 <mtext>O</mtext> 124 </munderover> 125 </mstyle> 126 </randomelement> 127 128 </body> 129 </html>