Sha256: 74ce2c771428d771ddda35108b560db28fcb534a156c66666fbb76b4b0dec16f

Contents?: true

Size: 1.71 KB

Versions: 18

Compression:

Stored size: 1.71 KB

Contents

.. _configure-jsMath2jax:

***************************
The jsMath2jax Preprocessor
***************************

The options below control the operation of the `jsMath2jax`
preprocessor that is run when you include ``"jsMath2jax.js"`` in the
`extensions` array of your configuration.  They are listed with their
default values.  To set any of these options, include a ``jsMath2jax``
section in your :meth:`MathJax.Hub.Config()` call.  For example

.. code-block:: javascript

    MathJax.Hub.Config({
      jsMath2jax: {
        preview: "none"
      }
    });

would set the ``preview`` parameter to ``"none"``.


.. describe:: element: null

    The id name of the element that should be processed by `jsMath2jax`.
    The default is the whole document.

.. describe:: preview: "TeX"

    This controls whether `jsMath2jax` inserts ``MathJax_Preview`` spans
    to make a preview available, and what preview to use, when it
    locates in-line or display mathematics in the page.  The default
    is ``"TeX"``, which means use the TeX code as the preview (which
    will be visible until it is processed by MathJax).  Set to
    ``"none"`` to prevent previews from being inserted (the math
    will simply disappear until it is typeset).  Set to an array
    containing the description of an HTML snippet in order to use the
    same preview for all equations on the page.

    Examples:

    .. code-block:: javascript

        preview: ["[math]"],     //  insert the text "[math]" as the preview

    .. code-block:: javascript

        preview: [["img",{src: "/images/mypic.jpg"}]],  // insert an image as the preview

    See the :ref:`description of HTML snippets <html-snippets>` for
    details on how to represent HTML code in this way.

Version data entries

18 entries across 9 versions & 3 rubygems

Version Path
amiba-1.0.2 lib/amiba/frontend/public/javascript/MathJax/docs/rst/options/jsMath2jax.rst
amiba-1.0.2 lib/amiba/frontend/public/javascript/MathJax/docs/html/_sources/options/jsMath2jax.txt
amiba-1.0.1 lib/amiba/frontend/public/javascript/MathJax/docs/html/_sources/options/jsMath2jax.txt
amiba-1.0.1 lib/amiba/frontend/public/javascript/MathJax/docs/rst/options/jsMath2jax.rst
amiba-1.0.0 lib/amiba/frontend/public/javascript/MathJax/docs/html/_sources/options/jsMath2jax.txt
amiba-1.0.0 lib/amiba/frontend/public/javascript/MathJax/docs/rst/options/jsMath2jax.rst
amiba-0.0.9 lib/amiba/frontend/public/javascript/MathJax/docs/html/_sources/options/jsMath2jax.txt
amiba-0.0.9 lib/amiba/frontend/public/javascript/MathJax/docs/rst/options/jsMath2jax.rst
gollum-1.3.1 lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/jsMath2jax.txt
gollum-1.3.1 lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/jsMath2jax.rst
jugyo-gollum-1.3.1 lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/jsMath2jax.rst
jugyo-gollum-1.3.1 lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/jsMath2jax.txt
gollum-1.2.1 lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/jsMath2jax.rst
gollum-1.2.1 lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/jsMath2jax.txt
gollum-1.3.0 lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/jsMath2jax.txt
gollum-1.3.0 lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/jsMath2jax.rst
gollum-1.2.0 lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/jsMath2jax.rst
gollum-1.2.0 lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/jsMath2jax.txt