michal-h21 / make4ht

Build system for tex4ht
137 stars 15 forks source link

'mathml'-option messes up the matrix width #91

Closed yalguzaq closed 1 year ago

yalguzaq commented 1 year ago

Consider the following equation in the minimal LaTeX settings: $$\tilde{\mathbf{x}} := \begin{bmatrix} \dfrac{1}{nU}\mathbf{x}\\[7.5pt] \displaystyle 1 - \dfrac{1}{nU}\sum_{i=1}^{n}x_i\end{bmatrix} \in \mathfrak{R}^{n+1}.$$ compiling it with make4ht file.tex produces the desired output image whereas compiling it with make4ht file.tex 'mathml,mathjax' messes up the matrix image

michal-h21 commented 1 year ago

Thanks for the report. It is caused by <mtd> elements inside <mtr class="array-vspace">. It seems that this <mtr> shouldn't contain any children. I've fixed it in TeX4ht sources, so it should be available in TeX Live soon.