Forum Bugs

MathML tilde position too high

arthurattwell
Hello

In old (11.4) and newer (Prince for Books 20220701) versions of Prince, tildes over variables in MathML are rendered too high, causing unnecessarily wide line spacing.

Are there any workarounds for this?

I've attached a test file and output file created with Prince for Books 20220701.

Many thanks

Arthur
  1. test-tilde-books.pdf53.3 kB
  2. test-tilde.html2.6 kB
mikeday
Since you are using MathJax to create the MathML, could you take it one step further and use MathJax to perform the MathML layout and generate SVG? That might be a faster solution than waiting for us to improve the MathML rendering, which has been on the roadmap for a while but is competing with many other layout priorities.
arthurattwell
Thanks, Mike. We'll look into that, or we'll use pre-generated images instead for now.

Unfortunately, it seems that MathJax 3 only supports the MathJax TeX font for SVG rendering, which is pretty unsightly in an otherwise elegant, high-end textbook. MathJax 2 supported a range of fonts, so we used MathJax-to-SVG in older projects, but the tech stack for using MathJax 2 is quite different so it's not interchangeable.

I suppose if it were easy, everyone would be doing it :-) Thanks anyway, I totally understand that it's hard to prioritise MathML rendering.