Mathematics

## How to display mathematics on your websites

Options for including mathematics on your website include:

The Nift documentation covers how to display $\LaTeX$ on your websites using MathJax. Repeating the information on this page, using MathJax on your site is as simple as adding the following code to the head of each page:

<!-- uses MathJax CDC for LaTeX support
<script type="text/x-mathjax-config">
MathJax.Hub.Config
({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax:
{
inlineMath: [['$','$'], ['\$$','\$$']],
displayMath: [ ['$$','$$'], ["\$","\$"] ],
processEscapes: true
},
"HTML-CSS": { availableFonts: ["MathJax TeX"] }
});
</script>
<script type="text/javascript"
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js">
</script>


If you want to insert a dollar sign on a page, as opposed to opening/closing an inline equation, use \\\\$ and MathJax will escape the character.

Note: if you are opening a page locally and are not connected to the internet then MathJax will not load, you will simply see the unprocessed LaTeX equations.