More typo fixes in the documentation (from Carol Fisher -- I'm sure there are more to come)
This commit is contained in:
parent
4dd789801c
commit
46d64e2030
|
@ -88,8 +88,8 @@ to a server geographically near you, for a fast, reliable connection.
|
|||
|
||||
The CDN hosts the most current version of MathJax, as well as older
|
||||
versions, so you can either link to a version that stays up-to-date as
|
||||
Mathjax is improved, or you can stay with one of the release versions so
|
||||
that you pages always use the same version of MathJax.
|
||||
MathJax is improved, or you can stay with one of the release versions so
|
||||
that your pages always use the same version of MathJax.
|
||||
|
||||
The URL that you use to obtain MathJax determines the version that you
|
||||
get. The CDN has the following directory structure:
|
||||
|
@ -112,7 +112,7 @@ with patches that would correspond to releases that might be numbers 1.1a,
|
|||
distribution (they likely won't be).
|
||||
|
||||
We may occasionally introduce directories for betas, as indicated above,
|
||||
but they will be temprorary, and will be removed after the official
|
||||
but they will be temporary, and will be removed after the official
|
||||
release.
|
||||
|
||||
To load from a particular release, use the directory for that release.
|
||||
|
@ -143,7 +143,7 @@ Configuring MathJax
|
|||
===================
|
||||
|
||||
There are two ways to configure MathJax: via a configuration file, or by
|
||||
including configuration commands wthin the web page itself. These can be
|
||||
including configuration commands within the web page itself. These can be
|
||||
used independently, or in combination. For example, you can load a main
|
||||
pre-defined configuration file, but include in-line commands to
|
||||
adjust the configuration to your needs.
|
||||
|
@ -178,7 +178,7 @@ stored in the ``MathJax/config`` directory. Among these are the following
|
|||
|
||||
.. describe:: TeX-AMS_HTML.js
|
||||
|
||||
Allows math to be specified in TeX or LaTeX notation (with the
|
||||
Allows math to be specified in TeX or LaTeX notation, with the
|
||||
`AMSmath` and `AMSsymbols` packages included, and produces output
|
||||
using the HTML-CSS output processor.
|
||||
|
||||
|
@ -208,7 +208,7 @@ component will require a separate file to be loaded, and that can cause
|
|||
delays before the mathematics is displayed. The combined configuration
|
||||
files load the majority of the needed files all as one large file, reducing
|
||||
the number of network requests that are needed. That means you will
|
||||
probably be getting the componets that MathJax needs faster than you would
|
||||
probably be getting the components that MathJax needs faster than you would
|
||||
without the combined file, but you may be loading components that are never
|
||||
actually used; that is the trade off.
|
||||
|
||||
|
@ -219,7 +219,7 @@ output processors. For example, with ``TeX-AMS_HTML.js`` and
|
|||
``TeX-AMS_HTML-full.js``, the latter includes the complete HTML-CSS output
|
||||
processor. The "full" configuration files are substantially larger (on
|
||||
the order of 70KB), so you need to decide whether it is worth loading the
|
||||
full configuraiton for your pages.
|
||||
full configuration for your pages.
|
||||
|
||||
If most of your pages include mathematics, then it is to your advantage to
|
||||
load the full version, but if you are including MathJax in a theme file for
|
||||
|
@ -261,7 +261,7 @@ can use
|
|||
src="path-to-MathJax/MathJax.js?config=TeX-AMS_HTML,local/local">
|
||||
</script>
|
||||
|
||||
to first load the main configuraiton, then the local modifications. You
|
||||
to first load the main configuration, then the local modifications. You
|
||||
can also load MathJax from the CDN and a local configuration from your own
|
||||
server:
|
||||
|
||||
|
@ -315,7 +315,7 @@ For instance,
|
|||
This example includes the `tex2jax` preprocessor and configures it to use
|
||||
both the standard :term:`TeX` and :term:`LaTeX` math delimiters. It uses
|
||||
the `TeX` input processor and the `HTML-CSS` output processor, and forces the
|
||||
HTML-CSS processor to use the TeX fonts rather that other locally installed
|
||||
HTML-CSS processor to use the TeX fonts rather than other locally installed
|
||||
fonts (e.g., :term:`STIX` fonts). See the :ref:`configuration options
|
||||
<configuration>` section (or the comments in the ``config/default.js``
|
||||
file) for more information about the configuration options that you can
|
||||
|
@ -323,9 +323,9 @@ include in the :meth:`MathJax.Hub.Config()` call. Note that this
|
|||
configuration does **not** load any pre-defined configuration file.
|
||||
|
||||
Note that you can combine in-line configuration with file-based
|
||||
configuration, simply include ``text/x-mathjax-config`` scripts as above,
|
||||
configuration; simply include ``text/x-mathjax-config`` scripts as above,
|
||||
but also include ``config=filename`` when you load the ``MathJax.js``
|
||||
file. For example, the `tex2jax` preprocessor does **not** the TeX
|
||||
file. For example, the `tex2jax` preprocessor does **not** enable the TeX
|
||||
single-dollar in-line math delimiters by default. You can load one of the
|
||||
pre-defined configuration files that include the TeX preprocessor, and use
|
||||
an in-line configuration block to enable the single-dollar signs:
|
||||
|
@ -376,11 +376,12 @@ used a combined configuration file, however, it already includes all the
|
|||
main files that MathJax needs, so there is not much loss in delaying the
|
||||
startup.)
|
||||
|
||||
You can set ``delayStartupUntil=configured`` in order to delay the startup
|
||||
configuration until the :meth:`MathJax.Hub.Configured()` method is
|
||||
called. This allows you to delay startup until later on the page, but
|
||||
then restart MathJax configuration process as soon as possible rather than
|
||||
waiting for the entire page to load. For example, you could use
|
||||
You can set ``delayStartupUntil=configured`` in order to delay the
|
||||
startup configuration until the :meth:`MathJax.Hub.Configured()`
|
||||
method is called. This allows you to delay startup until later on the
|
||||
page, but then restart the MathJax configuration process as soon as
|
||||
possible rather than waiting for the entire page to load. For
|
||||
example, you could use
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
|
@ -398,7 +399,7 @@ in your theme's header file, and
|
|||
|
||||
in its footer, so that MathJax will delay setting up until the footer is
|
||||
reached, but will not have to wait until images and other files are
|
||||
laoded. If you have ``text/x-mathjax-config`` script tags within the main
|
||||
loaded. If you have ``text/x-mathjax-config`` script tags within the main
|
||||
body of the document, MathJax will read and process those before
|
||||
continuing its startup. In this way you can use a default configuration
|
||||
that can be modified on a page-by-page basis.
|
||||
|
|
|
@ -50,7 +50,7 @@ date or out of date). If MathJax needs updating, use
|
|||
cd MathJax
|
||||
git pull origin
|
||||
|
||||
to udpate your copy of MathJax to the current release version. If you
|
||||
to update your copy of MathJax to the current release version. If you
|
||||
keep MathJax updated in this way, you will be sure that you have the
|
||||
latest bug fixes and new features as they become available.
|
||||
|
||||
|
@ -144,7 +144,7 @@ use
|
|||
cd MathJax
|
||||
svn update
|
||||
|
||||
to udpate your copy of MathJax to the current release version. If you
|
||||
to update your copy of MathJax to the current release version. If you
|
||||
keep MathJax updated in this way, you will be sure that you have the
|
||||
latest bug fixes and new features as they become available.
|
||||
|
||||
|
@ -162,7 +162,7 @@ described below. You can use
|
|||
|
||||
to check out revision number `nnn`, but it is not easy to tell what
|
||||
svn revision number is associated with a particular release. GitHub's
|
||||
``svn`` service doesn't appear to allow you to sepecify a particular
|
||||
``svn`` service doesn't appear to allow you to specify a particular
|
||||
tagged version.
|
||||
|
||||
|
||||
|
@ -194,13 +194,13 @@ right), you can also select the ``Download .tar.gz`` or ``Download
|
|||
MathJax that contains all the latest changes and bug-fixes. You can
|
||||
also get older tagged versions (if there are any).
|
||||
|
||||
If a packaged release recevies any important updates, then those
|
||||
If a packaged release receives any important updates, then those
|
||||
updates will be part of the `branch` for that version. The link to
|
||||
the ``.zip`` file in the download list will be the original release
|
||||
version, not the patched version. To obtain the patched version, use
|
||||
the `Branches` drop down menu (at the far left of the menus within the
|
||||
page) to select the release branch that you want (for example
|
||||
``v1.1-latest``), and then use the downlaod button and the ``Downlaod
|
||||
``v1.1-latest``), and then use the download button and the ``Download
|
||||
.tar.gz`` or ``Download .zip`` button to get the latest patched
|
||||
version of that release.
|
||||
|
||||
|
@ -240,7 +240,7 @@ a different site. For example, a departmental server at
|
|||
``www.math.yourcollege.edu`` might like to use a college-wide
|
||||
installation at ``www.yourcollege.edu`` rather than installing a
|
||||
separate copy on the departmental machine. MathJax can certainly
|
||||
be loaded from another server, but there is one imporant caveat ---
|
||||
be loaded from another server, but there is one important caveat ---
|
||||
Firefox's and IE9's same-origin security policy for cross-domain scripting.
|
||||
|
||||
Firefox's interpretation of the same-origin policy is more strict than most
|
||||
|
@ -302,7 +302,7 @@ from your hard disk. Firefox's interpretation of the same-origin
|
|||
policy for local files is that the "same domain" for a page is the
|
||||
directory where that page exists, or any of its subdirectories. So if
|
||||
you use MathJax in a page with a ``file://`` URL, and if MathJax is
|
||||
loaded from a diretory other than the one containing the original
|
||||
loaded from a directory other than the one containing the original
|
||||
page, then MathJax will not be able to access the web-based fonts in
|
||||
Firefox. In that case, MathJax will fall back on image fonts to
|
||||
display the mathematics.
|
||||
|
|
|
@ -22,10 +22,10 @@ image-based, and so it is available for search engines, meaning that
|
|||
your equations can be searchable, just like the text of your pages.
|
||||
MathJax allows page authors to write formulas using TeX and LaTeX
|
||||
notation, or `MathML <http://www.w3.org/TR/MathML3>`_, a World Wide
|
||||
Web Constortium standard for representing mathematics in XML format.
|
||||
Web Consortium standard for representing mathematics in XML format.
|
||||
MathJax will even convert TeX notation into MathML, so that it can be
|
||||
rendered more quickly by those browsers that support MathML natively,
|
||||
or so that you can copy and past it into other programs.
|
||||
or so that you can copy and paste it into other programs.
|
||||
|
||||
MathJax is modular, so it loads components only when necessary, and
|
||||
can be extended to include new capabilities as needed. MathJax is
|
||||
|
|
|
@ -47,7 +47,7 @@ that, and otherwise use HTML-with-CSS to display the mathematics.
|
|||
This is the most general configuration, and should suffice for most
|
||||
people's needs. Other configurations are available, however, and you
|
||||
can also provide additional configuration parameters to taylor one of
|
||||
the confiogurations to your needs. More details can be found in the
|
||||
the configurations to your needs. More details can be found in the
|
||||
:ref:`Loading and Configuring MathJax <loading>` instructions.
|
||||
|
||||
The use of ``cdn.mathjax.org`` is governed by its `terms of service
|
||||
|
@ -123,7 +123,7 @@ Configuring your copy of MathJax
|
|||
When you include MathJax into your web pages as described below, it
|
||||
will load the file ``config/TeX-AMS-MML_HTMLorMML.js`` (i.e., the file
|
||||
named ``TeX-AMS-MML_HTMLorMML.js`` in the ``config`` folder of the
|
||||
main ``MathJax`` folder). This file preloads all the most comply-used
|
||||
main ``MathJax`` folder). This file preloads all the most commonly-used
|
||||
components of MathJax, allowing it to process mathematics that is in
|
||||
the TeX or LaTeX format, or in MathML notation. It will produce
|
||||
output in MathML form if the user's browser supports that, and will use
|
||||
|
@ -138,7 +138,7 @@ described more fully in :ref:`Common Configurations
|
|||
|
||||
Note: The configuration process has changed in MathJax v1.1, so if you have
|
||||
existing pages that use MathJax, you may need to modify the tag that
|
||||
loads MathJax so that is conforms with the new configuration process.
|
||||
loads MathJax so that it conforms with the new configuration process.
|
||||
See :ref:`Installing and Configuring MathJax <installation>` for more
|
||||
details.
|
||||
|
||||
|
@ -233,7 +233,7 @@ See the ``config/default.js`` file, or the :ref:`tex2jax configuration
|
|||
options <configure-tex2jax>` page, for additional configuration
|
||||
parameters that you can specify for the `tex2jax` preprocessor,
|
||||
which is the component of MathJax that identifies TeX notation within
|
||||
the page). See the :ref:`TeX and LaTeX <TeX-support>` page for
|
||||
the page. See the :ref:`TeX and LaTeX <TeX-support>` page for
|
||||
more on MathJax's support for TeX.
|
||||
|
||||
Here is a complete sample page containing TeX mathematics (also available
|
||||
|
|
|
@ -116,8 +116,8 @@ handled by servers around the world. That means that you should get access
|
|||
to a server geographically near you, for a fast, reliable connection.</p>
|
||||
<p>The CDN hosts the most current version of MathJax, as well as older
|
||||
versions, so you can either link to a version that stays up-to-date as
|
||||
Mathjax is improved, or you can stay with one of the release versions so
|
||||
that you pages always use the same version of MathJax.</p>
|
||||
MathJax is improved, or you can stay with one of the release versions so
|
||||
that your pages always use the same version of MathJax.</p>
|
||||
<p>The URL that you use to obtain MathJax determines the version that you
|
||||
get. The CDN has the following directory structure:</p>
|
||||
<div class="highlight-sh"><div class="highlight"><pre>mathjax/ <span class="c"># project-name</span>
|
||||
|
@ -136,7 +136,7 @@ with patches that would correspond to releases that might be numbers 1.1a,
|
|||
1.1b, etc., even if such releases are not actually prepared for
|
||||
distribution (they likely won’t be).</p>
|
||||
<p>We may occasionally introduce directories for betas, as indicated above,
|
||||
but they will be temprorary, and will be removed after the official
|
||||
but they will be temporary, and will be removed after the official
|
||||
release.</p>
|
||||
<p>To load from a particular release, use the directory for that release.
|
||||
For example,</p>
|
||||
|
@ -158,7 +158,7 @@ sure to read that before linking to the MathJax CDN server.</p>
|
|||
<div class="section" id="configuring-mathjax">
|
||||
<h2>Configuring MathJax<a class="headerlink" href="#configuring-mathjax" title="Permalink to this headline">¶</a></h2>
|
||||
<p>There are two ways to configure MathJax: via a configuration file, or by
|
||||
including configuration commands wthin the web page itself. These can be
|
||||
including configuration commands within the web page itself. These can be
|
||||
used independently, or in combination. For example, you can load a main
|
||||
pre-defined configuration file, but include in-line commands to
|
||||
adjust the configuration to your needs.</p>
|
||||
|
@ -192,7 +192,7 @@ MathML if the browser supports it, and HTML-with-CSS otherwise.</p>
|
|||
<dl class="describe">
|
||||
<dt>
|
||||
<tt class="descname">TeX-AMS_HTML.js</tt></dt>
|
||||
<dd><p>Allows math to be specified in TeX or LaTeX notation (with the
|
||||
<dd><p>Allows math to be specified in TeX or LaTeX notation, with the
|
||||
<cite>AMSmath</cite> and <cite>AMSsymbols</cite> packages included, and produces output
|
||||
using the HTML-CSS output processor.</p>
|
||||
</dd></dl>
|
||||
|
@ -225,7 +225,7 @@ component will require a separate file to be loaded, and that can cause
|
|||
delays before the mathematics is displayed. The combined configuration
|
||||
files load the majority of the needed files all as one large file, reducing
|
||||
the number of network requests that are needed. That means you will
|
||||
probably be getting the componets that MathJax needs faster than you would
|
||||
probably be getting the components that MathJax needs faster than you would
|
||||
without the combined file, but you may be loading components that are never
|
||||
actually used; that is the trade off.</p>
|
||||
<p>Each of the combined configuration files comes in two flavors: the ones
|
||||
|
@ -235,7 +235,7 @@ output processors. For example, with <tt class="docutils literal"><span class="
|
|||
<tt class="docutils literal"><span class="pre">TeX-AMS_HTML-full.js</span></tt>, the latter includes the complete HTML-CSS output
|
||||
processor. The “full” configuration files are substantially larger (on
|
||||
the order of 70KB), so you need to decide whether it is worth loading the
|
||||
full configuraiton for your pages.</p>
|
||||
full configuration for your pages.</p>
|
||||
<p>If most of your pages include mathematics, then it is to your advantage to
|
||||
load the full version, but if you are including MathJax in a theme file for
|
||||
a blog or wiki that only includes mathematics occasionally, then perhaps it
|
||||
|
@ -270,7 +270,7 @@ can use</p>
|
|||
<span class="nt"></script></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>to first load the main configuraiton, then the local modifications. You
|
||||
<p>to first load the main configuration, then the local modifications. You
|
||||
can also load MathJax from the CDN and a local configuration from your own
|
||||
server:</p>
|
||||
<div class="highlight-html"><div class="highlight"><pre><span class="nt"><script </span><span class="na">type=</span><span class="s">"text/javascript"</span>
|
||||
|
@ -317,15 +317,15 @@ process them in order as they appear in the document.</p>
|
|||
<p>This example includes the <cite>tex2jax</cite> preprocessor and configures it to use
|
||||
both the standard <a class="reference internal" href="glossary.html#term-tex"><em class="xref std std-term">TeX</em></a> and <a class="reference internal" href="glossary.html#term-latex"><em class="xref std std-term">LaTeX</em></a> math delimiters. It uses
|
||||
the <cite>TeX</cite> input processor and the <cite>HTML-CSS</cite> output processor, and forces the
|
||||
HTML-CSS processor to use the TeX fonts rather that other locally installed
|
||||
HTML-CSS processor to use the TeX fonts rather than other locally installed
|
||||
fonts (e.g., <a class="reference internal" href="glossary.html#term-stix"><em class="xref std std-term">STIX</em></a> fonts). See the <a class="reference internal" href="options/index.html#configuration"><em>configuration options</em></a> section (or the comments in the <tt class="docutils literal"><span class="pre">config/default.js</span></tt>
|
||||
file) for more information about the configuration options that you can
|
||||
include in the <tt class="xref py py-meth docutils literal"><span class="pre">MathJax.Hub.Config()</span></tt> call. Note that this
|
||||
configuration does <strong>not</strong> load any pre-defined configuration file.</p>
|
||||
<p>Note that you can combine in-line configuration with file-based
|
||||
configuration, simply include <tt class="docutils literal"><span class="pre">text/x-mathjax-config</span></tt> scripts as above,
|
||||
configuration; simply include <tt class="docutils literal"><span class="pre">text/x-mathjax-config</span></tt> scripts as above,
|
||||
but also include <tt class="docutils literal"><span class="pre">config=filename</span></tt> when you load the <tt class="docutils literal"><span class="pre">MathJax.js</span></tt>
|
||||
file. For example, the <cite>tex2jax</cite> preprocessor does <strong>not</strong> the TeX
|
||||
file. For example, the <cite>tex2jax</cite> preprocessor does <strong>not</strong> enable the TeX
|
||||
single-dollar in-line math delimiters by default. You can load one of the
|
||||
pre-defined configuration files that include the TeX preprocessor, and use
|
||||
an in-line configuration block to enable the single-dollar signs:</p>
|
||||
|
@ -368,11 +368,12 @@ execute until all the images and other media are available. (If you have
|
|||
used a combined configuration file, however, it already includes all the
|
||||
main files that MathJax needs, so there is not much loss in delaying the
|
||||
startup.)</p>
|
||||
<p>You can set <tt class="docutils literal"><span class="pre">delayStartupUntil=configured</span></tt> in order to delay the startup
|
||||
configuration until the <tt class="xref py py-meth docutils literal"><span class="pre">MathJax.Hub.Configured()</span></tt> method is
|
||||
called. This allows you to delay startup until later on the page, but
|
||||
then restart MathJax configuration process as soon as possible rather than
|
||||
waiting for the entire page to load. For example, you could use</p>
|
||||
<p>You can set <tt class="docutils literal"><span class="pre">delayStartupUntil=configured</span></tt> in order to delay the
|
||||
startup configuration until the <tt class="xref py py-meth docutils literal"><span class="pre">MathJax.Hub.Configured()</span></tt>
|
||||
method is called. This allows you to delay startup until later on the
|
||||
page, but then restart the MathJax configuration process as soon as
|
||||
possible rather than waiting for the entire page to load. For
|
||||
example, you could use</p>
|
||||
<div class="highlight-html"><div class="highlight"><pre><span class="nt"><script </span><span class="na">type=</span><span class="s">"text/javascript"</span>
|
||||
<span class="na">src=</span><span class="s">"path-to-MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML&delayStartupUntil=configured"</span><span class="nt">></span>
|
||||
<span class="nt"></script></span>
|
||||
|
@ -386,7 +387,7 @@ waiting for the entire page to load. For example, you could use</p>
|
|||
</div>
|
||||
<p>in its footer, so that MathJax will delay setting up until the footer is
|
||||
reached, but will not have to wait until images and other files are
|
||||
laoded. If you have <tt class="docutils literal"><span class="pre">text/x-mathjax-config</span></tt> script tags within the main
|
||||
loaded. If you have <tt class="docutils literal"><span class="pre">text/x-mathjax-config</span></tt> script tags within the main
|
||||
body of the document, MathJax will read and process those before
|
||||
continuing its startup. In this way you can use a default configuration
|
||||
that can be modified on a page-by-page basis.</p>
|
||||
|
|
|
@ -81,7 +81,7 @@ date or out of date). If MathJax needs updating, use</p>
|
|||
git pull origin
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>to udpate your copy of MathJax to the current release version. If you
|
||||
<p>to update your copy of MathJax to the current release version. If you
|
||||
keep MathJax updated in this way, you will be sure that you have the
|
||||
latest bug fixes and new features as they become available.</p>
|
||||
<p>This gets you the current development copy of MathJax, which is the version
|
||||
|
@ -151,7 +151,7 @@ use</p>
|
|||
svn update
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>to udpate your copy of MathJax to the current release version. If you
|
||||
<p>to update your copy of MathJax to the current release version. If you
|
||||
keep MathJax updated in this way, you will be sure that you have the
|
||||
latest bug fixes and new features as they become available.</p>
|
||||
<p>This gets you the current development copy of MathJax, which is the version
|
||||
|
@ -166,7 +166,7 @@ described below. You can use</p>
|
|||
</div>
|
||||
<p>to check out revision number <cite>nnn</cite>, but it is not easy to tell what
|
||||
svn revision number is associated with a particular release. GitHub’s
|
||||
<tt class="docutils literal"><span class="pre">svn</span></tt> service doesn’t appear to allow you to sepecify a particular
|
||||
<tt class="docutils literal"><span class="pre">svn</span></tt> service doesn’t appear to allow you to specify a particular
|
||||
tagged version.</p>
|
||||
</div>
|
||||
<div class="section" id="obtaining-mathjax-via-an-archive">
|
||||
|
@ -190,13 +190,13 @@ right), you can also select the <tt class="docutils literal"><span class="pre">D
|
|||
<span class="pre">.zip</span></tt> buttons to get a copy of the current development version of
|
||||
MathJax that contains all the latest changes and bug-fixes. You can
|
||||
also get older tagged versions (if there are any).</p>
|
||||
<p>If a packaged release recevies any important updates, then those
|
||||
<p>If a packaged release receives any important updates, then those
|
||||
updates will be part of the <cite>branch</cite> for that version. The link to
|
||||
the <tt class="docutils literal"><span class="pre">.zip</span></tt> file in the download list will be the original release
|
||||
version, not the patched version. To obtain the patched version, use
|
||||
the <cite>Branches</cite> drop down menu (at the far left of the menus within the
|
||||
page) to select the release branch that you want (for example
|
||||
<tt class="docutils literal"><span class="pre">v1.1-latest</span></tt>), and then use the downlaod button and the <tt class="docutils literal"><span class="pre">Downlaod</span>
|
||||
<tt class="docutils literal"><span class="pre">v1.1-latest</span></tt>), and then use the download button and the <tt class="docutils literal"><span class="pre">Download</span>
|
||||
<span class="pre">.tar.gz</span></tt> or <tt class="docutils literal"><span class="pre">Download</span> <span class="pre">.zip</span></tt> button to get the latest patched
|
||||
version of that release.</p>
|
||||
</div>
|
||||
|
@ -229,7 +229,7 @@ a different site. For example, a departmental server at
|
|||
<tt class="docutils literal"><span class="pre">www.math.yourcollege.edu</span></tt> might like to use a college-wide
|
||||
installation at <tt class="docutils literal"><span class="pre">www.yourcollege.edu</span></tt> rather than installing a
|
||||
separate copy on the departmental machine. MathJax can certainly
|
||||
be loaded from another server, but there is one imporant caveat —
|
||||
be loaded from another server, but there is one important caveat —
|
||||
Firefox’s and IE9’s same-origin security policy for cross-domain scripting.</p>
|
||||
<p>Firefox’s interpretation of the same-origin policy is more strict than most
|
||||
other browsers, and it affects how fonts are loaded with the <cite>@font-face</cite>
|
||||
|
@ -280,7 +280,7 @@ from your hard disk. Firefox’s interpretation of the same-origin
|
|||
policy for local files is that the “same domain” for a page is the
|
||||
directory where that page exists, or any of its subdirectories. So if
|
||||
you use MathJax in a page with a <tt class="docutils literal"><span class="pre">file://</span></tt> URL, and if MathJax is
|
||||
loaded from a diretory other than the one containing the original
|
||||
loaded from a directory other than the one containing the original
|
||||
page, then MathJax will not be able to access the web-based fonts in
|
||||
Firefox. In that case, MathJax will fall back on image fonts to
|
||||
display the mathematics.</p>
|
||||
|
|
|
@ -70,10 +70,10 @@ image-based, and so it is available for search engines, meaning that
|
|||
your equations can be searchable, just like the text of your pages.
|
||||
MathJax allows page authors to write formulas using TeX and LaTeX
|
||||
notation, or <a class="reference external" href="http://www.w3.org/TR/MathML3">MathML</a>, a World Wide
|
||||
Web Constortium standard for representing mathematics in XML format.
|
||||
Web Consortium standard for representing mathematics in XML format.
|
||||
MathJax will even convert TeX notation into MathML, so that it can be
|
||||
rendered more quickly by those browsers that support MathML natively,
|
||||
or so that you can copy and past it into other programs.</p>
|
||||
or so that you can copy and paste it into other programs.</p>
|
||||
<p>MathJax is modular, so it loads components only when necessary, and
|
||||
can be extended to include new capabilities as needed. MathJax is
|
||||
highly configurable, allowing authors to customize it for the special
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -86,7 +86,7 @@ that, and otherwise use HTML-with-CSS to display the mathematics.
|
|||
This is the most general configuration, and should suffice for most
|
||||
people’s needs. Other configurations are available, however, and you
|
||||
can also provide additional configuration parameters to taylor one of
|
||||
the confiogurations to your needs. More details can be found in the
|
||||
the configurations to your needs. More details can be found in the
|
||||
<a class="reference internal" href="configuration.html#loading"><em>Loading and Configuring MathJax</em></a> instructions.</p>
|
||||
<p>The use of <tt class="docutils literal"><span class="pre">cdn.mathjax.org</span></tt> is governed by its <a class="reference external" href="http://www.mathjax.org/download/mathjax-cdn-terms-of-service/">terms of service</a>, so be
|
||||
sure to read that before linking to the MathJax CDN server.</p>
|
||||
|
@ -144,7 +144,7 @@ problems in the permission or locations of files.</p>
|
|||
<p>When you include MathJax into your web pages as described below, it
|
||||
will load the file <tt class="docutils literal"><span class="pre">config/TeX-AMS-MML_HTMLorMML.js</span></tt> (i.e., the file
|
||||
named <tt class="docutils literal"><span class="pre">TeX-AMS-MML_HTMLorMML.js</span></tt> in the <tt class="docutils literal"><span class="pre">config</span></tt> folder of the
|
||||
main <tt class="docutils literal"><span class="pre">MathJax</span></tt> folder). This file preloads all the most comply-used
|
||||
main <tt class="docutils literal"><span class="pre">MathJax</span></tt> folder). This file preloads all the most commonly-used
|
||||
components of MathJax, allowing it to process mathematics that is in
|
||||
the TeX or LaTeX format, or in MathML notation. It will produce
|
||||
output in MathML form if the user’s browser supports that, and will use
|
||||
|
@ -156,7 +156,7 @@ described more fully in <a class="reference internal" href="config-files.html#co
|
|||
<a class="reference internal" href="options/index.html#configuration"><em>Configuration Options</em></a>.</p>
|
||||
<p>Note: The configuration process has changed in MathJax v1.1, so if you have
|
||||
existing pages that use MathJax, you may need to modify the tag that
|
||||
loads MathJax so that is conforms with the new configuration process.
|
||||
loads MathJax so that it conforms with the new configuration process.
|
||||
See <a class="reference internal" href="installation.html#installation"><em>Installing and Configuring MathJax</em></a> for more
|
||||
details.</p>
|
||||
</div>
|
||||
|
@ -234,7 +234,7 @@ math mode, you must enable that explicitly in your configuration:</p>
|
|||
options</em></a> page, for additional configuration
|
||||
parameters that you can specify for the <cite>tex2jax</cite> preprocessor,
|
||||
which is the component of MathJax that identifies TeX notation within
|
||||
the page). See the <a class="reference internal" href="tex.html#tex-support"><em>TeX and LaTeX</em></a> page for
|
||||
the page. See the <a class="reference internal" href="tex.html#tex-support"><em>TeX and LaTeX</em></a> page for
|
||||
more on MathJax’s support for TeX.</p>
|
||||
<p>Here is a complete sample page containing TeX mathematics (also available
|
||||
in the <tt class="docutils literal"><span class="pre">test/sample-tex.html</span></tt> file):</p>
|
||||
|
|
|
@ -88,8 +88,8 @@ to a server geographically near you, for a fast, reliable connection.
|
|||
|
||||
The CDN hosts the most current version of MathJax, as well as older
|
||||
versions, so you can either link to a version that stays up-to-date as
|
||||
Mathjax is improved, or you can stay with one of the release versions so
|
||||
that you pages always use the same version of MathJax.
|
||||
MathJax is improved, or you can stay with one of the release versions so
|
||||
that your pages always use the same version of MathJax.
|
||||
|
||||
The URL that you use to obtain MathJax determines the version that you
|
||||
get. The CDN has the following directory structure:
|
||||
|
@ -112,7 +112,7 @@ with patches that would correspond to releases that might be numbers 1.1a,
|
|||
distribution (they likely won't be).
|
||||
|
||||
We may occasionally introduce directories for betas, as indicated above,
|
||||
but they will be temprorary, and will be removed after the official
|
||||
but they will be temporary, and will be removed after the official
|
||||
release.
|
||||
|
||||
To load from a particular release, use the directory for that release.
|
||||
|
@ -143,7 +143,7 @@ Configuring MathJax
|
|||
===================
|
||||
|
||||
There are two ways to configure MathJax: via a configuration file, or by
|
||||
including configuration commands wthin the web page itself. These can be
|
||||
including configuration commands within the web page itself. These can be
|
||||
used independently, or in combination. For example, you can load a main
|
||||
pre-defined configuration file, but include in-line commands to
|
||||
adjust the configuration to your needs.
|
||||
|
@ -178,7 +178,7 @@ stored in the ``MathJax/config`` directory. Among these are the following
|
|||
|
||||
.. describe:: TeX-AMS_HTML.js
|
||||
|
||||
Allows math to be specified in TeX or LaTeX notation (with the
|
||||
Allows math to be specified in TeX or LaTeX notation, with the
|
||||
`AMSmath` and `AMSsymbols` packages included, and produces output
|
||||
using the HTML-CSS output processor.
|
||||
|
||||
|
@ -208,7 +208,7 @@ component will require a separate file to be loaded, and that can cause
|
|||
delays before the mathematics is displayed. The combined configuration
|
||||
files load the majority of the needed files all as one large file, reducing
|
||||
the number of network requests that are needed. That means you will
|
||||
probably be getting the componets that MathJax needs faster than you would
|
||||
probably be getting the components that MathJax needs faster than you would
|
||||
without the combined file, but you may be loading components that are never
|
||||
actually used; that is the trade off.
|
||||
|
||||
|
@ -219,7 +219,7 @@ output processors. For example, with ``TeX-AMS_HTML.js`` and
|
|||
``TeX-AMS_HTML-full.js``, the latter includes the complete HTML-CSS output
|
||||
processor. The "full" configuration files are substantially larger (on
|
||||
the order of 70KB), so you need to decide whether it is worth loading the
|
||||
full configuraiton for your pages.
|
||||
full configuration for your pages.
|
||||
|
||||
If most of your pages include mathematics, then it is to your advantage to
|
||||
load the full version, but if you are including MathJax in a theme file for
|
||||
|
@ -261,7 +261,7 @@ can use
|
|||
src="path-to-MathJax/MathJax.js?config=TeX-AMS_HTML,local/local">
|
||||
</script>
|
||||
|
||||
to first load the main configuraiton, then the local modifications. You
|
||||
to first load the main configuration, then the local modifications. You
|
||||
can also load MathJax from the CDN and a local configuration from your own
|
||||
server:
|
||||
|
||||
|
@ -315,7 +315,7 @@ For instance,
|
|||
This example includes the `tex2jax` preprocessor and configures it to use
|
||||
both the standard :term:`TeX` and :term:`LaTeX` math delimiters. It uses
|
||||
the `TeX` input processor and the `HTML-CSS` output processor, and forces the
|
||||
HTML-CSS processor to use the TeX fonts rather that other locally installed
|
||||
HTML-CSS processor to use the TeX fonts rather than other locally installed
|
||||
fonts (e.g., :term:`STIX` fonts). See the :ref:`configuration options
|
||||
<configuration>` section (or the comments in the ``config/default.js``
|
||||
file) for more information about the configuration options that you can
|
||||
|
@ -323,9 +323,9 @@ include in the :meth:`MathJax.Hub.Config()` call. Note that this
|
|||
configuration does **not** load any pre-defined configuration file.
|
||||
|
||||
Note that you can combine in-line configuration with file-based
|
||||
configuration, simply include ``text/x-mathjax-config`` scripts as above,
|
||||
configuration; simply include ``text/x-mathjax-config`` scripts as above,
|
||||
but also include ``config=filename`` when you load the ``MathJax.js``
|
||||
file. For example, the `tex2jax` preprocessor does **not** the TeX
|
||||
file. For example, the `tex2jax` preprocessor does **not** enable the TeX
|
||||
single-dollar in-line math delimiters by default. You can load one of the
|
||||
pre-defined configuration files that include the TeX preprocessor, and use
|
||||
an in-line configuration block to enable the single-dollar signs:
|
||||
|
@ -376,11 +376,12 @@ used a combined configuration file, however, it already includes all the
|
|||
main files that MathJax needs, so there is not much loss in delaying the
|
||||
startup.)
|
||||
|
||||
You can set ``delayStartupUntil=configured`` in order to delay the startup
|
||||
configuration until the :meth:`MathJax.Hub.Configured()` method is
|
||||
called. This allows you to delay startup until later on the page, but
|
||||
then restart MathJax configuration process as soon as possible rather than
|
||||
waiting for the entire page to load. For example, you could use
|
||||
You can set ``delayStartupUntil=configured`` in order to delay the
|
||||
startup configuration until the :meth:`MathJax.Hub.Configured()`
|
||||
method is called. This allows you to delay startup until later on the
|
||||
page, but then restart the MathJax configuration process as soon as
|
||||
possible rather than waiting for the entire page to load. For
|
||||
example, you could use
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
|
@ -398,7 +399,7 @@ in your theme's header file, and
|
|||
|
||||
in its footer, so that MathJax will delay setting up until the footer is
|
||||
reached, but will not have to wait until images and other files are
|
||||
laoded. If you have ``text/x-mathjax-config`` script tags within the main
|
||||
loaded. If you have ``text/x-mathjax-config`` script tags within the main
|
||||
body of the document, MathJax will read and process those before
|
||||
continuing its startup. In this way you can use a default configuration
|
||||
that can be modified on a page-by-page basis.
|
||||
|
|
|
@ -50,7 +50,7 @@ date or out of date). If MathJax needs updating, use
|
|||
cd MathJax
|
||||
git pull origin
|
||||
|
||||
to udpate your copy of MathJax to the current release version. If you
|
||||
to update your copy of MathJax to the current release version. If you
|
||||
keep MathJax updated in this way, you will be sure that you have the
|
||||
latest bug fixes and new features as they become available.
|
||||
|
||||
|
@ -144,7 +144,7 @@ use
|
|||
cd MathJax
|
||||
svn update
|
||||
|
||||
to udpate your copy of MathJax to the current release version. If you
|
||||
to update your copy of MathJax to the current release version. If you
|
||||
keep MathJax updated in this way, you will be sure that you have the
|
||||
latest bug fixes and new features as they become available.
|
||||
|
||||
|
@ -162,7 +162,7 @@ described below. You can use
|
|||
|
||||
to check out revision number `nnn`, but it is not easy to tell what
|
||||
svn revision number is associated with a particular release. GitHub's
|
||||
``svn`` service doesn't appear to allow you to sepecify a particular
|
||||
``svn`` service doesn't appear to allow you to specify a particular
|
||||
tagged version.
|
||||
|
||||
|
||||
|
@ -194,13 +194,13 @@ right), you can also select the ``Download .tar.gz`` or ``Download
|
|||
MathJax that contains all the latest changes and bug-fixes. You can
|
||||
also get older tagged versions (if there are any).
|
||||
|
||||
If a packaged release recevies any important updates, then those
|
||||
If a packaged release receives any important updates, then those
|
||||
updates will be part of the `branch` for that version. The link to
|
||||
the ``.zip`` file in the download list will be the original release
|
||||
version, not the patched version. To obtain the patched version, use
|
||||
the `Branches` drop down menu (at the far left of the menus within the
|
||||
page) to select the release branch that you want (for example
|
||||
``v1.1-latest``), and then use the downlaod button and the ``Downlaod
|
||||
``v1.1-latest``), and then use the download button and the ``Download
|
||||
.tar.gz`` or ``Download .zip`` button to get the latest patched
|
||||
version of that release.
|
||||
|
||||
|
@ -240,7 +240,7 @@ a different site. For example, a departmental server at
|
|||
``www.math.yourcollege.edu`` might like to use a college-wide
|
||||
installation at ``www.yourcollege.edu`` rather than installing a
|
||||
separate copy on the departmental machine. MathJax can certainly
|
||||
be loaded from another server, but there is one imporant caveat ---
|
||||
be loaded from another server, but there is one important caveat ---
|
||||
Firefox's and IE9's same-origin security policy for cross-domain scripting.
|
||||
|
||||
Firefox's interpretation of the same-origin policy is more strict than most
|
||||
|
@ -302,7 +302,7 @@ from your hard disk. Firefox's interpretation of the same-origin
|
|||
policy for local files is that the "same domain" for a page is the
|
||||
directory where that page exists, or any of its subdirectories. So if
|
||||
you use MathJax in a page with a ``file://`` URL, and if MathJax is
|
||||
loaded from a diretory other than the one containing the original
|
||||
loaded from a directory other than the one containing the original
|
||||
page, then MathJax will not be able to access the web-based fonts in
|
||||
Firefox. In that case, MathJax will fall back on image fonts to
|
||||
display the mathematics.
|
||||
|
|
|
@ -22,10 +22,10 @@ image-based, and so it is available for search engines, meaning that
|
|||
your equations can be searchable, just like the text of your pages.
|
||||
MathJax allows page authors to write formulas using TeX and LaTeX
|
||||
notation, or `MathML <http://www.w3.org/TR/MathML3>`_, a World Wide
|
||||
Web Constortium standard for representing mathematics in XML format.
|
||||
Web Consortium standard for representing mathematics in XML format.
|
||||
MathJax will even convert TeX notation into MathML, so that it can be
|
||||
rendered more quickly by those browsers that support MathML natively,
|
||||
or so that you can copy and past it into other programs.
|
||||
or so that you can copy and paste it into other programs.
|
||||
|
||||
MathJax is modular, so it loads components only when necessary, and
|
||||
can be extended to include new capabilities as needed. MathJax is
|
||||
|
|
|
@ -47,7 +47,7 @@ that, and otherwise use HTML-with-CSS to display the mathematics.
|
|||
This is the most general configuration, and should suffice for most
|
||||
people's needs. Other configurations are available, however, and you
|
||||
can also provide additional configuration parameters to taylor one of
|
||||
the confiogurations to your needs. More details can be found in the
|
||||
the configurations to your needs. More details can be found in the
|
||||
:ref:`Loading and Configuring MathJax <loading>` instructions.
|
||||
|
||||
The use of ``cdn.mathjax.org`` is governed by its `terms of service
|
||||
|
@ -123,7 +123,7 @@ Configuring your copy of MathJax
|
|||
When you include MathJax into your web pages as described below, it
|
||||
will load the file ``config/TeX-AMS-MML_HTMLorMML.js`` (i.e., the file
|
||||
named ``TeX-AMS-MML_HTMLorMML.js`` in the ``config`` folder of the
|
||||
main ``MathJax`` folder). This file preloads all the most comply-used
|
||||
main ``MathJax`` folder). This file preloads all the most commonly-used
|
||||
components of MathJax, allowing it to process mathematics that is in
|
||||
the TeX or LaTeX format, or in MathML notation. It will produce
|
||||
output in MathML form if the user's browser supports that, and will use
|
||||
|
@ -138,7 +138,7 @@ described more fully in :ref:`Common Configurations
|
|||
|
||||
Note: The configuration process has changed in MathJax v1.1, so if you have
|
||||
existing pages that use MathJax, you may need to modify the tag that
|
||||
loads MathJax so that is conforms with the new configuration process.
|
||||
loads MathJax so that it conforms with the new configuration process.
|
||||
See :ref:`Installing and Configuring MathJax <installation>` for more
|
||||
details.
|
||||
|
||||
|
@ -233,7 +233,7 @@ See the ``config/default.js`` file, or the :ref:`tex2jax configuration
|
|||
options <configure-tex2jax>` page, for additional configuration
|
||||
parameters that you can specify for the `tex2jax` preprocessor,
|
||||
which is the component of MathJax that identifies TeX notation within
|
||||
the page). See the :ref:`TeX and LaTeX <TeX-support>` page for
|
||||
the page. See the :ref:`TeX and LaTeX <TeX-support>` page for
|
||||
more on MathJax's support for TeX.
|
||||
|
||||
Here is a complete sample page containing TeX mathematics (also available
|
||||
|
|
Loading…
Reference in New Issue
Block a user