4 ms·
I switched from MathJax to a middleman + execjs + KaTeX pipeline for my static sites earlier this year, and I'm very happy with it overall. KaTeX isn't 1-1 with
by lpage 10y ago
I switched from MathJax to a middleman + execjs + KaTeX pipeline for my static sites earlier this year, and I'm very happy with it overall. KaTeX isn't 1-1 with MathJax when it comes to syntax support; I was surprised to see that underset and overset - which are ubiquitous - aren't supported. That said, I was able to work around every issue with alternative syntax. It's awesome that the heavy lifting is no longer client side, and it's a significantly easier build pipeline than MathJax if you're trying to generate a single minimized script or use webpack.
- rahimnathwani 10y agoIs there a reason why ebooks don't use KaTeX? I subscribe to safaribooksonline.com, which presents HTML versions of ebooks. I think they're just unpackaged versions of epub or mobi versions. Anyway, I'm surprised that equations are generally embedded in images, even in recent (published this month) O'Reilly-published books. Is there some technical reason why authors/publishers do it this way, or is it just about tooling? Gitbook claims that it works: https://www.gitbook.com/blog/features/katex https://www.gitbook.com/blog/features/katex