Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unbalanced tag </mrow #34

Closed
touhami opened this issue Aug 25, 2020 · 5 comments
Closed

unbalanced tag </mrow #34

touhami opened this issue Aug 25, 2020 · 5 comments

Comments

@touhami
Copy link

touhami commented Aug 25, 2020

When I try to compile the folloing MWE with the command make4ht -u myfile.tex "mathml, mathjax

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[\begin{cases} % no problem
x & x\in A\\
y & x\in B.
\end{cases}\]

\[\begin{cases}
x & x\in A\\
y & x\in ]a,b[.
\end{cases}\]

\[\begin{cases}
x & x\in ]a,b[\\
y & x\in B.
\end{cases}\]
\end{document}

I get a warning about unbalanced tag </mrow and the result of the last two formula is wrong.

1

@michal-h21
Copy link
Owner

You can try to use the mathml- option instead:

make4ht myfile.tex "mathml-,mathjax"

It uses slightly different configuration for brackets. Here are some more details.

@touhami
Copy link
Author

touhami commented Aug 26, 2020

Great. Is there a way to know when one should use this option or it's always ok.

off-topic: why did you write

make4ht myfile.tex "mathml-,mathjax"

and not

make4ht -u myfile.tex "mathml-,mathjax"

i mean why not -u? are you recommending it or just ignored?

@michal-h21
Copy link
Owner

I've just updated TeX4ht sources to use the relevant code from mathml- option by default for MathML output. So you should get correct result even with mathml option. The mathml- option produces code, that sometimes isn't that semantically correct and it may have wrong rendering. But this particular code seems to work well and should be really used by default, as it can fix lot of issues like this one.

The -u option is obsolete, because utf8 output is produced by default now.

@touhami
Copy link
Author

touhami commented Aug 27, 2020

Great. Thank you.

@michal-h21
Copy link
Owner

OK, so I hope we can close this for now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants