Fix more typos (from Carol Fisher)
This commit is contained in:
parent
8f2a215067
commit
c90cf9d285
|
@ -160,8 +160,8 @@ The ``Accessible`` configuration file
|
|||
================================================
|
||||
|
||||
This configuration file is essentially the same as
|
||||
``TeX-AMS-MML_HTMLorMML`` except that it includes configuration that is
|
||||
designed for assitive technology, particularly for those with visual
|
||||
``TeX-AMS-MML_HTMLorMML`` except that it includes options that are
|
||||
designed for assistive technology, particularly for those with visual
|
||||
challenges. It is equivalent to the following configuration:
|
||||
|
||||
.. code-block:: javascript
|
||||
|
@ -178,7 +178,7 @@ challenges. It is equivalent to the following configuration:
|
|||
errorSettings: { message: ["[Math Error]"] }
|
||||
});
|
||||
|
||||
This turns off the MathJax contextual Message for Internet Explorer, since
|
||||
This turns off the MathJax contextual menu for Internet Explorer, since
|
||||
it can interfere with some screen readers. It also sets the zoom trigger
|
||||
to double-click, so that readers can see a larger version of the
|
||||
mathematics but double-clicking on any equation.
|
||||
|
|
|
@ -32,7 +32,7 @@ would set the ``preferredFont`` option to the :term:`STIX` fonts.
|
|||
|
||||
.. describe:: minScaleAdjust: 50
|
||||
|
||||
This gives a minimum scale (as a percent) for the scaling used my
|
||||
This gives a minimum scale (as a percent) for the scaling used by
|
||||
MathJax to match the equation to the surrounding text. This will
|
||||
prevent MathJax from making the mathematics too small.
|
||||
|
||||
|
@ -57,7 +57,7 @@ would set the ``preferredFont`` option to the :term:`STIX` fonts.
|
|||
This is the web-based font to use when none of the fonts listed
|
||||
above are available on the user's computer. Note that currently
|
||||
only the `TeX` font is available in a web-based form (they are
|
||||
stored in the ``fonts/HTML-CSS`` folder in the MathJax directory.
|
||||
stored in the ``fonts/HTML-CSS`` folder in the MathJax directory).
|
||||
Set this to ``null`` to disable web fonts.
|
||||
|
||||
.. describe:: imageFont: "TeX"
|
||||
|
@ -65,7 +65,7 @@ would set the ``preferredFont`` option to the :term:`STIX` fonts.
|
|||
This is the font to use for image fallback mode (when none of the
|
||||
fonts listed above are available and the browser doesn't support
|
||||
web-fonts via the ``@font-face`` CSS directive). Note that currently
|
||||
only the TeX font is available as an image font (they are stores
|
||||
only the TeX font is available as an image font (they are stored
|
||||
in the ``fonts/HTML-CSS`` directory).
|
||||
|
||||
Set this to ``null`` if you want to prevent the use of image fonts
|
||||
|
|
|
@ -20,7 +20,7 @@ in your :meth:`MathJax.Hub.Config()` call. For example
|
|||
}
|
||||
});
|
||||
|
||||
would set the ``prefer`` option so that Opera browser would prefer
|
||||
would set the ``prefer`` option so that the Opera browser would prefer
|
||||
MathML to HTML-CSS output (while leaving the settings for other
|
||||
browsers unchanged).
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ would set the ``delay`` option to 600 milliseconds.
|
|||
.. describe:: showRenderer: true
|
||||
|
||||
This controls whether the "Math Renderer" item will be displayed in
|
||||
the the "Settings" submenu of the mathematics contextual menu. It
|
||||
the "Settings" submenu of the mathematics contextual menu. It
|
||||
allows the user to change between the `HTML-CSS` and `NativeMML`
|
||||
output processors for the mathematics on the page. Set to
|
||||
``false`` to prevent this menu item from showing.
|
||||
|
@ -43,9 +43,9 @@ would set the ``delay`` option to 600 milliseconds.
|
|||
.. describe:: showContext: false
|
||||
|
||||
This controls whether the "Contextual Menu" item will be displayed
|
||||
in the the "Settings" submenu of the mathematics contextual menu.
|
||||
in the "Settings" submenu of the mathematics contextual menu.
|
||||
It allows the user to decide whether the MathJax menu or the
|
||||
browser's default contextual manu will be shown when the context
|
||||
browser's default contextual menu will be shown when the context
|
||||
menu click occurs over mathematics typeset by MathJax. (The main
|
||||
reason to allow pass-through to the browser's menu is to gain
|
||||
access to the MathPlayer contextual menu when the NativeMML output
|
||||
|
@ -56,7 +56,7 @@ would set the ``delay`` option to 600 milliseconds.
|
|||
.. describe:: showFontMenu: false
|
||||
|
||||
This controls whether the "Font Preference" item will be displayed
|
||||
in the the "Settings" submenu of the mathematics contextual menu.
|
||||
in the "Settings" submenu of the mathematics contextual menu.
|
||||
This submenu lets the user select what font to use in the
|
||||
mathematics produced by the `HTML-CSS` output processor. Note that
|
||||
changing the selection in the font menu will cause the page to
|
||||
|
|
|
@ -18,13 +18,13 @@ in your :meth:`MathJax.Hub.Config()` call. For example
|
|||
}
|
||||
});
|
||||
|
||||
would set the ``sale`` option to 105 percent.
|
||||
would set the ``scale`` option to 105 percent.
|
||||
|
||||
.. describe:: scale: 100
|
||||
|
||||
The scaling factor (as a percentage) of math with respect to the
|
||||
surrounding text. Since the `NativeMML` output relies on the
|
||||
browser's natiove MathML support, MathJax does not control the
|
||||
browser's native MathML support, MathJax does not control the
|
||||
font size used in the mathematics. You may need to set this value
|
||||
to compensate for the size selected by the browser. The user can
|
||||
also adjust this value using the contextual menu item associated
|
||||
|
@ -49,7 +49,7 @@ would set the ``sale`` option to 105 percent.
|
|||
|
||||
There is a separate menu setting for MSIE since the code to handle
|
||||
that is a bit delicate; if it turns out to have unexpected
|
||||
consequences, you can turn it off without turing off other the
|
||||
consequences, you can turn it off without turning off the
|
||||
menu support in other browsers.
|
||||
|
||||
.. describe:: styles: {}
|
||||
|
|
|
@ -47,7 +47,7 @@ to be defined within the TeX input processor.
|
|||
This lists macros to define before the TeX input processor begins.
|
||||
These are name:value pairs where the `name` gives the name of the TeX
|
||||
macro to be defined, and `value` gives the replacement text for the
|
||||
macro. The `value` canbe an array of the form `[value,n]`, where
|
||||
macro. The `value` can be an array of the form `[value,n]`, where
|
||||
`value` is the replacement text and `n` is the number of parameters
|
||||
for the macro. Note that since the `value` is a javascript string,
|
||||
backslashes in the replacement text must be doubled to prevent them
|
||||
|
@ -64,12 +64,12 @@ to be defined within the TeX input processor.
|
|||
|
||||
would ask the TeX processor to define two new macros: ``\RR``,
|
||||
which produces a bold-face "R", and ``\bold{...}``, which takes one
|
||||
parameter and set it in the bold-face font.
|
||||
parameter and sets it in the bold-face font.
|
||||
|
||||
.. describe:: MAXMACROS: 10000
|
||||
|
||||
Because a definition of the form ``\def\x{\x} \x`` would cause MathJax
|
||||
to loop infinitely, the `MAXMACROS` constant will limit the nuber of
|
||||
to loop infinitely, the `MAXMACROS` constant will limit the number of
|
||||
macro substitutions allowed in any expression processed by MathJax.
|
||||
|
||||
.. describe:: MAXBUFFER: 5*1024
|
||||
|
@ -78,4 +78,4 @@ to be defined within the TeX input processor.
|
|||
infinitely, and at the same time stack up lots of a's in MathJax's
|
||||
equation buffer, the `MAXBUFFER` constant is used to limit the size of
|
||||
the string being processed by MathJax. It is set to 5KB, which should
|
||||
be sufficient for any reasonable equation.
|
||||
be sufficient for any reasonable equation.
|
||||
|
|
|
@ -52,11 +52,11 @@ behavior of MathJax. They are given with their default values.
|
|||
are not using one of the preprocessors, you need to insert
|
||||
something extra into your HTML file in order to avoid a bug in
|
||||
Internet Explorer. IE removes spaces from the DOM that it thinks
|
||||
are redundent, and since a ``<script>`` tag usually doesn't add
|
||||
are redundant, and since a ``<script>`` tag usually doesn't add
|
||||
content to the page, if there is a space before and after a
|
||||
MathJax ``<script>`` tag, IE will remove the first space. When
|
||||
MathJax inserts the typeset mathematics, this means there will be
|
||||
no space before it and the preceeding text. In order to avoid
|
||||
no space before it and the preceding text. In order to avoid
|
||||
this, you should include some "guard characters" before or after
|
||||
the math SCRIPT tag; define the patterns you want to use below.
|
||||
Note that these are used as regular expressions, so you will need
|
||||
|
@ -81,14 +81,14 @@ behavior of MathJax. They are given with their default values.
|
|||
|
||||
.. describe:: preRemoveClass: "MathJax_Preview"
|
||||
|
||||
The CSS class for a math preview to be removed preceeding a
|
||||
MathJax SCRIPT tag. If the tag just before the MathJax
|
||||
``<script>`` tag is of this class, its contents are removed when
|
||||
MathJax processes the ``<script>`` tag. This allows you to
|
||||
include a math preview in a form that will be displayed prior to
|
||||
MathJax performing its typesetting. It also avoids the Internet
|
||||
Explorer space-removal bug, and can be used in place of ``preJax``
|
||||
and ``postJax`` if that is more convenient.
|
||||
This is the CSS class name for math previews that will be removed
|
||||
preceding a MathJax SCRIPT tag. If the tag just before the
|
||||
MathJax ``<script>`` tag is of this class, its contents are
|
||||
removed when MathJax processes the ``<script>`` tag. This allows
|
||||
you to include a math preview in a form that will be displayed
|
||||
prior to MathJax performing its typesetting. It also avoids the
|
||||
Internet Explorer space-removal bug, and can be used in place of
|
||||
``preJax`` and ``postJax`` if that is more convenient.
|
||||
|
||||
For example
|
||||
|
||||
|
@ -103,7 +103,7 @@ behavior of MathJax. They are given with their default values.
|
|||
|
||||
.. describe:: showProcessingMessages: true
|
||||
|
||||
This value controls whether the `Processing Math: nn%` message are
|
||||
This value controls whether the `Processing Math: nn%` messages are
|
||||
displayed in the lower left-hand corner. Set to ``false`` to
|
||||
prevent those messages (though file loading and other messages
|
||||
will still be shown).
|
||||
|
@ -128,10 +128,10 @@ behavior of MathJax. They are given with their default values.
|
|||
|
||||
.. describe:: delayStartupUntil: "none"
|
||||
|
||||
Normally MathJax will perform its starup commands (loading of
|
||||
Normally MathJax will perform its startup commands (loading of
|
||||
configuration, styles, jax, and so on) as soon as it can. If you
|
||||
expect to be doing additional configuration on the page, however,
|
||||
you may want to have it wait until the page's onload hander is
|
||||
you may want to have it wait until the page's onload handler is
|
||||
called. If so, set this to ``"onload"``. You can also set this to
|
||||
``"configured"``, in which case, MathJax will delay its startup until
|
||||
you explicitly call :meth:`MathJax.Hub.Configured()`. See
|
||||
|
@ -195,7 +195,7 @@ behavior of MathJax. They are given with their default values.
|
|||
than simply crash, MathJax can report an error and go on. The
|
||||
options you can set include:
|
||||
|
||||
.. describe:: message: ["[Math Processing Error"]]
|
||||
.. describe:: message: ["[Math Processing Error]"]
|
||||
|
||||
This is an HTML snippet that will be inserted at the location
|
||||
of the mathematics for any formula that causes MathJax to
|
||||
|
@ -217,4 +217,4 @@ behavior of MathJax. They are given with their default values.
|
|||
explicit configuration in the event that the `jax` array is empty
|
||||
after configuration is complete. If you really intend that array to
|
||||
be empty, set this flag to ``false``. Note that setting this to false
|
||||
does **not** cause a default configuration file to be loaded.
|
||||
does **not** cause a default configuration file to be loaded.
|
||||
|
|
|
@ -42,7 +42,7 @@ For example,
|
|||
});
|
||||
|
||||
is a configuration that includes two settings for the MathJax Hub (one
|
||||
for `showProcessingMessages` and one of the `jax` array), and a
|
||||
for `showProcessingMessages` and one for the `jax` array), and a
|
||||
configuration object for the TeX input processor. The latter includes
|
||||
a setting for the TeX input processor's `TagSide` option (to set tags
|
||||
on the left rather than the right) and a setting for `Macros`, which
|
||||
|
|
|
@ -30,7 +30,7 @@ preprocessor.
|
|||
.. describe:: inlineMath: [['\\\(','\\\)']]
|
||||
|
||||
Array of pairs of strings that are to be used as in-line math
|
||||
delimters. The first in each pair is the initial delimiter and
|
||||
delimiters. The first in each pair is the initial delimiter and
|
||||
the second is the terminal delimiter. You can have as many pairs
|
||||
as you want. For example,
|
||||
|
||||
|
@ -51,7 +51,7 @@ preprocessor.
|
|||
|
||||
.. describe:: displayMath: [ ['$$','$$'], ['\\\[','\\\]'] ]
|
||||
|
||||
Array of pairs of strings that are to be used as delimters for
|
||||
Array of pairs of strings that are to be used as delimiters for
|
||||
displayed equations. The first in each pair is the initial
|
||||
delimiter and the second is the terminal delimiter. You can have
|
||||
as many pairs as you want.
|
||||
|
@ -74,7 +74,7 @@ preprocessor.
|
|||
.. describe:: processEnvironments: true
|
||||
|
||||
When ``true``, `tex2jax` looks not only for the in-line and
|
||||
display math delimters, but also for LaTeX environments
|
||||
display math delimiters, but also for LaTeX environments
|
||||
(``\begin{something}...\end{something}``) and marks them for
|
||||
processing by MathJax. When ``false``, LaTeX environments will
|
||||
not be processed outside of math mode.
|
||||
|
|
|
@ -183,8 +183,8 @@ details on the options that control the <tt class="docutils literal"><span class
|
|||
<div class="section" id="the-accessible-configuration-file">
|
||||
<h2>The <tt class="docutils literal"><span class="pre">Accessible</span></tt> configuration file<a class="headerlink" href="#the-accessible-configuration-file" title="Permalink to this headline">¶</a></h2>
|
||||
<p>This configuration file is essentially the same as
|
||||
<tt class="docutils literal"><span class="pre">TeX-AMS-MML_HTMLorMML</span></tt> except that it includes configuration that is
|
||||
designed for assitive technology, particularly for those with visual
|
||||
<tt class="docutils literal"><span class="pre">TeX-AMS-MML_HTMLorMML</span></tt> except that it includes options that are
|
||||
designed for assistive technology, particularly for those with visual
|
||||
challenges. It is equivalent to the following configuration:</p>
|
||||
<div class="highlight-javascript"><div class="highlight"><pre><span class="nx">MathJax</span><span class="p">.</span><span class="nx">Hub</span><span class="p">.</span><span class="nx">Config</span><span class="p">({</span>
|
||||
<span class="nx">config</span><span class="o">:</span> <span class="p">[</span><span class="s2">"MMLorHTML.js"</span><span class="p">],</span>
|
||||
|
@ -199,7 +199,7 @@ challenges. It is equivalent to the following configuration:</p>
|
|||
<span class="p">});</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>This turns off the MathJax contextual Message for Internet Explorer, since
|
||||
<p>This turns off the MathJax contextual menu for Internet Explorer, since
|
||||
it can interfere with some screen readers. It also sets the zoom trigger
|
||||
to double-click, so that readers can see a larger version of the
|
||||
mathematics but double-clicking on any equation.</p>
|
||||
|
|
|
@ -81,7 +81,7 @@ menu item associated with the typeset mathematics.</p>
|
|||
<dl class="describe">
|
||||
<dt>
|
||||
<tt class="descname">minScaleAdjust: 50</tt></dt>
|
||||
<dd><p>This gives a minimum scale (as a percent) for the scaling used my
|
||||
<dd><p>This gives a minimum scale (as a percent) for the scaling used by
|
||||
MathJax to match the equation to the surrounding text. This will
|
||||
prevent MathJax from making the mathematics too small.</p>
|
||||
</dd></dl>
|
||||
|
@ -112,7 +112,7 @@ than one is available on the user’s computer.</p>
|
|||
<dd><p>This is the web-based font to use when none of the fonts listed
|
||||
above are available on the user’s computer. Note that currently
|
||||
only the <cite>TeX</cite> font is available in a web-based form (they are
|
||||
stored in the <tt class="docutils literal"><span class="pre">fonts/HTML-CSS</span></tt> folder in the MathJax directory.
|
||||
stored in the <tt class="docutils literal"><span class="pre">fonts/HTML-CSS</span></tt> folder in the MathJax directory).
|
||||
Set this to <tt class="docutils literal"><span class="pre">null</span></tt> to disable web fonts.</p>
|
||||
</dd></dl>
|
||||
|
||||
|
@ -122,7 +122,7 @@ Set this to <tt class="docutils literal"><span class="pre">null</span></tt> to d
|
|||
<dd><p>This is the font to use for image fallback mode (when none of the
|
||||
fonts listed above are available and the browser doesn’t support
|
||||
web-fonts via the <tt class="docutils literal"><span class="pre">@font-face</span></tt> CSS directive). Note that currently
|
||||
only the TeX font is available as an image font (they are stores
|
||||
only the TeX font is available as an image font (they are stored
|
||||
in the <tt class="docutils literal"><span class="pre">fonts/HTML-CSS</span></tt> directory).</p>
|
||||
<p>Set this to <tt class="docutils literal"><span class="pre">null</span></tt> if you want to prevent the use of image fonts
|
||||
(e.g., you have deleted or not installed the image fonts on your
|
||||
|
|
|
@ -67,7 +67,7 @@ in your <tt class="xref py py-meth docutils literal"><span class="pre">MathJax.H
|
|||
<span class="p">});</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>would set the <tt class="docutils literal"><span class="pre">prefer</span></tt> option so that Opera browser would prefer
|
||||
<p>would set the <tt class="docutils literal"><span class="pre">prefer</span></tt> option so that the Opera browser would prefer
|
||||
MathML to HTML-CSS output (while leaving the settings for other
|
||||
browsers unchanged).</p>
|
||||
<p>Note that if you use the <tt class="docutils literal"><span class="pre">MMLorHTML.js</span></tt> configuration file, you should
|
||||
|
|
|
@ -86,7 +86,7 @@ selects that item, the browser opens a new window with this URL.</p>
|
|||
<dt>
|
||||
<tt class="descname">showRenderer: true</tt></dt>
|
||||
<dd><p>This controls whether the “Math Renderer” item will be displayed in
|
||||
the the “Settings” submenu of the mathematics contextual menu. It
|
||||
the “Settings” submenu of the mathematics contextual menu. It
|
||||
allows the user to change between the <cite>HTML-CSS</cite> and <cite>NativeMML</cite>
|
||||
output processors for the mathematics on the page. Set to
|
||||
<tt class="docutils literal"><span class="pre">false</span></tt> to prevent this menu item from showing.</p>
|
||||
|
@ -96,9 +96,9 @@ output processors for the mathematics on the page. Set to
|
|||
<dt>
|
||||
<tt class="descname">showContext: false</tt></dt>
|
||||
<dd><p>This controls whether the “Contextual Menu” item will be displayed
|
||||
in the the “Settings” submenu of the mathematics contextual menu.
|
||||
in the “Settings” submenu of the mathematics contextual menu.
|
||||
It allows the user to decide whether the MathJax menu or the
|
||||
browser’s default contextual manu will be shown when the context
|
||||
browser’s default contextual menu will be shown when the context
|
||||
menu click occurs over mathematics typeset by MathJax. (The main
|
||||
reason to allow pass-through to the browser’s menu is to gain
|
||||
access to the MathPlayer contextual menu when the NativeMML output
|
||||
|
@ -110,7 +110,7 @@ processor is used in Internet Explorer with the <a class="reference external" hr
|
|||
<dt>
|
||||
<tt class="descname">showFontMenu: false</tt></dt>
|
||||
<dd><p>This controls whether the “Font Preference” item will be displayed
|
||||
in the the “Settings” submenu of the mathematics contextual menu.
|
||||
in the “Settings” submenu of the mathematics contextual menu.
|
||||
This submenu lets the user select what font to use in the
|
||||
mathematics produced by the <cite>HTML-CSS</cite> output processor. Note that
|
||||
changing the selection in the font menu will cause the page to
|
||||
|
|
|
@ -65,13 +65,13 @@ in your <tt class="xref py py-meth docutils literal"><span class="pre">MathJax.H
|
|||
<span class="p">});</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>would set the <tt class="docutils literal"><span class="pre">sale</span></tt> option to 105 percent.</p>
|
||||
<p>would set the <tt class="docutils literal"><span class="pre">scale</span></tt> option to 105 percent.</p>
|
||||
<dl class="describe">
|
||||
<dt>
|
||||
<tt class="descname">scale: 100</tt></dt>
|
||||
<dd><p>The scaling factor (as a percentage) of math with respect to the
|
||||
surrounding text. Since the <cite>NativeMML</cite> output relies on the
|
||||
browser’s natiove MathML support, MathJax does not control the
|
||||
browser’s native MathML support, MathJax does not control the
|
||||
font size used in the mathematics. You may need to set this value
|
||||
to compensate for the size selected by the browser. The user can
|
||||
also adjust this value using the contextual menu item associated
|
||||
|
@ -99,7 +99,7 @@ more details.</p>
|
|||
<tt class="descname">showMathMenuMSIE: true</tt></dt>
|
||||
<dd><p>There is a separate menu setting for MSIE since the code to handle
|
||||
that is a bit delicate; if it turns out to have unexpected
|
||||
consequences, you can turn it off without turing off other the
|
||||
consequences, you can turn it off without turning off the
|
||||
menu support in other browsers.</p>
|
||||
</dd></dl>
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ the value to leave sufficient margin for tags.</p>
|
|||
<dd><p>This lists macros to define before the TeX input processor begins.
|
||||
These are name:value pairs where the <cite>name</cite> gives the name of the TeX
|
||||
macro to be defined, and <cite>value</cite> gives the replacement text for the
|
||||
macro. The <cite>value</cite> canbe an array of the form <cite>[value,n]</cite>, where
|
||||
macro. The <cite>value</cite> can be an array of the form <cite>[value,n]</cite>, where
|
||||
<cite>value</cite> is the replacement text and <cite>n</cite> is the number of parameters
|
||||
for the macro. Note that since the <cite>value</cite> is a javascript string,
|
||||
backslashes in the replacement text must be doubled to prevent them
|
||||
|
@ -114,14 +114,14 @@ from acting as javascript escape characters.</p>
|
|||
</div>
|
||||
<p>would ask the TeX processor to define two new macros: <tt class="docutils literal"><span class="pre">\RR</span></tt>,
|
||||
which produces a bold-face “R”, and <tt class="docutils literal"><span class="pre">\bold{...}</span></tt>, which takes one
|
||||
parameter and set it in the bold-face font.</p>
|
||||
parameter and sets it in the bold-face font.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="describe">
|
||||
<dt>
|
||||
<tt class="descname">MAXMACROS: 10000</tt></dt>
|
||||
<dd><p>Because a definition of the form <tt class="docutils literal"><span class="pre">\def\x{\x}</span> <span class="pre">\x</span></tt> would cause MathJax
|
||||
to loop infinitely, the <cite>MAXMACROS</cite> constant will limit the nuber of
|
||||
to loop infinitely, the <cite>MAXMACROS</cite> constant will limit the number of
|
||||
macro substitutions allowed in any expression processed by MathJax.</p>
|
||||
</dd></dl>
|
||||
|
||||
|
|
|
@ -109,11 +109,11 @@ time.</p>
|
|||
are not using one of the preprocessors, you need to insert
|
||||
something extra into your HTML file in order to avoid a bug in
|
||||
Internet Explorer. IE removes spaces from the DOM that it thinks
|
||||
are redundent, and since a <tt class="docutils literal"><span class="pre"><script></span></tt> tag usually doesn’t add
|
||||
are redundant, and since a <tt class="docutils literal"><span class="pre"><script></span></tt> tag usually doesn’t add
|
||||
content to the page, if there is a space before and after a
|
||||
MathJax <tt class="docutils literal"><span class="pre"><script></span></tt> tag, IE will remove the first space. When
|
||||
MathJax inserts the typeset mathematics, this means there will be
|
||||
no space before it and the preceeding text. In order to avoid
|
||||
no space before it and the preceding text. In order to avoid
|
||||
this, you should include some “guard characters” before or after
|
||||
the math SCRIPT tag; define the patterns you want to use below.
|
||||
Note that these are used as regular expressions, so you will need
|
||||
|
@ -138,14 +138,14 @@ scripts must be enclosed in double brackets.</p>
|
|||
<dl class="describe">
|
||||
<dt>
|
||||
<tt class="descname">preRemoveClass: "MathJax_Preview"</tt></dt>
|
||||
<dd><p>The CSS class for a math preview to be removed preceeding a
|
||||
MathJax SCRIPT tag. If the tag just before the MathJax
|
||||
<tt class="docutils literal"><span class="pre"><script></span></tt> tag is of this class, its contents are removed when
|
||||
MathJax processes the <tt class="docutils literal"><span class="pre"><script></span></tt> tag. This allows you to
|
||||
include a math preview in a form that will be displayed prior to
|
||||
MathJax performing its typesetting. It also avoids the Internet
|
||||
Explorer space-removal bug, and can be used in place of <tt class="docutils literal"><span class="pre">preJax</span></tt>
|
||||
and <tt class="docutils literal"><span class="pre">postJax</span></tt> if that is more convenient.</p>
|
||||
<dd><p>This is the CSS class name for math previews that will be removed
|
||||
preceding a MathJax SCRIPT tag. If the tag just before the
|
||||
MathJax <tt class="docutils literal"><span class="pre"><script></span></tt> tag is of this class, its contents are
|
||||
removed when MathJax processes the <tt class="docutils literal"><span class="pre"><script></span></tt> tag. This allows
|
||||
you to include a math preview in a form that will be displayed
|
||||
prior to MathJax performing its typesetting. It also avoids the
|
||||
Internet Explorer space-removal bug, and can be used in place of
|
||||
<tt class="docutils literal"><span class="pre">preJax</span></tt> and <tt class="docutils literal"><span class="pre">postJax</span></tt> if that is more convenient.</p>
|
||||
<p>For example</p>
|
||||
<div class="highlight-html"><div class="highlight"><pre><span class="nt"><span</span> <span class="na">class=</span><span class="s">"MathJax_Preview"</span><span class="nt">></span>[math]<span class="nt"></span><script </span><span class="na">type=</span><span class="s">"math/tex"</span><span class="nt">></span><span class="p">...</span><span class="nt"></script></span>
|
||||
</pre></div>
|
||||
|
@ -158,7 +158,7 @@ to typeset it.</p>
|
|||
<dl class="describe">
|
||||
<dt>
|
||||
<tt class="descname">showProcessingMessages: true</tt></dt>
|
||||
<dd><p>This value controls whether the <cite>Processing Math: nn%</cite> message are
|
||||
<dd><p>This value controls whether the <cite>Processing Math: nn%</cite> messages are
|
||||
displayed in the lower left-hand corner. Set to <tt class="docutils literal"><span class="pre">false</span></tt> to
|
||||
prevent those messages (though file loading and other messages
|
||||
will still be shown).</p>
|
||||
|
@ -188,10 +188,10 @@ displayed equations.</p>
|
|||
<dl class="describe">
|
||||
<dt>
|
||||
<tt class="descname">delayStartupUntil: "none"</tt></dt>
|
||||
<dd><p>Normally MathJax will perform its starup commands (loading of
|
||||
<dd><p>Normally MathJax will perform its startup commands (loading of
|
||||
configuration, styles, jax, and so on) as soon as it can. If you
|
||||
expect to be doing additional configuration on the page, however,
|
||||
you may want to have it wait until the page’s onload hander is
|
||||
you may want to have it wait until the page’s onload handler is
|
||||
called. If so, set this to <tt class="docutils literal"><span class="pre">"onload"</span></tt>. You can also set this to
|
||||
<tt class="docutils literal"><span class="pre">"configured"</span></tt>, in which case, MathJax will delay its startup until
|
||||
you explicitly call <tt class="xref py py-meth docutils literal"><span class="pre">MathJax.Hub.Configured()</span></tt>. See
|
||||
|
@ -269,7 +269,7 @@ than simply crash, MathJax can report an error and go on. The
|
|||
options you can set include:</p>
|
||||
<dl class="describe">
|
||||
<dt>
|
||||
<tt class="descname">message: ["[Math Processing Error"]]</tt></dt>
|
||||
<tt class="descname">message: ["[Math Processing Error]"]</tt></dt>
|
||||
<dd><p>This is an HTML snippet that will be inserted at the location
|
||||
of the mathematics for any formula that causes MathJax to
|
||||
produce an internal error (i.e., an error in the MathJax code
|
||||
|
|
|
@ -84,7 +84,7 @@ configuration options for the component.</p>
|
|||
</pre></div>
|
||||
</div>
|
||||
<p>is a configuration that includes two settings for the MathJax Hub (one
|
||||
for <cite>showProcessingMessages</cite> and one of the <cite>jax</cite> array), and a
|
||||
for <cite>showProcessingMessages</cite> and one for the <cite>jax</cite> array), and a
|
||||
configuration object for the TeX input processor. The latter includes
|
||||
a setting for the TeX input processor’s <cite>TagSide</cite> option (to set tags
|
||||
on the left rather than the right) and a setting for <cite>Macros</cite>, which
|
||||
|
|
|
@ -78,7 +78,7 @@ The default is the whole document.</p>
|
|||
<dt>
|
||||
<tt class="descname">inlineMath: [['\(','\)']]</tt></dt>
|
||||
<dd><p>Array of pairs of strings that are to be used as in-line math
|
||||
delimters. The first in each pair is the initial delimiter and
|
||||
delimiters. The first in each pair is the initial delimiter and
|
||||
the second is the terminal delimiter. You can have as many pairs
|
||||
as you want. For example,</p>
|
||||
<div class="highlight-javascript"><div class="highlight"><pre><span class="nx">inlineMath</span><span class="o">:</span> <span class="p">[</span> <span class="p">[</span><span class="s1">'$'</span><span class="p">,</span><span class="s1">'$'</span><span class="p">],</span> <span class="p">[</span><span class="s1">'\\('</span><span class="p">,</span><span class="s1">'\\)'</span><span class="p">]</span> <span class="p">]</span>
|
||||
|
@ -98,7 +98,7 @@ include text, not tags, as your math delimiters.</p>
|
|||
<dl class="describe">
|
||||
<dt>
|
||||
<tt class="descname">displayMath: [ ['$$','$$'], ['\[','\]'] ]</tt></dt>
|
||||
<dd><p>Array of pairs of strings that are to be used as delimters for
|
||||
<dd><p>Array of pairs of strings that are to be used as delimiters for
|
||||
displayed equations. The first in each pair is the initial
|
||||
delimiter and the second is the terminal delimiter. You can have
|
||||
as many pairs as you want.</p>
|
||||
|
@ -124,7 +124,7 @@ sign in the rendered document.</p>
|
|||
<dt>
|
||||
<tt class="descname">processEnvironments: true</tt></dt>
|
||||
<dd><p>When <tt class="docutils literal"><span class="pre">true</span></tt>, <cite>tex2jax</cite> looks not only for the in-line and
|
||||
display math delimters, but also for LaTeX environments
|
||||
display math delimiters, but also for LaTeX environments
|
||||
(<tt class="docutils literal"><span class="pre">\begin{something}...\end{something}</span></tt>) and marks them for
|
||||
processing by MathJax. When <tt class="docutils literal"><span class="pre">false</span></tt>, LaTeX environments will
|
||||
not be processed outside of math mode.</p>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -160,8 +160,8 @@ The ``Accessible`` configuration file
|
|||
================================================
|
||||
|
||||
This configuration file is essentially the same as
|
||||
``TeX-AMS-MML_HTMLorMML`` except that it includes configuration that is
|
||||
designed for assitive technology, particularly for those with visual
|
||||
``TeX-AMS-MML_HTMLorMML`` except that it includes options that are
|
||||
designed for assistive technology, particularly for those with visual
|
||||
challenges. It is equivalent to the following configuration:
|
||||
|
||||
.. code-block:: javascript
|
||||
|
@ -178,7 +178,7 @@ challenges. It is equivalent to the following configuration:
|
|||
errorSettings: { message: ["[Math Error]"] }
|
||||
});
|
||||
|
||||
This turns off the MathJax contextual Message for Internet Explorer, since
|
||||
This turns off the MathJax contextual menu for Internet Explorer, since
|
||||
it can interfere with some screen readers. It also sets the zoom trigger
|
||||
to double-click, so that readers can see a larger version of the
|
||||
mathematics but double-clicking on any equation.
|
||||
|
|
|
@ -32,7 +32,7 @@ would set the ``preferredFont`` option to the :term:`STIX` fonts.
|
|||
|
||||
.. describe:: minScaleAdjust: 50
|
||||
|
||||
This gives a minimum scale (as a percent) for the scaling used my
|
||||
This gives a minimum scale (as a percent) for the scaling used by
|
||||
MathJax to match the equation to the surrounding text. This will
|
||||
prevent MathJax from making the mathematics too small.
|
||||
|
||||
|
@ -57,7 +57,7 @@ would set the ``preferredFont`` option to the :term:`STIX` fonts.
|
|||
This is the web-based font to use when none of the fonts listed
|
||||
above are available on the user's computer. Note that currently
|
||||
only the `TeX` font is available in a web-based form (they are
|
||||
stored in the ``fonts/HTML-CSS`` folder in the MathJax directory.
|
||||
stored in the ``fonts/HTML-CSS`` folder in the MathJax directory).
|
||||
Set this to ``null`` to disable web fonts.
|
||||
|
||||
.. describe:: imageFont: "TeX"
|
||||
|
@ -65,7 +65,7 @@ would set the ``preferredFont`` option to the :term:`STIX` fonts.
|
|||
This is the font to use for image fallback mode (when none of the
|
||||
fonts listed above are available and the browser doesn't support
|
||||
web-fonts via the ``@font-face`` CSS directive). Note that currently
|
||||
only the TeX font is available as an image font (they are stores
|
||||
only the TeX font is available as an image font (they are stored
|
||||
in the ``fonts/HTML-CSS`` directory).
|
||||
|
||||
Set this to ``null`` if you want to prevent the use of image fonts
|
||||
|
|
|
@ -20,7 +20,7 @@ in your :meth:`MathJax.Hub.Config()` call. For example
|
|||
}
|
||||
});
|
||||
|
||||
would set the ``prefer`` option so that Opera browser would prefer
|
||||
would set the ``prefer`` option so that the Opera browser would prefer
|
||||
MathML to HTML-CSS output (while leaving the settings for other
|
||||
browsers unchanged).
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ would set the ``delay`` option to 600 milliseconds.
|
|||
.. describe:: showRenderer: true
|
||||
|
||||
This controls whether the "Math Renderer" item will be displayed in
|
||||
the the "Settings" submenu of the mathematics contextual menu. It
|
||||
the "Settings" submenu of the mathematics contextual menu. It
|
||||
allows the user to change between the `HTML-CSS` and `NativeMML`
|
||||
output processors for the mathematics on the page. Set to
|
||||
``false`` to prevent this menu item from showing.
|
||||
|
@ -43,9 +43,9 @@ would set the ``delay`` option to 600 milliseconds.
|
|||
.. describe:: showContext: false
|
||||
|
||||
This controls whether the "Contextual Menu" item will be displayed
|
||||
in the the "Settings" submenu of the mathematics contextual menu.
|
||||
in the "Settings" submenu of the mathematics contextual menu.
|
||||
It allows the user to decide whether the MathJax menu or the
|
||||
browser's default contextual manu will be shown when the context
|
||||
browser's default contextual menu will be shown when the context
|
||||
menu click occurs over mathematics typeset by MathJax. (The main
|
||||
reason to allow pass-through to the browser's menu is to gain
|
||||
access to the MathPlayer contextual menu when the NativeMML output
|
||||
|
@ -56,7 +56,7 @@ would set the ``delay`` option to 600 milliseconds.
|
|||
.. describe:: showFontMenu: false
|
||||
|
||||
This controls whether the "Font Preference" item will be displayed
|
||||
in the the "Settings" submenu of the mathematics contextual menu.
|
||||
in the "Settings" submenu of the mathematics contextual menu.
|
||||
This submenu lets the user select what font to use in the
|
||||
mathematics produced by the `HTML-CSS` output processor. Note that
|
||||
changing the selection in the font menu will cause the page to
|
||||
|
|
|
@ -18,13 +18,13 @@ in your :meth:`MathJax.Hub.Config()` call. For example
|
|||
}
|
||||
});
|
||||
|
||||
would set the ``sale`` option to 105 percent.
|
||||
would set the ``scale`` option to 105 percent.
|
||||
|
||||
.. describe:: scale: 100
|
||||
|
||||
The scaling factor (as a percentage) of math with respect to the
|
||||
surrounding text. Since the `NativeMML` output relies on the
|
||||
browser's natiove MathML support, MathJax does not control the
|
||||
browser's native MathML support, MathJax does not control the
|
||||
font size used in the mathematics. You may need to set this value
|
||||
to compensate for the size selected by the browser. The user can
|
||||
also adjust this value using the contextual menu item associated
|
||||
|
@ -49,7 +49,7 @@ would set the ``sale`` option to 105 percent.
|
|||
|
||||
There is a separate menu setting for MSIE since the code to handle
|
||||
that is a bit delicate; if it turns out to have unexpected
|
||||
consequences, you can turn it off without turing off other the
|
||||
consequences, you can turn it off without turning off the
|
||||
menu support in other browsers.
|
||||
|
||||
.. describe:: styles: {}
|
||||
|
|
|
@ -47,7 +47,7 @@ to be defined within the TeX input processor.
|
|||
This lists macros to define before the TeX input processor begins.
|
||||
These are name:value pairs where the `name` gives the name of the TeX
|
||||
macro to be defined, and `value` gives the replacement text for the
|
||||
macro. The `value` canbe an array of the form `[value,n]`, where
|
||||
macro. The `value` can be an array of the form `[value,n]`, where
|
||||
`value` is the replacement text and `n` is the number of parameters
|
||||
for the macro. Note that since the `value` is a javascript string,
|
||||
backslashes in the replacement text must be doubled to prevent them
|
||||
|
@ -64,12 +64,12 @@ to be defined within the TeX input processor.
|
|||
|
||||
would ask the TeX processor to define two new macros: ``\RR``,
|
||||
which produces a bold-face "R", and ``\bold{...}``, which takes one
|
||||
parameter and set it in the bold-face font.
|
||||
parameter and sets it in the bold-face font.
|
||||
|
||||
.. describe:: MAXMACROS: 10000
|
||||
|
||||
Because a definition of the form ``\def\x{\x} \x`` would cause MathJax
|
||||
to loop infinitely, the `MAXMACROS` constant will limit the nuber of
|
||||
to loop infinitely, the `MAXMACROS` constant will limit the number of
|
||||
macro substitutions allowed in any expression processed by MathJax.
|
||||
|
||||
.. describe:: MAXBUFFER: 5*1024
|
||||
|
@ -78,4 +78,4 @@ to be defined within the TeX input processor.
|
|||
infinitely, and at the same time stack up lots of a's in MathJax's
|
||||
equation buffer, the `MAXBUFFER` constant is used to limit the size of
|
||||
the string being processed by MathJax. It is set to 5KB, which should
|
||||
be sufficient for any reasonable equation.
|
||||
be sufficient for any reasonable equation.
|
||||
|
|
|
@ -52,11 +52,11 @@ behavior of MathJax. They are given with their default values.
|
|||
are not using one of the preprocessors, you need to insert
|
||||
something extra into your HTML file in order to avoid a bug in
|
||||
Internet Explorer. IE removes spaces from the DOM that it thinks
|
||||
are redundent, and since a ``<script>`` tag usually doesn't add
|
||||
are redundant, and since a ``<script>`` tag usually doesn't add
|
||||
content to the page, if there is a space before and after a
|
||||
MathJax ``<script>`` tag, IE will remove the first space. When
|
||||
MathJax inserts the typeset mathematics, this means there will be
|
||||
no space before it and the preceeding text. In order to avoid
|
||||
no space before it and the preceding text. In order to avoid
|
||||
this, you should include some "guard characters" before or after
|
||||
the math SCRIPT tag; define the patterns you want to use below.
|
||||
Note that these are used as regular expressions, so you will need
|
||||
|
@ -81,14 +81,14 @@ behavior of MathJax. They are given with their default values.
|
|||
|
||||
.. describe:: preRemoveClass: "MathJax_Preview"
|
||||
|
||||
The CSS class for a math preview to be removed preceeding a
|
||||
MathJax SCRIPT tag. If the tag just before the MathJax
|
||||
``<script>`` tag is of this class, its contents are removed when
|
||||
MathJax processes the ``<script>`` tag. This allows you to
|
||||
include a math preview in a form that will be displayed prior to
|
||||
MathJax performing its typesetting. It also avoids the Internet
|
||||
Explorer space-removal bug, and can be used in place of ``preJax``
|
||||
and ``postJax`` if that is more convenient.
|
||||
This is the CSS class name for math previews that will be removed
|
||||
preceding a MathJax SCRIPT tag. If the tag just before the
|
||||
MathJax ``<script>`` tag is of this class, its contents are
|
||||
removed when MathJax processes the ``<script>`` tag. This allows
|
||||
you to include a math preview in a form that will be displayed
|
||||
prior to MathJax performing its typesetting. It also avoids the
|
||||
Internet Explorer space-removal bug, and can be used in place of
|
||||
``preJax`` and ``postJax`` if that is more convenient.
|
||||
|
||||
For example
|
||||
|
||||
|
@ -103,7 +103,7 @@ behavior of MathJax. They are given with their default values.
|
|||
|
||||
.. describe:: showProcessingMessages: true
|
||||
|
||||
This value controls whether the `Processing Math: nn%` message are
|
||||
This value controls whether the `Processing Math: nn%` messages are
|
||||
displayed in the lower left-hand corner. Set to ``false`` to
|
||||
prevent those messages (though file loading and other messages
|
||||
will still be shown).
|
||||
|
@ -128,10 +128,10 @@ behavior of MathJax. They are given with their default values.
|
|||
|
||||
.. describe:: delayStartupUntil: "none"
|
||||
|
||||
Normally MathJax will perform its starup commands (loading of
|
||||
Normally MathJax will perform its startup commands (loading of
|
||||
configuration, styles, jax, and so on) as soon as it can. If you
|
||||
expect to be doing additional configuration on the page, however,
|
||||
you may want to have it wait until the page's onload hander is
|
||||
you may want to have it wait until the page's onload handler is
|
||||
called. If so, set this to ``"onload"``. You can also set this to
|
||||
``"configured"``, in which case, MathJax will delay its startup until
|
||||
you explicitly call :meth:`MathJax.Hub.Configured()`. See
|
||||
|
@ -195,7 +195,7 @@ behavior of MathJax. They are given with their default values.
|
|||
than simply crash, MathJax can report an error and go on. The
|
||||
options you can set include:
|
||||
|
||||
.. describe:: message: ["[Math Processing Error"]]
|
||||
.. describe:: message: ["[Math Processing Error]"]
|
||||
|
||||
This is an HTML snippet that will be inserted at the location
|
||||
of the mathematics for any formula that causes MathJax to
|
||||
|
@ -217,4 +217,4 @@ behavior of MathJax. They are given with their default values.
|
|||
explicit configuration in the event that the `jax` array is empty
|
||||
after configuration is complete. If you really intend that array to
|
||||
be empty, set this flag to ``false``. Note that setting this to false
|
||||
does **not** cause a default configuration file to be loaded.
|
||||
does **not** cause a default configuration file to be loaded.
|
||||
|
|
|
@ -42,7 +42,7 @@ For example,
|
|||
});
|
||||
|
||||
is a configuration that includes two settings for the MathJax Hub (one
|
||||
for `showProcessingMessages` and one of the `jax` array), and a
|
||||
for `showProcessingMessages` and one for the `jax` array), and a
|
||||
configuration object for the TeX input processor. The latter includes
|
||||
a setting for the TeX input processor's `TagSide` option (to set tags
|
||||
on the left rather than the right) and a setting for `Macros`, which
|
||||
|
|
|
@ -30,7 +30,7 @@ preprocessor.
|
|||
.. describe:: inlineMath: [['\\\(','\\\)']]
|
||||
|
||||
Array of pairs of strings that are to be used as in-line math
|
||||
delimters. The first in each pair is the initial delimiter and
|
||||
delimiters. The first in each pair is the initial delimiter and
|
||||
the second is the terminal delimiter. You can have as many pairs
|
||||
as you want. For example,
|
||||
|
||||
|
@ -51,7 +51,7 @@ preprocessor.
|
|||
|
||||
.. describe:: displayMath: [ ['$$','$$'], ['\\\[','\\\]'] ]
|
||||
|
||||
Array of pairs of strings that are to be used as delimters for
|
||||
Array of pairs of strings that are to be used as delimiters for
|
||||
displayed equations. The first in each pair is the initial
|
||||
delimiter and the second is the terminal delimiter. You can have
|
||||
as many pairs as you want.
|
||||
|
@ -74,7 +74,7 @@ preprocessor.
|
|||
.. describe:: processEnvironments: true
|
||||
|
||||
When ``true``, `tex2jax` looks not only for the in-line and
|
||||
display math delimters, but also for LaTeX environments
|
||||
display math delimiters, but also for LaTeX environments
|
||||
(``\begin{something}...\end{something}``) and marks them for
|
||||
processing by MathJax. When ``false``, LaTeX environments will
|
||||
not be processed outside of math mode.
|
||||
|
|
Loading…
Reference in New Issue
Block a user