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

add support for mathalfa.sty #2264

Open xworld21 opened 1 year ago

xworld21 commented 1 year ago

As reported by @rzach in https://github.com/vlmantova/bookml/issues/11, when using \usepackage[cal=boondoxo]{mathalfa}, LaTeXML should redefine \mathcal as an alias for \mathscr. As of now, it annotates the output of \mathcal with the class ltx_math_caligraphic and so BookML ends up using the wrong font.

This will become marginally more serious if you merge #2244, as the characters themselves will get the wrong Unicode variation selector, and so browsers and MathJax will show the wrong glyphs (if and when UVSs get implemented more widely).

I suppose there may be other packages where \mathcal is actually roundhand and need a similar treatment.

xworld21 commented 1 year ago

(Actually there is no binding for mathalfa, but it seems easy enough to implement.)