Attention

Version 3 is now the current version of MathJax. This document is for version 2.

Combined Configurations

MathJax comes with a number of pre-defined and pre-compiled configuration files in the MathJax/config directory. The default.js file contains nearly all the possible configuration options together with comments explaining them, so you can use that file to customize MathJax to your needs. Simply load it via

<script type="text/javascript" src="path-to-MathJax/MathJax.js?config=default"></script>

where path-to-MathJax is the URL to the MathJax directory on your server or hard disk. If you are using MathJax from a CDN, you can view the contents of default.js as a reference, but you will not be able to edit the CDN copy. It is possible to use the CDN copy of MathJax with your own configuration file, however; see Using a Local Configuration File with the CDN for details.

The remaining files in the MathJax/config directory are combined configuration files that include not just configuration parameters but also the files that MathJax would need to load for those configurations; you can browse the directory on Github. Using one of these means MathJax will have to load fewer files, and since each file access requires establishing connections over the network, it can be faster to load one larger file than several smaller ones. See Loading and Configuring MathJax for more details about how to load configurations, and how to modify the parameters for a configuration file.

The following sections describe the contents of the combined configuration files. Each comes in two flavors: a standard version and a “full” version. The standard version simply defines the output processor(s) that are part of the configuration, but doesn’t load the code that implements the output processor. The full version loads the complete output processors, so everything that MathJax needs for the page should be loaded up front, and there will be no delay once the page is ready to be processed. To obtain the “full” version, add -full to the end of the configuration file name.

The TeX-MML-AM_CHTML configuration file

This configuration file is one of the most general of the pre-defined configurations. It loads all the main MathJax components, including the TeX, MathML, and AsciiMath preprocessors and input processors, the AMSmath, AMSsymbols, noErrors, and noUndefined TeX extensions, the CommonHTML output processor definitions, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  jax: ["input/TeX","input/MathML","input/AsciiMath","output/CommonHTML"],
  extensions: ["tex2jax.js","mml2jax.js","asciimath2jax.js","MathMenu.js","MathZoom.js","AssistiveMML.js", "a11y/accessibility-menu.js"],
  TeX: {
    extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
  }
});

In addition, it loads the mml Element Jax, the TeX, MathML, and AsciiMath input jax main code (not just the definition files), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the CommonHTML output jax main code, plus the CommonHTML mtable extension, which is normally loaded on demand.

See the tex2jax configuration section for other configuration options for the tex2jax preprocessor, and the TeX input jax configuration section for options that control the TeX input processor. See the mml2jax configuration section for other configuration options for the mml2jax preprocessor, and the MathML input jax configuration section for options that control the MathML input processor. See the asciimath2jax configuration section for other configuration options for the asciimath2jax preprocessor, and the AsciiMath input jax configuration section for options that control the AsciiMath input processor. See MathJax Output Formats for more information on CommonHTML output processor.

The TeX-MML-AM_HTMLorMML configuration file

This configuration file is one of the most general of the pre-defined configurations. It loads all the main MathJax components, including the TeX, MathML, and AsciiMath preprocessors and input processors, the AMSmath, AMSsymbols, noErrors, and noUndefined TeX extensions, both the native MathML and HTML-CSS output processor definitions, the fast-preview and AssistiveMML extensions, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  config: ["MMLorHTML.js"],
  jax: ["input/TeX","input/MathML","input/AsciiMath","output/HTML-CSS","output/NativeMML", "output/PreviewHTML"],
  extensions: ["tex2jax.js","mml2jax.js","asciimath2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js", "AssistiveMML.js", "a11y/accessibility-menu.js"],
  TeX: {
    extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
  }
});

In addition, it loads the mml Element Jax, the TeX, MathML, and AsciiMath input jax main code (not just the definition files), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the HTML-CSS, PreviewHTML, and NativeMML output jax main code, plus the HTML-CSS mtable extension, which is normally loaded on demand.

