ronkok / Temml

TeX-to-MathML conversion library in JavaScript
https://temml.org/
MIT License
142 stars 12 forks source link

font size of \hbox and \text in sub/supscript #35

Closed hbghlyj closed 9 months ago

hbghlyj commented 10 months ago

Example

\underbrace{\bigcirc\bigcirc\bigcirc}_{\text{circles }\hbox{circles}}

In LaTeX the font size of \text is script size and the font size of \hbox is normal size. I assume this is an effect of LaTeX temporarily leaving math mode within the \hbox. image In MathJax the font size of \text is script size and the font size of \hbox is normal size. image In Temml, they are of the same size image

ronkok commented 9 months ago

@hbghlyj Thank you for raising these issues. It's always nice to improve the package.

ronkok commented 9 months ago

Fixed by release 0.10.18.

hbghlyj commented 8 months ago

@ronkok we still have issue with font "STIX Two" and Asana image

hbghlyj commented 8 months ago

If we comment out this line in Temml-STIX2.css

mtext {
   font-family: STIX2;
}

the sizes will be correct image

ronkok commented 8 months ago

Good catch. The redundant CSS rules for <mtext> font family are removed in release v0.10.22.