Mathjax 不具合 小文字がずっと大文字になる問題20-05-01

提供:yonewiki

Mathjax 不具合に戻る

概要

V3.0.4でEdgeブラウザのみに起こる現象で結構、悩みましたが不具合だと感じたので記述しておきます。

たとえば以下のように、平方根の分子にアルファベットの大文字を一度使います。


<ymath>\[ \sqrt{\frac{\mathstrut \mathrm{A}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{B}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{C}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{D}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{E}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{F}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{G}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{H}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{I}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{J}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{K}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{L}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{M}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{N}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{O}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{P}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{Q}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{R}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{S}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{T}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{U}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{V}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{W}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{X}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{Y}}{\mathstrut \pi}}\sqrt{\frac{\mathstrut \mathrm{Z}}{\mathstrut \pi}} \]</ymath>


すると!


\$\$ \frac{ a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+s+t+u+v+w+x+y+z}{4} \$\$

と記述した数式が


<ymath>$$ \frac{ a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+s+t+u+v+w+x+y+z}{4} $$</ymath>


となってしまいます。Edgeブラウザ以外では正常に表示されます。これは平方根ではなくても、同じです。 最初は平方根の分子のアルファベットだけが対象だと思っていましたが、関係なくインラインではないディスプレイ表示について、そのページで使った最初のアルファベットが大文字なのか小文字なのかが優先されていると思います。


  Mathjax 不具合に戻る