See the tex2jax configuration section for other configuration options for the tex2jax preprocessor, and the TeX input jax configuration section for options that control the TeX input processor. See the mml2jax configuration section for other configuration options for the mml2jax preprocessor, and the MathML input jax configuration section for options that control the MathML input processor. See the asciimath2jax configuration section for other configuration options for the asciimath2jax preprocessor, and the AsciiMath input jax configuration section for options that control the AsciiMath input processor. See MathJax Output Formats for more information on the NativeMML and HTML-CSS output processors. See the MMLorHTML configuration section for details on the options that control the MMLorHTML configuration.

The TeX-MML-AM_SVG configuration file

This configuration file is one of the most general of the pre-defined configurations. It loads all the main MathJax components, including the TeX, MathML, and AsciiMath preprocessors and input processors, the AMSmath, AMSsymbols, noErrors, and noUndefined TeX extensions, the SVG output processor, the fast-preview and AssistiveMML extensions, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  jax: ["input/TeX","input/MathML","input/AsciiMath","output/HTML-CSS","output/NativeMML", "output/PreviewHTML"],
  extensions: ["tex2jax.js","mml2jax.js","asciimath2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js", "AssistiveMML.js", "a11y/accessibility-menu.js"],
  TeX: {
    extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
  }
});

In addition, it loads the mml Element Jax, the TeX, MathML, and AsciiMath input jax main code (not just the definition files), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the SVG and PreviewHTML output jax main code, plus the SVG mtable extension, which is normally loaded on demand.

See the tex2jax configuration section for other configuration options for the tex2jax preprocessor, and the TeX input jax configuration section for options that control the TeX input processor. See the mml2jax configuration section for other configuration options for the mml2jax preprocessor, and the MathML input jax configuration section for options that control the MathML input processor. See the asciimath2jax configuration section for other configuration options for the asciimath2jax preprocessor, and the AsciiMath input jax configuration section for options that control the AsciiMath input processor. See MathJax Output Formats for more information on the SVG output processor.

The TeX-AMS-MML_HTMLorMML configuration file

This configuration file is a commonly used pre-defined configuration. It loads the most commonly used MathJax components, including the TeX and MathML preprocessors and input processors, the AMSmath, AMSsymbols, noErrors, and noUndefined TeX extensions, both the native MathML and HTML-with-CSS output processor definitions, the fast-preview and AssistiveMML extensions, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  config: ["MMLorHTML.js"],
  jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML", "output/PreviewHTML"],
  extensions: ["tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js", "AssistiveMML.js", "a11y/accessibility-menu.js"],
  TeX: {
    extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
  }
});

In addition, it loads the mml Element Jax, the TeX and MathML input jax main code (not just the definition files), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the HTML-CSS, PreviewHTML, and NativeMML output jax main code, plus the HTML-CSS mtable extension, which is normally loaded on demand.

See the tex2jax configuration section for other configuration options for the tex2jax preprocessor, and the TeX input jax configuration section for options that control the TeX input processor. See the mml2jax configuration section for other configuration options for the mml2jax preprocessor, and the MathML input jax configuration section for options that control the MathML input processor. See MathJax Output Formats for more information on the NativeMML and HTML-CSS output processors. See the MMLorHTML configuration section for details on the options that control the MMLorHTML configuration.

The TeX-AMS_CHTML configuration file

This configuration file is for sites that only use TeX format for their mathematics, and that want the output to be as close to TeX output as possible. This configuration uses the CommonHTML output jax. The user can still use the MathJax contextual menu to select any other output jax if they desire.

This file includes all the important MathJax components for TeX input and output, including the tex2jax preprocessor and TeX input jax, the AMSmath, AMSsymbols, noErrors, and noUndefined TeX extensions, the CommonHTML output, the AssistiveMML extensions, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  jax: ["input/TeX","output/CommonHTML"],
  extensions: ["tex2jax.js","MathMenu.js","MathZoom.js", "AssistiveMML.js", "a11y/accessibility-menu.js"],
  TeX: {
    extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
  }
});

