News for hackers. Stuff that matters.
Re:RaTeX: KaTeX-compatible LaTeX rendering engine in pure Rust by techwizrd on Thursday May 07, 2026 @10:30PM (#48057780)
I'm working on a Neovim plugin to render LaTeX in Markdown, and I'm struggling with this. Why is it so hard to simply render an image from KaTeX?
Re:RaTeX: KaTeX-compatible LaTeX rendering engine in pure Rust by xymostech on Friday May 08, 2026 @02:03PM (#48066648)
What are you struggling with? If you want an image output, there a reason you want to use KaTeX for this, and can't just use actual LaTeX?

KaTeX depends on the browser engine to do most of the layout, so generating an image would require a tool which converts the HTML nodes back into an image. There are some tools that can do that (like html2canvas), but using LaTeX to generate a PDF and then converting that to an image is probably going to be easier.