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

support a latex backend for latexmath instead of mathematical #110

Open
cod3licious opened this issue Oct 25, 2021 · 2 comments
Open

support a latex backend for latexmath instead of mathematical #110

cod3licious opened this issue Oct 25, 2021 · 2 comments

Comments

@cod3licious
Copy link

I'm using asciidoctor-pdf with asciidoctor-mathematical and the equations are really ugly compared to standard latex. It seems like it shouldn't be too hard to convert latexmath equations into prettier images using latex directly.

Could this maybe be added as an additional backend or something, especially since mathematical also seems quite buggy (not rendering underbraces correctly, etc)?

infinity0 added a commit to infinity0/asciidoctor-mathematical that referenced this issue Oct 27, 2022
Enable by setting mathematical-format = mathml, mathematical-inline = true
@infinity0
Copy link

See #117. I've tested it locally and it works well.

Note that latexmath doesn't support inline output at the moment, but it will do once they merge my PR plurimath/latexmath#44.

OTOH, there are also quite a lot of other bugs like plurimath/latexmath#43 and the project is not very active.

Also, mathematical itself is no longer maintained.

The latex2mathml python module in docutils generally works much better and with less bugs, so perhaps calling that from Ruby is a better approach than either ruby-mathematical or ruby-latexmath, from the perspective of the end user.

A version of Chrome in the near future will have MathML support behind an experimental flag so the future is looking bright for MathML in general, so it's worth pursuing to have the functionality in asciidoctor.

@infinity0
Copy link

infinity0 commented Oct 27, 2022

Apparently plurimath is the successor of latexmath. However, it has some regressions from latexmath, so that is not reassuring either.

I added a commit to #117 to instead use python-docutil's latex2mathml, as it is much less buggy, and already supports inline math.

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