Update platform installation pages
This commit is contained in:
parent
5631d52fe6
commit
8f0f906374
|
@ -4,6 +4,20 @@
|
|||
Using MathJax in popular web platforms
|
||||
======================================
|
||||
|
||||
MathJax plugins are available for a growing number of wikis, blogs, and
|
||||
other content-management systems. These include WordPress, Blogger,
|
||||
Sphinx, TiddlyWiki, and MathEL-Wiki. A list of these is available in the
|
||||
`web applications and integrations
|
||||
<http://www.mathjax.org/community/mathjax-in-use/#web-apps>`_ list of the
|
||||
`MathJax web site <http://www.mathjax.org>`_.
|
||||
|
||||
If the program you are using is not one of these, you may still be able to
|
||||
use MathJax by modifying the theme or template for your wiki or blog.
|
||||
|
||||
|
||||
Using MathJax in a Theme File
|
||||
=============================
|
||||
|
||||
Most web-based content-management systems include a theme or template
|
||||
layer that determines how the pages look, and that loads information
|
||||
common to all pages. Such theme files provide one popular way to
|
||||
|
@ -16,12 +30,11 @@ you.
|
|||
|
||||
To enable MathJax in your web platform, add the line::
|
||||
|
||||
<script type="text/javascript" src="path-to-MathJax/MathJax.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
||||
|
||||
(where ``path-to-MathJax`` is the web-address of the main MathJax
|
||||
directory for your server) either just before the ``</head>`` tag in
|
||||
your theme file, or at the end of the file if it contains no
|
||||
``</head>``.
|
||||
either just before the ``</head>`` tag in your theme file, or at the end of
|
||||
the file if it contains no ``</head>``.
|
||||
|
||||
The theme files for various popular platforms are:
|
||||
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
Using MathJax in Movable Type
|
||||
=============================
|
||||
|
||||
These instructions assume you already have placed the MathJax files on
|
||||
your server (see :ref:`Installing and Testing MathJax <installation>`).
|
||||
|
||||
1. Open Moveable Type Admin interface for the site on which you want to enable
|
||||
MathJax.
|
||||
|
||||
|
@ -25,17 +22,17 @@ your server (see :ref:`Installing and Testing MathJax <installation>`).
|
|||
|
||||
.. code-block:: html
|
||||
|
||||
<script type="text/javascript" src="path-to-MathJax/MathJax.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
||||
</script>
|
||||
|
||||
where ``path-to-MathJax`` is replaced by the web-address of the
|
||||
main MathJax dorectory on your server.
|
||||
to load MathJax from our distributed netowrk service.
|
||||
|
||||
.. image:: ../images/mt_head.png
|
||||
|
||||
5. Save the file. This should enable MathJax, so you should be able
|
||||
to start adding mathematical content to your pages. Use the
|
||||
``config/MathJas.js`` file in the MathJax directory to configure
|
||||
MathJax to your needs (see :ref:`Configuring MathJax
|
||||
<configuration>` for details).
|
||||
5. Save the file. This will enable MathJax with both TeX and MathML
|
||||
input, so you should be able to start adding mathematical content to
|
||||
your pages. If you need to adjust the configuraiton, see
|
||||
:ref:`Configuring MathJax <loading>` for more details.
|
||||
|
||||
|
||||
|
|
|
@ -4,8 +4,9 @@
|
|||
Installing MathJax in WordPress
|
||||
===============================
|
||||
|
||||
These instructions assume you already have placed the MathJax files on
|
||||
your server (see :ref:`Installing MathJax <installation>`).
|
||||
Note that there is a `WordPress plugin for MathJax
|
||||
<http://wordpress.org/extend/plugins/mathjax-latex/>`_, so that may be a
|
||||
better choice than editing the theme directly.
|
||||
|
||||
1. Open the WordPress admin interface.
|
||||
|
||||
|
@ -28,15 +29,14 @@ your server (see :ref:`Installing MathJax <installation>`).
|
|||
|
||||
.. code-block:: html
|
||||
|
||||
<script type="text/javascript" src="path-to-MathJax/MathJax.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
||||
</script>
|
||||
|
||||
just before that. Otherwise, insert the same code at the very
|
||||
bottom of the file. Here, ``path-to-MathJax`` should be replaced
|
||||
by the web-address of the main MathJax directory on your server,
|
||||
e.g., ``src="/mathjax/MathJax.js"``.
|
||||
bottom of the file.
|
||||
|
||||
4. Save the file. This should enable MathJax, so you should be able to
|
||||
start adding mathematical content to your pages. Use the
|
||||
``config/MathJas.js`` file in the MathJax directory to configure
|
||||
MathJax to your needs (see :ref:`Configuring MathJax
|
||||
<configuration>` for details).
|
||||
4. Save the file. This will enable MathJax with both TeX and MathML
|
||||
input, so you should be able to start adding mathematical content to
|
||||
your pages. If you need to adjust the configuraiton, see
|
||||
:ref:`Configuring MathJax <loading>` for more details.
|
||||
|
|
Loading…
Reference in New Issue
Block a user