1 @namespace "http://www.w3.org/1998/Math/MathML"; 2 3 math { 4 font-family: STIXGeneral, Symbol, "Times New Roman", sans-serif; 5 display: inline-block; 6 padding: 0px; 7 margin: 0px; 8 text-align: left; 9 vertical-align: baseline; 10 line-height: 1.0; 11 padding-left: 1px; 12 padding-right: 1px; 13 } 14 15 math[display="block"] { 16 display: block; 17 page-break-inside: avoid; 18 margin-bottom: 1em; 19 text-align: center; 20 margin-left: auto; 21 margin-right: auto; 22 } 23 24 mrow, mfenced { 25 display: inline-block; 26 white-space: nowrap; 27 vertical-align: baseline; 28 } 29 30 mfenced { 31 padding-left: 1px; 32 padding-right: 1px; 33 } 34 35 mi { 36 font-style: italic; 37 padding-right: 0.1em; 38 } 39 40 mi + mrow { 41 margin-left: 0.1em; 42 } 43 44 mfrac { 45 display: inline-block; 46 } 47 48 msub, msup { 49 display: inline-block; 50 vertical-align: baseline; 51 } 52 53 msub > * + * { 54 vertical-align: sub; 55 font-size: 0.75em; 56 } 57 58 msup > * + * { 59 vertical-align: super; 60 font-size: 0.75em; 61 } 62 63 msubsup { 64 display: inline-block; 65 vertical-align: baseline; 66 } 67 68 msubsup > * { 69 margin: 0px; 70 padding: 0px; 71 } 72 73 msubsup > * + * { 74 font-size: 0.75em; 75 } 76 77 munder, mover, munderover { 78 display: inline-block; 79 vertical-align: baseline; 80 } 81 82 munderover > * + *, mover > * + *, munder > * + * { 83 font-size: 0.75em; 84 } 85 86 mo, mn, mi, mtext { 87 padding: 0px; 88 margin: 0px; 89 } 90 91 mo { 92 display: inline-block; 93 } 94 95 math > mo, mrow > mo, mfenced > mo { 96 padding-right: 0.1em; 97 } 98 99 math[mathvariant="normal"], mstyle[mathvariant="normal"], mo[mathvariant="normal"], mn[mathvariant="normal"], mi[mathvariant="normal"], mtext[mathvariant="normal"], mspace[mathvariant="normal"], ms[mathvariant="normal"] { 100 font-style: normal; 101 font-weight: normal; 102 } 103 104 math[mathvariant="bold"], mstyle[mathvariant="bold"], mo[mathvariant="bold"], mn[mathvariant="bold"], mi[mathvariant="bold"], mtext[mathvariant="bold"], mspace[mathvariant="bold"], ms[mathvariant="bold"] { 105 font-style: normal; 106 font-weight: bold; 107 } 108 109 math[mathvariant="italic"], mstyle[mathvariant="italic"], mo[mathvariant="italic"], mn[mathvariant="italic"], mi[mathvariant="italic"], mtext[mathvariant="italic"], mspace[mathvariant="italic"], ms[mathvariant="italic"] { 110 font-style: italic; 111 font-weight: normal; 112 } 113 114 math[mathvariant="bold-italic"], mstyle[mathvariant="bold-italic"], mo[mathvariant="bold-italic"], mn[mathvariant="bold-italic"], mi[mathvariant="bold-italic"], mtext[mathvariant="bold-italic"], mspace[mathvariant="bold-italic"], ms[mathvariant="bold-italic"] { 115 font-weight: bold; 116 font-style: italic; 117 } 118 119 math[mathsize="small"], mstyle[mathsize="small"], mo[mathsize="small"], mn[mathsize="small"], mi[mathsize="small"], mtext[mathsize="small"], mspace[mathsize="small"], ms[mathsize="small"] { 120 font-size: 0.75em; 121 } 122 123 math[mathsize="normal"], mstyle[mathsize="normal"], mo[mathsize="normal"], mn[mathsize="normal"], mi[mathsize="normal"], mtext[mathsize="normal"], mspace[mathsize="normal"], ms[mathsize="normal"] { 124 font-size: 1em; 125 } 126 127 math[mathsize="big"], mstyle[mathsize="big"], mo[mathsize="big"], mn[mathsize="big"], mi[mathsize="big"], mtext[mathsize="big"], mspace[mathsize="big"], ms[mathsize="big"] { 128 font-size: 1.5em; 129 } 130 131 annotation, annotation-xml { 132 display:none; 133 } 134 135 mphantom { 136 visibility: hidden; 137 } 138 139 merror { 140 outline: solid thin red; 141 font-weight: bold; 142 font-family: sans-serif; 143 background-color: lightYellow; 144 } 145 146 msqrt { 147 display: inline-block; 148 padding-top: 0.2em; 149 padding-left: 0.75em; 150 } 151 152 mroot { 153 display: inline-block; 154 position: relative; 155 padding-top: 0.2em; 156 padding-left: 0.2em; 157 } 158 159 mroot > * + * { 160 font-size: 0.75em; 161 vertical-align: bottom; 162 position: absolute; 163 left: 0px; 164 padding-right: 0.4em; 165 padding-left: 0.2em; 166 padding-bottom: 0.2em; 167 } 168 169 mroot > * + mrow, mroot > * + mfenced { 170 padding-bottom: 0.4em; 171 } 172 173 mtable { 174 display: inline-table; 175 text-align: center; 176 vertical-align: -40%; 177 } 178 179 mtr { 180 display: table-row; 181 } 182 183 mtd { 184 display: table-cell; 185 padding: 0 0.5ex; 186 } 187 188 mtable[columnalign="left"], mtr[columnalign="left"], mtd[columnalign="left"] { 189 text-align: left; 190 } 191 192 mtable[columnalign="right"], mtr[columnalign="right"], mtd[columnalign="right"] { 193 text-align: right; 194 } 195 196 mtable[rowalign="top"] mtd, mtable mtr[rowalign="top"] mtd, mtable mtr mtd[rowalign="top"] { 197 vertical-align: top; 198 } 199 200 mtable[rowalign="bottom"] mtd, mtable mtr[rowalign="bottom"] mtd, mtable mtr mtd[rowalign="bottom"] { 201 vertical-align: bottom; 202 } 203 204 mtable[rowalign="center"] mtd, mtable mtr[rowalign="center"] mtd, mtable mtr mtd[rowalign="center"] { 205 vertical-align: middle; 206 } 207 208 mtable[frame="solid"] { 209 border: solid thin; 210 } 211 212 mtable[frame="dashed"] { 213 border: dashed thin; 214 } 215 216 mtable[rowlines="solid"], mtable[rowlines="dashed"], mtable[columnlines="solid"], mtable[columnlines="dashed"] { 217 border-collapse: collapse; 218 } 219 220 mtable[rowlines="solid"] > mtr + mtr { 221 border-top: solid thin; 222 } 223 224 mtable[rowlines="dashed"] > mtr + mtr { 225 border-top: dashed thin; 226 } 227 228 mtable[columnlines="solid"] > mtr > mtd + mtd { 229 border-left: solid thin; 230 } 231 232 mtable[columnlines="dashed"] > mtr > mtd + mtd { 233 border-left: dashed thin; 234 } 235 236 mspace[linebreak="newline"] { 237 display: block; 238 } 239