Closed corinnaSchultz closed 8 years ago
There may be something similar going on with these characters:
x21C0
<math xmlns="http://www.w3.org/2010/Math/MathML"><semantics><mstyle scriptsizemultiplier="0.715"><mover><mi>x</mi><mo>⇀</mo></mover></mstyle><annotation encoding="text/plain"/></semantics></math>
x023DD
<math xmlns="http://www.w3.org/2010/Math/MathML"><semantics><mstyle scriptsizemultiplier="0.715"><munder><mi>x</mi><mo>⏝</mo></munder></mstyle><annotation encoding="text/plain"></annotation></semantics></math>
It turns out that the data for certain of the stretchy characters is off (the widths of the single-character versions were supposed to be multiplied by 1000, but are decimals instead, so the widths are not being processed correctly, and the single-character versions are not being selected when they should).
For the time being, you can either use the STIX fonts, which have the correct data, or use stretchy="false"
on the <mo>
. You might also find accent="false"
to improve some of them.
Another symbol which may be in this category too (I'm not sure if the underbar is supposed to be that wide):
<math xmlns="http://www.w3.org/2010/Math/MathML"><semantics><mstyle scriptsizemultiplier="0.715"><menclose notation="bottom"><mi>x</mi></menclose></mstyle><annotation encoding="text/plain"></annotation></semantics></math>
<svg xmlns:xlink="http://www.w3.org/1999/xlink" style="vertical-align: -0.838ex;" width="2.607ex" height="2.176ex" viewBox="0 -576.1 1122.5 936.9" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg">\n<g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)">\n<g transform="translate(275,0)">\n<path stroke-width="1" d="M52 289Q59 331 106 386T222 442Q257 442 286 424T329 379Q371 442 430 442Q467 442 494 420T522 361Q522 332 508 314T481 292T458 288Q439 288 427 299T415 328Q415 374 465 391Q454 404 425 404Q412 404 406 402Q368 386 350 336Q290 115 290 78Q290 50 306 38T341 26Q378 26 414 59T463 140Q466 150 469 151T485 153H489Q504 153 504 145Q504 144 502 134Q486 77 440 33T333 -11Q263 -11 227 52Q186 -10 133 -10H127Q78 -10 57 16T35 71Q35 103 54 123T99 143Q142 143 142 101Q142 81 130 66T107 46T94 41L91 40Q91 39 97 36T113 29T132 26Q168 26 194 71Q203 87 217 139T245 247T261 313Q266 340 266 352Q266 380 251 392T217 404Q177 404 142 372T93 290Q91 281 88 280T72 278H58Q52 284 52 289Z"></path>\n</g>\n<line stroke-linecap="square" stroke="black" stroke-width="75" y2="37" y1="37" x1="37" x2="1085" transform="translate(0,-287)"></line>\n</g>\n</svg>
Your latest example uses <menclose>
, and although the MathML spec is not specific about the expected renderings, it does suggest a small amount of padding for several of the notations. Most renderers use this padding for all the box-like notations; MathJax does this as well. So, yes, the extra width is the expected result.
If you are looking for a tighter underline, try
<math xmlns="http://www.w3.org/2010/Math/MathML">
<munder>
<mi>x</mi>
<mo>_</mo>
</munder>
</math>
Now that MathJax has hit 2.7-beta (and includes the fix), I think we can close this.
how does one write underbar?
@brando90, as indicated above,
<math xmlns="http://www.w3.org/2010/Math/MathML">
<munder>
<mi>x</mi>
<mo>_</mo>
</munder>
</math>
will put an underbar under an "x".
On the other hand, if you mean you want to show x_1
with an actual underbar in it, then you can use something like
<math xmlns="http://www.w3.org/2010/Math/MathML">
<mi>x_1</mi>
</math>
If neither of these is what you are after, then you need to be clearer about what you are trying to accomplish.
This is the "top parenthesis" character. When it is place over a single letter, it isn't rendered correctly. It appears to be made out of two halves, and they overlap in the middle.
When this character is used over more than one letter, as in the following example, it renders correctly, as it's constructed from three pieces
output: