File: AsciiMath.rst

package info (click to toggle)
mathjax-docs 2.4%2B20140903-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 916 kB
  • ctags: 14
  • sloc: sh: 21; python: 19; makefile: 8
file content (55 lines) | stat: -rw-r--r-- 1,906 bytes parent folder | download | duplicates (4)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.. _configure-AsciiMath:

*****************************
The AsciiMath input processor
*****************************

The options below control the operation of the AsciiMath input
processor that is run when you include ``"input/AsciiMath"`` in the
`jax` array of your configuration or load a combined configuration
file that includes the AsciiMath input jax.  They are listed with
their default values.  To set any of these options, include a
``AsciiMath`` section in your :meth:`MathJax.Hub.Config()` call.  For
example

.. code-block:: javascript

    MathJax.Hub.Config({
      AsciiMath: {
        fixphi: true, 
        useMathMLspacing: true,
        displaystyle: false,
        decimalsign: "."
      }
    });

would set the ``displaystyle`` configuration option so that the limits
for operators like summation symbols will appear next to them rather
than above and below.

.. describe:: fixphi: true

    Determines whether MathJax will switch the Unicode values
    for ``phi`` and ``varphii``. If set to ``true`` MathJax will
    use the TeX mapping, otherwise the Unicode mapping.

.. describe:: useMathMLspacing: true

    Determines whether MathJax will use MathML spacing. Set to
    ``false`` to get TeX-like spacing.

.. describe:: displaystyle: true

    Determines whether operators like summation symbols will have
    their limits above and below the operators (true) or to their
    right (false).  The former is how they would appear in displayed
    equations that appear on their own lines, while the latter is
    better suited to in-line equations so that they don't interfere
    with the line spacing so much.

.. describe:: decimalsign: "."

    This is the character to be used for decimal points in numbers.
    if you change this to ``","``, then you need to be careful about
    entering points or intervals.  E.g., use ``(1, 2)`` rather than
    ``(1,2)`` in that case.