File: noerrors.rst

package info (click to toggle)
mathjax-docs 3.2%2B20240903-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,184 kB
  • sloc: python: 31; javascript: 28; sh: 20; makefile: 8
file content (35 lines) | stat: -rw-r--r-- 945 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.. _tex-noerrors:

########
noerrors
########

The `noerrors` extension prevents TeX error messages from being
displayed and shows the original TeX code instead.

.. note::
   
   In version 2 of MathJax, you could configure the CSS that
   applied to the display of the original TeX.  In version 3, the
   original TeX is shown via an `merror` MathML element instead.

.. note::
   
   In version 2, this extension was included in all the combined
   configuration files that contain the TeX input jax, but in MathJax
   version 3, you must load it explicitly if you want to use it.

To load the `noerrors` extension, add ``'[tex]/noerrors'`` to the
``load`` array of the ``loader`` block of your MathJax configuration,
and add ``'noerrors'`` to the ``packages`` array of the ``tex`` block.

.. code-block:: javascript

   window.MathJax = {
     loader: {load: ['[tex]/noerrors']},
     tex: {packages: {'[+]': ['noerrors']}}
   };



|-----|