– Xy-pic extension for MathJax –
XyJax is an almost Xy-pic compatible extension for MathJax.
This extension enables you to draw various graphs and diagrams.
See http://sonoisa.github.io/xyjax/xyjax.html for more details. And origins
This software is under development, so this release is beta-quality.
Choose the installation location of the XyJax on your own server (referred to as [XyJax loc]).
e.g. http://sonoisa.github.io/xyjax_ext/
In this case, [XyJax loc] = http://sonoisa.github.io/xyjax_ext .
$ unzip sonoisa-XyJax-xxxxx -d ~/work
In this case, [XyJax dir] = ~/work/sonoisa-XyJax-xxxxx .
xypic.js before: MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/xypic.js"); after: MathJax.Ajax.loadComplete("http://sonoisa.github.io/xyjax_ext/xypic.js");
e.g. http://sonoisa.github.io/xyjax_ext/xypic.js .
<script type="text/x-mathjax-config> MathJax.Hub.Config({ extensions: ["tex2jax.js"], jax: ["input/TeX","output/HTML-CSS"], "HTML-CSS": { styles: {".MathJax_Preview": {visibility: "hidden"}} }, tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}, TeX: {extensions: ["AMSmath.js","AMSsymbols.js","[XyJax loc]/xypic.js"]} // ^^^^^^^^^^^^^^^^^^^^ rewrite to fit your own server url. }); </script> <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> e.g. (sample: http://sonoisa.github.io/xyjax_ext/sample-xyjax.html )
<script type="text/x-mathjax-config> MathJax.Hub.Config({ extensions: ["tex2jax.js"], jax: ["input/TeX","output/HTML-CSS"], "HTML-CSS": { styles: {".MathJax_Preview": {visibility: "hidden"}} }, tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}, TeX: {extensions: ["AMSmath.js","AMSsymbols.js","http://sonoisa.github.io/xyjax_ext/xypic.js"]} }); </script> <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
$ unzip mathjax-MathJax-v2.1-xxxx -d ~/work
In this case, [MaxJax dir] = ~/work/mathjax-MathJax-v2.1-xxxx .
$ unzip sonoisa-XyJax-xxxxx -d ~/work
In this case, [XyJax dir] = ~/work/sonoisa-XyJax-xxxxx
eg.
$ cp ~/work/sonoisa-XyJax-xxxxx/extensions/TeX/xypic.js ~/work/mathjax-MathJax-v2.1-xxxx/extensions/TeX/ $ cp ~/work/sonoisa-XyJax-xxxxx/test/sample-xyjax.html ~/work/mathjax-MathJax-v2.1-xxxx/test/
<script type="text/x-mathjax-config> MathJax.Hub.Config({ extensions: ["tex2jax.js"], jax: ["input/TeX","output/HTML-CSS"], "HTML-CSS": { styles: {".MathJax_Preview": {visibility: "hidden"}} }, tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}, TeX: {extensions: ["xypic.js", "AMSmath.js","AMSsymbols.js"]} // ^^^^^^^^load xypic.js }); </script> <script type="text/javascript" src="../MathJax.js"></script>
If you have any questions about XyJax, please let me know.