Contents |
---|

installing nsm |

nsm commands |

content files |

template files |

displaying mathematics |

displaying code blocks |

hosting your site |

### Guide to displaying mathematics

Options for including mathematics on your website include:

The

<!-- uses MathJax CDC for LaTeX support see http://docs.mathjax.org/en/latest/start.html for more info --> <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>

You should then be able to paste $\LaTeX$ equations straight into content files. both \$..\$ and /(../) work for inline equations, and both \$\$..\$\$ and /[../] work for displayed equations. Eg. When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are: \[x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}\]

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.