fred-wang / TeXZilla

LALR Javascript LaTeX-to-MathML converter compatible with Unicode
http://fred-wang.github.io/TeXZilla/
130 stars 21 forks source link

Do not make uppercase greek letter italic #71

Closed fred-wang closed 5 years ago

fred-wang commented 5 years ago

For example \alpha generates α which has automatic mathvariant=italic. LaTeX does not seem to do that by default so we should add an explicit mathvariant="normal".

fred-wang commented 5 years ago

The mathvariant italic mapping is here: https://mathml-refresh.github.io/mathml-core/#italic-mappings

I'm not yet sure about the following ones: ∂ U+2202 | 𝜕 U+1D715 ∇ U+2207 | 𝛻 U+1D6FB ȷ U+0237 | 𝚥 U+1D6A5 ı U+0131 | 𝚤 U+1D6A4

but I suspect only the ascii letters are automatically italic in LaTeX.

fred-wang commented 5 years ago

It seems this is more complicate, only uppercase Greek are not italic by default: http://milde.users.sourceforge.net/LUCR/Math/math-font-selection.xhtml#math-styles

and there are different conventions, so I guess a config option should be introduced.