MathJax-src icon indicating copy to clipboard operation
MathJax-src copied to clipboard

Feature: TikZ package and more LaTax command support

Open LukeTOBrien opened this issue 6 years ago • 3 comments

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

LukeTOBrien avatar Mar 25 '18 12:03 LukeTOBrien

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.

dpvc avatar Mar 31 '18 12:03 dpvc

This is also a duplicate of https://github.com/mathjax/MathJax/issues/41.

pkra avatar Jun 20 '18 20:06 pkra

For xymatrix there is https://github.com/sonoisa/XyJax-v3

ysulyma avatar May 19 '22 05:05 ysulyma