Installation and Configuration
Installfrom the official repositories.
# pacman -S mathjax
To have MathJax parse the TeX code in
~/equations.html and produce SVG output:
<head> ... <script ="/usr/share/mathjax/MathJax.js?config=TeX-AMS_SVG"></script> ... </head>
Don't forget to include a configuration query string to tell MathJax about your desired i/o formats. You can also configure MathJax inline, see [url=http://docs.mathjax.org/en/latest/config-files.html#common-configurations]here[/url] for more details.
Your browser should now render the symbols at
In order to serve your clients with MathJax processed documents, you need your scripts to access its main file:
Let us assume the server's root directory is set to
/srv/http/, creating symlinks will grant your scripts access to the installed package:
$ cp -rs /usr/share/mathjax /srv/http/mathjax
You can now have MathJax parse the TeX code in, say,
/srv/http/pages/equations.html by including in its head: