Show HN: Latex.to ā LaTeX to image converter running in the browser
- 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.
rfdonnelly|1 year ago
[1]: https://kroki.io/ [2]: https://tikz.dev/ [3]: https://tinyurl.com/kroki-svg-example
einpoklum|1 year ago
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.
Wdorf|1 year ago
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.
mcraiha|1 year ago
Wdorf|1 year ago
Cieric|1 year ago
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.
Wdorf|1 year ago
kreyenborgi|1 year ago
coffeeri|1 year ago
mindv0rtex|1 year ago
sitkack|1 year ago
mgt19937|1 year ago
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?
Wdorf|1 year ago
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
red_trumpet|1 year ago
[1] https://tikzjax.com/
jszymborski|1 year ago
ComputerGuru|1 year ago
Vetch|1 year ago
hextex|1 year ago
1: https://github.com/facebookresearch/nougat
sorenjan|1 year ago
https://mathpix.com/
Wdorf|1 year ago
programjames|1 year ago
https://aops.com/texer
vzaliva|1 year ago
einpoklum|1 year ago
Wdorf|1 year ago
The "Share text" functionality of the website uses KaTeX's MathML feature as an intermediate step.
KeplerBoy|1 year ago
Wdorf|1 year ago
Image generation: https://github.com/bubkoo/html-to-image
Ennea|1 year ago
Wdorf|1 year ago