In addition, it loads the mml Element Jax and the TeX input jax main code (not just the definition file), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the CommonHTML output jax main code, plus the CommonHTML mtable extension, which is normally loaded on demand.

See the tex2jax configuration section for other configuration options for the tex2jax preprocessor, and the TeX input jax configuration section for options that control the TeX input processor. See MathJax Output Formats for more information on the CommonHTML output processor.

The TeX-AMS_SVG configuration file

This configuration file is for sites that only use TeX format for their mathematics, and that want the output to be as close to TeX output as possible. This uses the SVG output jax. The user can still use the MathJax contextual menu to select another output jax if they desire.

This file includes all the important MathJax components for TeX input and output, including the tex2jax preprocessor and TeX input jax, the AMSmath, AMSsymbols, noErrors, and noUndefined TeX extensions, the SVG output processor, the fast-preview and AssistiveMML extensions, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  jax: ["input/TeX","output/SVG", "output/PreviewHTML"],
  extensions: ["tex2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js", "AssistiveMML.js", "a11y/accessibility-menu.js"],
  TeX: {
    extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
  }
});

In addition, it loads the mml Element Jax and the TeX input jax main code (not just the definition file), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the SVG and PreviewHTML output jax main code, plus the SVG mtable extension, which is normally loaded on demand.

See the tex2jax configuration section for other configuration options for the tex2jax preprocessor, and the TeX input jax configuration section for options that control the TeX input processor. See MathJax Output Formats for more information on the SVG output processor.

The TeX-AMS_HTML configuration file

This configuration file is for sites that only use TeX format for their mathematics, and that want the output to be as close to TeX output as possible. This uses the HTML-CSS output jax (even when the user’s browser understands MathML). The user can still use the MathJax contextual menu to select the NativeMML output jax if they desire.

This file includes all the important MathJax components for TeX input and output, including the tex2jax preprocessor and TeX input jax, the AMSmath, AMSsymbols, noErrors, and noUndefined TeX extensions, the HTML-with-CSS output processor definition, the fast-preview and AssistiveMML extensions, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  jax: ["input/TeX","output/HTML-CSS", "output/PreviewHTML"],
  extensions: ["tex2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js", "AssistiveMML.js", "a11y/accessibility-menu.js"],
  TeX: {
    extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
  }
});

In addition, it loads the mml Element Jax and the TeX input jax main code (not just the definition file), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the HTML-CSS and PreviewHTML output jax main code, plus the HTML-CSS mtable extension, which is normally loaded on demand.

See the tex2jax configuration section for other configuration options for the tex2jax preprocessor, and the TeX input jax configuration section for options that control the TeX input processor. See MathJax Output Formats for more information on the HTML-CSS output processor.

The MML_CHTML configuration file

This configuration file is for sites that only use MathML format for their mathematics. It will use the CommonHTML output. The user can still use the MathJax contextual menu to select any other output format if they desire.

This file includes all the important MathJax components for MathML input and output, including the mml2jax preprocessor and MathML input jax, the CommonHTML output processor definition files, the AssistiveMML extension, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  jax: ["input/MathML", "output/CommonHTML"],
  extensions: ["mml2jax.js","MathMenu.js","MathZoom.js", "AssistiveMML.js", "a11y/accessibility-menu.js"]
});

In addition, it loads the mml Element Jax and the MathML input jax main code (not just the definition file), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the CommonHTML output jax main code, plus the CommonHTML mtable extension, which is normally loaded on demand.

See the mml2jax configuration section for other configuration options for the mml2jax preprocessor, and the MathML input jax configuration section for options that control the MathML input processor. See MathJax Output Formats for more information on the CommonHTML output processor.

The MML_SVG configuration file

This configuration file is for sites that only use MathML format for their mathematics. It will use the SVG output. The user can still use the MathJax contextual menu to select the other output formats if they desire.

This file includes all the important MathJax components for MathML input and output, including the mml2jax preprocessor and MathML input jax, the SVG output processor definition files, the fast-preview and AssistiveMML extensions, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  jax: ["input/MathML","output/SVG", "output/PreviewHTML"],
  extensions: ["mml2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js", "AssistiveMML.js", "a11y/accessibility-menu.js"]
});

