michael-brade / LaTeX.js

JavaScript LaTeX to HTML5 translator
https://latex.js.org
MIT License
760 stars 58 forks source link

How hard would it be to extend this with something like Chemfig? #154

Open SourceCodeDeleted opened 1 month ago

SourceCodeDeleted commented 1 month ago

I am considering extending this with something like Chemfig - Would chemfig be possible to convert or use in this project?

michael-brade commented 1 month ago

Oh, I don't think so, this is probably one the hardest packages to integrate. It builds on pgf/tikz and I would love to have that in LaTeX.js, but before that is possible, so much else has to be done first. I would suggest to use native LaTeX to export an SVG from chemfig and then include that.

SourceCodeDeleted commented 1 month ago

I am thinking of a solution - I might be able to pull it off using a WEB ASM plugin, but I am still in the evaluation stages. I like your tool - it's fast like KATEX is and I think it would be cool to have Chemfig in it.