- The image is created in the browser (i.e. the LaTeX is not send to a server for rendering)
- Native share dialog (share via WhatsApp etc.)
- Extra keyboard buttons for symbols like "$" or "\" on mobile
- Share via png or unicode
Demo video: https://www.youtube.com/shorts/fGuTns5Nt9Q
Please let me know any feedback on how to improve the website.
[1]: https://kroki.io/ [2]: https://tikz.dev/ [3]: https://tinyurl.com/kroki-svg-example
1. You can give credit where it is due - on the website, to katex and the HTML-to-image renderer library/engine. 2. You could offer any of the three possible outputs: Raster image, HTML, MathML - for exporting/sharing/downloading.
I've just added the links to both projects in the info modal.
I will look into adding HTML and MathML exports in the next version.
https://www.youtube.com/watch?v=fGuTns5Nt9Q
I'm not to familiar with LaTeX so I much prefer a WYSIWYG editor. I mainly use things like wolframalpha's editor to really get a good representation of what I need.
I know something like that might be out of scope for something like this, but you could potentially do preprogrammed buttons like having a sqrt button insert "\sqrt{}" to the cursor position.
I've always thought compiling LaTeX in WebAssembly would be a tough nut to crack, so I was curious if that's what you'd done here. Turns out you're using KaTeX.
Have you considered any WebAssembly approaches?
KaTeX does not support all LaTeX features but initializes very quickly.
LaTeX via WebAssembly supports more features but might need longer to initialize.
There's an existing WebAssembly project: https://www.swiftlatex.com
The LaTeX format file or the memory image after LaTeX is loaded are a bit bigger though (2.3 MB and 6.3MB gzipped, respectively).
The "Share text" functionality of the website uses KaTeX's MathML feature as an intermediate step.
Image generation: https://github.com/bubkoo/html-to-image
I'm more interested in solutions that work with the broader LaTeX ecosystem (like SiUnitX or amsmath).
[1] https://docs.mathjax.org/en/latest/input/tex/extensions/inde...
[2] https://github.com/mathjax/MathJax-third-party-extensions