In addition, it loads the mml Element Jax and the MathML input jax main code (not just the definition file), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the SVG and PreviewHTML output jax main code files, plus the SVG mtable extension, which is normally loaded on demand.

See the mml2jax configuration section for other configuration options for the mml2jax preprocessor, and the MathML input jax configuration section for options that control the MathML input processor. See MathJax Output Formats for more information on the SVG output processor.

The MML_HTMLorMML configuration file

This configuration file is for sites that only use MathML format for their mathematics. It will use MathML output in browsers where that is supported well, and HTML-CSS output otherwise. The user can still use the MathJax contextual menu to select the other output format if they desire.

This file includes all the important MathJax components for MathML input and output, including the mml2jax preprocessor and MathML input jax, the NativeMML and HTML-CSS output processor definition files, the fast-preview and AssistiveMML extensions, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  config: ["MMLorHTML.js"],
  jax: ["input/MathML","output/HTML-CSS","output/NativeMML", "output/PreviewHTML"],
  extensions: ["mml2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js", "AssistiveMML.js", "a11y/accessibility-menu.js"]
});

In addition, it loads the mml Element Jax and the MathML input jax main code (not just the definition file), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the HTML-CSS, PreviewHTML, and NativeMML output jax main code files, plus the HTML-CSS mtable extension, which is normally loaded on demand.

See the mml2jax configuration section for other configuration options for the mml2jax preprocessor, and the MathML input jax configuration section for options that control the MathML input processor. See MathJax Output Formats for more information on the NativeMML and HTML-CSS output processors. See the MMLorHTML configuration section for details on the options that control the MMLorHTML configuration.

The AM_CHTML configuration file

This configuration file is for sites that only use AsciiMath format for their mathematics. It will use CommonHTML output. The user can still use the MathJax contextual menu to select the other output formats if they desire.

This file includes all the important MathJax components for AsciiMath input and output, including the asciimath2jax preprocessor and AsciiMath input jax, the CommonHTML output processor definition files, the AssistiveMML extension, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  jax: ["input/AsciiMath","output/CommonHTML"],
  extensions: ["asciimath2jax.js","MathMenu.js","MathZoom.js","AssistiveMML.js", "a11y/accessibility-menu.js"]
});

In addition, it loads the mml Element Jax and the TeX input jax main code (not just the definition file), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the CommonHTML output jax main code, plus the CommonHTML mtable extension, which is normally loaded on demand.

See the asciimath2jax configuration section for other configuration options for the asciimath2jax preprocessor, and the AsciiMath input jax configuration section for options that control the AsciiMath input processor. See MathJax Output Formats for more information on the CommonHTML output processors.

The AM_SVG configuration file

This configuration file is for sites that only use AsciiMath format for their mathematics. It will use SVG output. The user can still use the MathJax contextual menu to select the other output formats if they desire.

This file includes all the important MathJax components for AsciiMath input and output, including the asciimath2jax preprocessor and AsciiMath input jax, the CommonHTML output processor definition files, the fast-preview and AssistiveMML extensions, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  config: ["MMLorHTML.js"],
  jax: ["input/AsciiMath","output/SVG", "output/PreviewHTML",
  extensions: ["asciimath2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js","AssistiveMML.js", "a11y/accessibility-menu.js"]
});

In addition, it loads the mml Element Jax and the TeX input jax main code (not just the definition file), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the SVG and PreviewHTML output jax main code, plus the SVG mtable extension, which is normally loaded on demand.

See the asciimath2jax configuration section for other configuration options for the asciimath2jax preprocessor, and the AsciiMath input jax configuration section for options that control the AsciiMath input processor. See MathJax Output Formats for more information on the CommonHTML output processors.

The AM_HTMLorMML configuration file

This configuration file is for sites that only use AsciiMath format for their mathematics. It will use MathML output in browsers where that is supported well, and HTML-CSS output otherwise. The user can still use the MathJax contextual menu to select the other output format if they desire.

