MathJax-src
MathJax-src copied to clipboard
Feature: TikZ package and more LaTax command support
Hello there,
First I must say that I am looking forward to MathJax v3, I came across this issue the other day, I am using Node as my rendering pipeline and synchronicity would be great for me.
I am working on a private project similar to Upmath here combining Markdown and LaTex.
I am using Markdown-it together with MathJax, currently it is all working great, but MathJax cannot render some of the examples I am using.
I have noticed the xymatrix
and TikZ package
as well as some examples of the LaTeX equations for web which Upmath is using.
I am also using this documentation as a reference.
So I think it would be really great if MathJax 3 could have support for these commands.
Thanks
Thanks for your interest in MathJax. Note that MathJax is not actually LaTeX, but is only LaTeX-like. MathJax is implemented in the browser, and anything that it does has to be implemented in javascript. It can not read LaTeX packages directly, so any package supported by MathJax has to be reimplemented (usually by hand) into javascript. Complex packages like TikZ and xymatrix are big projects, and we do not have the resources to handle those packages at this time.
Note that the sites you link to (Upmath and LaTeX equations for the web) both use actual LaTeX installations on the server, so you can use all of LaTeX's packages in them. One cost to this approach is that you need access to the server in order to process the math, and that means you need an active network, making it harder to work off line and making you susceptible to server downtime and network interruptions.
Both approaches have their advantages, and you need to pick the one that works best for you. But it is unlikely that we will have xymatrix or TikZ for MathJax v3 any time soon.
This is also a duplicate of https://github.com/mathjax/MathJax/issues/41.
For xymatrix there is https://github.com/sonoisa/XyJax-v3