brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
961 stars 101 forks source link

View of a page in a responsive mode with a smartphone #2372

Open rudolfine opened 5 months ago

rudolfine commented 5 months ago

When a generated html is viewed as responsive page with smartphone, one observes a) the primes of type $f^{\prime}$ or $D^{\prime}$ in Latex math mode are displaced in the html, i.e. moved over the characters, and so small that they can hardly be seen. b) the brackets \left( and \right) for matrices or fractions in a Latex math environment are not appropiately scaled.

dginev commented 5 months ago

@rudolfine Thank you for the report. Could you also provide us with:

Judging from point b), it is possible that both of your reports are due to viewing without a "math font" available in your browser. There is some MDN documentation on how to achieve that on one's own on a mainstream system: https://developer.mozilla.org/en-US/docs/Web/MathML/Fonts

Although most up-to-date browsers should already have such font available.

xworld21 commented 5 months ago

Point a) also sounds like a general MathML font-related problem. Unfortunately, for a), I don't think any font renders primes in a good way just yet (cf. https://github.com/w3c/mathml-core/issues/135).