This file includes all the important MathJax components for AsciiMath input and output, including the asciimath2jax preprocessor and AsciiMath input jax, the NativeMML and HTML-CSS output processor definition files, the fast-preview and AssistiveMML extensions, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  config: ["MMLorHTML.js"],
  jax: ["input/AsciiMath","output/HTML-CSS","output/NativeMML", "output/PreviewHTML"],
  extensions: ["asciimath2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js", "AssistiveMML.js", "a11y/accessibility-menu.js"]
});

In addition, it loads the mml Element Jax and the TeX input jax main code (not just the definition file), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the HTML-CSS and PreviewHTML output jax main code, plus the HTML-CSS mtable extension, which is normally loaded on demand.

See the asciimath2jax configuration section for other configuration options for the asciimath2jax preprocessor, and the AsciiMath input jax configuration section for options that control the AsciiMath input processor. See MathJax Output Formats for more information on the HTML-CSS and NativeMML output processors. See the MMLorHTML configuration section for details on the options that control the MMLorHTML configuration.

The TeX-AMS-MML_SVG configuration file

This configuration file is the same as TeX-AMS-MML_HTMLorMML except that it uses the SVG output renderer rather than the NativeMML or HTML-CSS ones. It loads all the main MathJax components, including the TeX and MathML preprocessors and input processors, the AMSmath, AMSsymbols, noErrors, and noUndefined TeX extensions, the SVG output processor definitions, the fast-preview and AssistiveMML extensions, and the MathMenu and MathZoom extensions. It is equivalent to the following configuration:

MathJax.Hub.Config({
  jax: ["input/TeX","input/MathML","output/SVG", "output/PreviewHTML"],
  extensions: ["tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js", "AssistiveMML.js", "a11y/accessibility-menu.js"],
  TeX: {
    extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
  }
});

In addition, it loads the mml Element Jax, the TeX and MathML input jax main code (not just the definition files), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the SVG and PreviewHTML output jax main code, plus the SVG mtable extension, which is normally loaded on demand.

See the tex2jax configuration section for other configuration options for the tex2jax preprocessor, and the TeX input jax configuration section for options that control the TeX input processor. See the mml2jax configuration section for other configuration options for the mml2jax preprocessor, and the MathML input jax configuration section for options that control the MathML input processor. See MathJax Output Formats for more information on the SVG output processor.

The Accessible configuration file [Deprecated]

This configuration file is essentially the same as TeX-AMS-MML_HTMLorMML except that it includes options that are designed for assistive technology, particularly for those with visual challenges.

Warning

This file is deprecated since the controls that make MathJax work with screen readers are now available in the MathJax contextual menu and the AssistiveMML extension, and so there is no need to set them in the configuration file any longer. So you can use any of the other pre-defined configurations and readers with special needs should be able to change the MathJax settings themselves to be appropriate for their software.

The Accessible configuration is equivalent to the following:

MathJax.Hub.Config({
  config: ["MMLorHTML.js"],
  jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML", "output/PreviewHTML"],
  extensions: ["tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js", "AssistiveMML.js", "a11y/accessibility-menu.js"],
  TeX: {
    extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
  },
  menuSettings: {
    zoom: "Double-Click",
    mpContext: true,
    mpMouse: true
  },
  errorSettings: { message: ["[Math Error]"] }
});

This turns off the MathJax contextual menu for IE when MathPlayer is active, and passes mouse events on to MathPlayer to allow screen readers full access to MathPlayer. It also sets the zoom trigger to double-click, so that readers can see a larger version of the mathematics by double-clicking on any equation.

In addition, it loads the mml Element Jax, the TeX and MathML input jax main code (not just the definition files), as well as the toMathML extension, which is used by the Show Source option in the MathJax contextual menu. The -full version also loads the HTML-CSS, CommomHTML, and NativeMML output jax main code, plus the HTML-CSS mtable extension, which is normally loaded on demand.