Why doesn't adding MathJax to Page header work?

I’ve tried adding:

<script type="text/x-mathjax-config">
    tex2jax: {
      inlineMath: [ ['$','$'], ["\\(","\\)"] ],
      processEscapes: true

<script type="text/javascript" async

both with and without tags to the page’s HTML header field. And a formula in an HTML element on the page is not rendered. But if you include the above into an HTML element with $$\int a$$ for example, then it is rendered.

So essentially you have to include the above script into every place you want to use LaTeX. Is there any way around this?

This topic was automatically closed after 70 days. New replies are no longer allowed.