michal-h21 / make4ht

Build system for tex4ht
132 stars 15 forks source link

'mathml,mathjax' not compiling complex indices without curly brackets #85

Closed yalguzaq closed 1 year ago

yalguzaq commented 1 year ago

$\LaTeX$ allows writing complex indices like $x_\mathbb{R}$ ($x_\mathbb{R}$) without curly brackets as the code is unambiguous. When I compile such expressions using make4ht file.tex everything works fine. As soon as I turn on mathml,mathjax mode: make4ht file.tex 'mathml,mathjax' make4ht breaks down.

Note: file tex is a minimal file containing $x_\mathbb{R}$.

michal-h21 commented 1 year ago

This is one issue that it not easily fixable, unfortunately. See this page for more details. It contains a Lua script that tries to pre-process the file, and to add the brackets before passing to make4ht.

yalguzaq commented 1 year ago

Understood, thanks!