Live data from Hacker News

MathJax

mathjax.org

21–30 of 44 posts

Re: MathJax

#21

If you are at all concerned with performance and can sacrifice a couple features (fewer supported text formatting options & mathematical elements, less legacy support for some browsers). Katex is a great alternative. https://katex.org/

This looks promising, but are there plans to include packages like siunitx or it's meant to be kept simple?

Re: MathJax

#22
I you want to quickly write some math to your website without necessarily knowing latex, then I wrote a tool called MathUp[1] which takes quick to write and easy to read math expressions and translates them to native MathML. MathJax can take native MathML as an input so you can feed it to MathJax to render it beautifully.

1: https://runarberg.github.io/mathup/

Re: MathJax

#23
post #6

(edit 4: my comment is off-topic, sorry) Mathjax reminds me of the AJAX hype. What happened to it? These days no one talks about AJAX. There was material design a few years later but that was just the looks. Is AJAX now replaced with React.js? or a combination of other stuff (like HTML5 and modern-JS and React.js and stuff)? edit: I just looked up Angular and apparently it was rewritten in Typescript, a strict supers…

AJAX is the default now, so no one talks about it.

Re: MathJax

#24
post #6

(edit 4: my comment is off-topic, sorry) Mathjax reminds me of the AJAX hype. What happened to it? These days no one talks about AJAX. There was material design a few years later but that was just the looks. Is AJAX now replaced with React.js? or a combination of other stuff (like HTML5 and modern-JS and React.js and stuff)? edit: I just looked up Angular and apparently it was rewritten in Typescript, a strict supers…

AJAX hype is like indoor plumbing hype. Everyone realized it was good, and now it's everywhere all the time, although only plumbers talk about it.

I think your footnote [3] is a reference to an HN comment of mine. I think you should know I actually like typescript even though the "superset of JS" thing is a bit oversold.

Re: MathJax

#25

I use MathJax for rendering equations on https://ultimateelectronicsbook.com/ and it's worked very well from a rendering quality perspective. I looked at Katex for performance, but it didn't support all of the LaTeX formatting that I use. You can scroll through https://ultimateelectronicsbook.com/systems-of-equations/ for a particularly formatting-heavy example with lots of matrix equations and augmented matrices, wo…

Slightly off-topic, but I really like the layout and feel of your website. I find the fonts and colours to be quite pleasing, and the site loads incredibly quickly.

Thanks! I am not a designer so that's accidental -- and much credit is probably due to the default Jekyll theme (https://github.com/jekyll/minima). But performance optimization is something I enjoy and something I do as a break from writing the actual content.

Re: MathJax

#26
post #6

(edit 4: my comment is off-topic, sorry) Mathjax reminds me of the AJAX hype. What happened to it? These days no one talks about AJAX. There was material design a few years later but that was just the looks. Is AJAX now replaced with React.js? or a combination of other stuff (like HTML5 and modern-JS and React.js and stuff)? edit: I just looked up Angular and apparently it was rewritten in Typescript, a strict supers…

AJAX hype is like indoor plumbing hype. Everyone realized it was good, and now it's everywhere all the time, although only plumbers talk about it. I think your footnote [3] is a reference to an HN comment of mine. I think you should know I actually like typescript even though the "superset of JS" thing is a bit oversold.

Thanks.

For context, as somewhat of an outsider, I knew about Crockford 'JS: The Good Parts' and knew the community cared about working within the limits of a sane "subset" of JS.

A few years later, I hear Typescript is everywhere and JS folks love it. I didn't pay attention to what it really claims to be, but made a connection with the Crockford book, and started mentioning in discussion with acquaintances that it's a subset of JS (it must be because that's what the community wanted).

Lo and behold, one of them heard TS is a "superset", not a subset, and dissed me as a knowledgeable tech person, despite himself knowing so little that barely weeks ago he didn't know the difference between Java and Javascript.

Sorry, I'm done with this mess.

Re: MathJax

#27

I use MathJax for rendering equations on https://ultimateelectronicsbook.com/ and it's worked very well from a rendering quality perspective. I looked at Katex for performance, but it didn't support all of the LaTeX formatting that I use. You can scroll through https://ultimateelectronicsbook.com/systems-of-equations/ for a particularly formatting-heavy example with lots of matrix equations and augmented matrices, wo…

> If you have the option to consider server-side equation rendering, your users may thank you.

I'm developing KeenWrite[0], a desktop-based text editor that provides real-time rendering of TeX. It has two TeX-related HTML export formats: SVG (no rendering for either client or server) or TeX (requires client-side rendering). Behind the scenes it uses a highly-optimized version of JMathTeX[1] that includes a custom renderer to handle translating math font glyphs into SVG paths.

[0]: https://github.com/DaveJarvis/keenwrite

[1]: https://github.com/DaveJarvis/JMathTeX

Re: MathJax

#28
post #12

If you are at all concerned with performance and can sacrifice a couple features (fewer supported text formatting options & mathematical elements, less legacy support for some browsers). Katex is a great alternative. https://katex.org/

Actually, the recent MathJax 3 is quite fast as you can see in this benchmark: https://www.intmath.com/cg5/katex-mathjax-comparison.php?pro... Still not as fast as KaTeX though.

Wow! That's a really impressive difference.

My android phone gets ~2700ms for KaTeX, ~3100ms for MathJax 3, ~17000ms for MathJax 2.7. There were times KaTeX and MathJax traded which I'm guessing is due to page size differences and my poor Internet connection.

Re: MathJax

#30

I use MathJax for rendering equations on https://ultimateelectronicsbook.com/ and it's worked very well from a rendering quality perspective. I looked at Katex for performance, but it didn't support all of the LaTeX formatting that I use. You can scroll through https://ultimateelectronicsbook.com/systems-of-equations/ for a particularly formatting-heavy example with lots of matrix equations and augmented matrices, wo…

> If you have the option to consider server-side equation rendering, your users may thank you. I'm developing KeenWrite[0], a desktop-based text editor that provides real-time rendering of TeX. It has two TeX-related HTML export formats: SVG (no rendering for either client or server) or TeX (requires client-side rendering). Behind the scenes it uses a highly-optimized version of JMathTeX[1] that includes a custom ren…

I hooked up something similar when I was writing "julia as a cli calculator" [1], but it uses real TeX behind the scene, which gives me the opportunity to utilize existing TeX ecosystem such as TikZ and typography. Accessibility can be a problem, but I think it's possible to include some hints via the title attributes with some work.

I hope to see more server-side solutions. The customizability and client-side overhead (you only need to render once on the server, possibly with caching) is not something a client-side library can achieve.

[1]: https://krasjet.com/rnd.wlk/julia/

Post reply on HN