-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from mathjax/v2.6-latest
v2.6 documentation udpate
- Loading branch information
Showing
41 changed files
with
1,865 additions
and
853 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
.. _debugging-tips: | ||
|
||
********************** | ||
MathJax Debugging tips | ||
********************** | ||
|
||
This page documents basic tips for debugging MathJax in your application. | ||
|
||
|
||
Using unpacked resources | ||
======================== | ||
|
||
MathJax provides both packged (minified) and unpacked versions of all its components. For debugging, it is useful to switch to an unpacked versions. | ||
|
||
For example, using the MathJax CDN just add `unpacked/` before `MathJax.js`, e.g., from | ||
|
||
|
||
.. code-block:: html | ||
|
||
<script type="text/javascript" async | ||
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"> | ||
</script> | ||
|
||
to | ||
|
||
|
||
.. code-block:: html | ||
|
||
<script type="text/javascript" async | ||
src="https://cdn.mathjax.org/mathjax/latest/unpacked/MathJax.js?config=TeX-MML-AM_CHTML"> | ||
</script> | ||
|
||
|
||
Getting traceback information | ||
============================= | ||
|
||
.. code-block:: javascript | ||
MathJax.Hub.lastError | ||
MathJax stores the error object from the last `Math Processing Error` in `MathJax.Hub.lastError`. This allow developers to access the stack trace information when needed. | ||
|
||
|
||
Add listener for MathJax errors | ||
=============================== | ||
|
||
MathJax provides a detailed signaling infrastructure which a developers can hook into. | ||
|
||
The following example hooks into Math Processing Errors. | ||
|
||
.. code-block:: javascript | ||
MathJax.Hub.Register.MessageHook("Math Processing Error",function (message) { | ||
// do something with the error. message[2] is the Error object that records the problem. | ||
}); | ||
Another example hooks into TeX parsing errors. | ||
|
||
.. code-block:: javascript | ||
MathJax.Hub.Register.MessageHook("TeX Jax - parse error",function (message) { | ||
// do something with the error. message[1] will contain the data about the error. | ||
}); | ||
.. note:: | ||
|
||
For more information, see :ref:`mathjax-api`. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.. mathjax-node: | ||
***************************** | ||
MathJax-node API for NodeJS | ||
***************************** | ||
|
||
MathJax can be used in NodeJS via the `MathJax-node <https://github.com/mathjax/MathJax-node>`__ | ||
library. | ||
|
||
To install via NPM use | ||
|
||
.. code-block:: bash | ||
npm install mathjax-node | ||
For more information visit `the GitHub repository <https://github.com/mathjax/MathJax-node>`__. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.