pretext icon indicating copy to clipboard operation
pretext copied to clipboard

EPUB MathJax SVGs sometimes render as black boxes

Open ascholerChemeketa opened this issue 1 month ago • 3 comments

Some SVGs produced by MathJax for EPUBs end up rendering as black boxes (at least in Calibre).

See Sample Article, 7.6:

Image

ascholerChemeketa avatar Nov 23 '25 16:11 ascholerChemeketa

Yes, I did happen to see that one. I'm going to guess one of those symbols is causing problems (the Maltese cross?). I'll see about removing them one-by-one.

rbeezer avatar Nov 23 '25 18:11 rbeezer

Its the hash (#) symbol.

Replacing the bare character (U+0023) by \# fixes the math, but then breaks the cross-reference.

I think I recently discussed exactly this with the MathJax folks. I'll find a reference later...

rbeezer avatar Nov 23 '25 19:11 rbeezer

See: https://groups.google.com/g/mathjax-users/c/7kuF0TWIKOk/m/6n81gTkXAgAJ

Which got tangled up in another thread, and which has one small obvious typo from Davide.

In short, a typical LaTeX mess from over-zealous markup, and perhaps saved for v4.

rbeezer avatar Nov 23 '25 19:11 rbeezer