Config Mathjax

Updated on

Tags: tool, web

Here’s how you can set up a basic configuration for MathJax, which usually meets most needs. For more detailed options, refer to the official documentation.

Fonts

  <script type="text/x-mathjax-config">
    MathJax.Hub.Config({
      "HTML-CSS": {
        availableFonts: [],
        preferredFont: null, // force Web fonts
        webFont: "Neo-Euler"
      }
    });
  </script>

Mathjax with Neo-Euler Font

Contextual Menu

If you want to disable the contextual menu, you can set the enableMenu option to false

MathJax = {
  options: {
    enableMenu: false
  }
};

Mathjax in HTML: Cannot select equations

MathJax output can’t be copied from the page in version 3. Version 3 uses CSS with content properties in order to insert the characters into the page, and content text is not selectable in the page. issues/2240 . Still you can use Mathjax 2.7 .

References


Similars