Back to Mathjax

Examples of MathJax in Node

server/examples.rst

latest1.7 KB
Original Source

.. _node-examples:

########################### Examples of MathJax in Node ###########################

There are a number of examples of using MathJax from within node documents available within this documentation.

  • :ref:node-components

    • :ref:A Complete Example (with Speech) <node-component-example>
  • :ref:node-preload

    • :ref:preload-import-tex
    • :ref:preload-import-newcm
    • :ref:preload-require-newcm
    • :ref:preload-import-cjs
    • :ref:preload-import-speech
  • :ref:node-direct

    • :ref:direct-tex2mml

    • :ref:direct-tex2chtml

      • :ref:direct-text2chtml-remove
      • :ref:direct-text2chtml-promise
      • :ref:direct-tex2chtml-font
    • :ref:direct-tex2chtml-mixed

    • :ref:direct-tex2speech

    • :ref:direct-tex2svg-page

  • :ref:Replacement for Sre.toSpeech() <v4-breaking-speech>


In addition, the MathJax Node Demos <https://github.com/mathjax/MathJax-demos-node#MathJax-demos-node>__ repository includes numerous examples of how to use MathJax from a node application. There are examples using modern ESM modules, and others using the older CommonJS format. These are each grouped into several categories that illustrate four different ways to access the MathJax code. The main examples use MathJax's LiteDOM implementation, but there are also some examples using other DOM replacements.

|btight|

  • Using MathJax components in ESM modules <https://github.com/mathjax/MathJax-demos-node/tree/master/mjs>__
  • Using MathJax components in CJS modules <https://github.com/mathjax/MathJax-demos-node/tree/master/cjs>__
  • Using MathJax with alternative DOM implementations <https://github.com/mathjax/MathJax-demos-node/tree/master/dom>__

|etight|

|-----|