Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MathJax integration #9

Open
Yukaii opened this issue Mar 12, 2020 · 3 comments
Open

MathJax integration #9

Yukaii opened this issue Mar 12, 2020 · 3 comments

Comments

@Yukaii
Copy link
Member

Yukaii commented Mar 12, 2020

Replace Katex with MathJax for matching our online version.

@RoyiAvital
Copy link

This is really important.

Also it would be great if the Extension will be single extension instead of installing many other extensions.

@Yukaii
Copy link
Member Author

Yukaii commented Mar 15, 2020

MathJax just released its latest version 3.0. With a complete rewrite of modern tooling (and even TypeScript), it should be easier to bundle using webpack now :)

https://github.com/mathjax/MathJax-src

@mlopezgva
Copy link

mlopezgva commented Nov 8, 2022

Any chance to support AsciiMath along with LaTeX? MathJax supports it. and AsciiMath is far, far easier to write, and much shorter, too.

Just to make a point, see the difference between TeX and asciiMath with these examples:

  • Cauchy-Schwarz Inequality, this is terrific:
    • TeX:
      \[ \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \]
    • asciiMath:
      (sum_(k=1)^n a_kb_k)^2 <= (sum_(k=1)^n a_k^2) (sum_(k=1)^n b_k^2)

captura de pantalla de 2016-07-14 17 01 13

  • Lorenz:
    • TeX:
      \dot{x} = \sigma(y-x) \\ \dot{y} = \rho x - y - xz \\ \dot{z} = -\beta z + xy
    • asciiMath
      dotx = sigma(y-x)
      \doty = rho x-y - xz
      \dotz = -beta z + xy
  • Probability:
    • TeX:
      \[P(E) = {n \choose k} p^k (1-p)^{ n-k } \]
    • asciiMath:
      P(E) = ((n),(k)) p^k (1-p)^(n-k)

captura de pantalla de 2016-07-14 17 18 59

  • And, of course, the quadratic formula:
    • TeX:
      -b \pm \sqrt{b^2 - 4ac} \over 2a
    • asciiMath
      x=-b+- sqrt(b^2-4ac)/2a

captura de pantalla de 2016-07-14 17 18 33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants