View Single Post
Old 03-07-2025, 03:49 PM   #5
wanderson
Enthusiast
wanderson began at the beginning.
 
wanderson's Avatar
 
Posts: 28
Karma: 10
Join Date: Jul 2017
Location: Austin TX USA
Device: Kindle Paperwhite Gen 11, Likebook Mars & TCL NxtPaper 11
Quote:
Originally Posted by DNSB View Post
Have you tried modifying the <html> tag at the start of each XHTML file to read:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:math="http://www.w3.org/1998/Math/MathML">
I haven't done much with books containing MathML but I've seen that structure in a couple of them.

The attached file seems to display happily in Sigil but not in calibre's ebook-editor.
Thanks, DNSB, but I've found out that even in Sigil (and certainly in Calibre's ebook editor preview pane), this doesn't distribute to all the <math> blocks in the file, only the first. The namespace designation must be appended to each block, alas. I therefore consider this matter closed and will do it the verbose way.
wanderson is offline   Reply With Quote