Search code examples
mathtexmathjax

Mathjax - How to show preloader while math is typesetted?


How can i show a preloder like [loading...] until the Maths is typeset fully.Now the TeX code is shown as such until the typesetting is over.


Solution

  • You can use

    <script type="text/x-mathjax-config">
    MathJax.Hub.Config({
      tex2jax: {
        preview: ["[loading...]"]
      }
    });
    </script>
    

    to use [loading...] instead of the TeX code as the preview. See the tex2jax configuration documentation for details.