MathJax Test

TeX input

You can mark up inline math with $...$ or display with \\[...\\] Some tex constructs, notably {{ or {%, get picked up by the templating language and so for simple cases it is enough just to use the above but in general you need to also surround with {% raw %}{% endraw %} to protect the TeX markup from the Jekyll templating.

  1. inline $\frac{a}{b}$ and $\frac$ inline BAD

  2. inline $\frac{a}{b}$ and $\frac{{a}}{{b}}$ inline

  3. display BAD \[\frac{a}{b} + \frac\] display

  4. display

    \[\frac{a}{b} + \frac{{a}}{{b}}\]

    display

  5. display

    $$\frac{a}{b} + \frac{{a}}{{b}}$$

    display

MathML input

  1. inline ab inline

  2. display ab display