4 ms·
I considered switching from MathJax to KaTeX for my MathJax-based projects such as https://github.com/susam/texme https://github.com/susam/texme and http://math
by susam 6y ago
I considered switching from MathJax to KaTeX for my MathJax-based projects such as https://github.com/susam/texme https://github.com/susam/texme and http://mathb.in/ http://mathb.in/ but I had to decide against doing so because MathJax supports commands like \begin{align}, \begin{equation}, \label, \eqref, \notag, etc. that KaTeX does not, so switching to KaTeX would break many existing documents written using TeXMe or MathBin. I am going to stick with MathJax for now.
Commands supported in MathJax: http://docs.mathjax.org/en/latest/input/tex/macros/ http://docs.mathjax.org/en/latest/input/tex/macros/
Commands supported in KaTeX: https://katex.org/docs/supported.html https://katex.org/docs/supported.html
- esperent 6y agoFor some reason in katex you have to use \begin{aligned} instead of \begin{align} but it works.
- susam 6y agoYes, the "aligned" environment is a different environment but it is similar to the "align" environment. The "aligned" environment is available in MathJax too. The "aligned" environment is meant to be a part of a larger displayed math block, i.e., it goes between \[ and \] or $$ and $$. The "align" environment, on the other hand, is a standalone environment that can be used outside displayed math block. While the "aligned" environment is supported by both MathJax and KaTeX, the "align" environment is supported by MathJax only.
- esperent 6y agoHuh, I never knew that. Well in any case the differences are minor so you can just replace align with aligned https://tex.stackexchange.com/questions/95402/what-is-the-difference-between-aligned-in-displayed-mode-and-starred-align https://tex.stackexchange.com/questions/95402/what-is-the-di...
- vcxy 6y agoIsn't the big difference equation numbering? If you actually like to label and eqref stuff, it's not really a replacement. you can get around this I guess, but for me, it's much easier if my basic latex stuff works the same everywhere.