# Adding MathJax

May 28th 2016Once upon a time I wanted to be able to embeb mathematical formulas into my blog pages. Such as:

$\sum_{n=1}^\inf {1 \over n} = 2$

A very easy way to do this is to use MathJax by adding

```
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_CHTML">
</script>
```

to the <head> section of your web page.