Update platform installation pages

This commit is contained in:
Davide P. Cervone 2011-03-06 13:18:12 -05:00
parent 5631d52fe6
commit 8f0f906374
3 changed files with 37 additions and 27 deletions

View File

@ -4,6 +4,20 @@
Using MathJax in popular web platforms 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 Most web-based content-management systems include a theme or template
layer that determines how the pages look, and that loads information layer that determines how the pages look, and that loads information
common to all pages. Such theme files provide one popular way to 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:: 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 either just before the ``</head>`` tag in your theme file, or at the end of
directory for your server) either just before the ``</head>`` tag in the file if it contains no ``</head>``.
your theme file, or at the end of the file if it contains no
``</head>``.
The theme files for various popular platforms are: The theme files for various popular platforms are:

View File

@ -4,9 +4,6 @@
Using MathJax in Movable Type 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 1. Open Moveable Type Admin interface for the site on which you want to enable
MathJax. MathJax.
@ -25,17 +22,17 @@ your server (see :ref:`Installing and Testing MathJax <installation>`).
.. code-block:: html .. 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 to load MathJax from our distributed netowrk service.
main MathJax dorectory on your server.
.. image:: ../images/mt_head.png .. image:: ../images/mt_head.png
5. Save the file. This should enable MathJax, so you should be able 5. Save the file. This will enable MathJax with both TeX and MathML
to start adding mathematical content to your pages. Use the input, so you should be able to start adding mathematical content to
``config/MathJas.js`` file in the MathJax directory to configure your pages. If you need to adjust the configuraiton, see
MathJax to your needs (see :ref:`Configuring MathJax :ref:`Configuring MathJax <loading>` for more details.
<configuration>` for details).

View File

@ -4,8 +4,9 @@
Installing MathJax in WordPress Installing MathJax in WordPress
=============================== ===============================
These instructions assume you already have placed the MathJax files on Note that there is a `WordPress plugin for MathJax
your server (see :ref:`Installing MathJax <installation>`). <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. 1. Open the WordPress admin interface.
@ -28,15 +29,14 @@ your server (see :ref:`Installing MathJax <installation>`).
.. code-block:: html .. 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 just before that. Otherwise, insert the same code at the very
bottom of the file. Here, ``path-to-MathJax`` should be replaced bottom of the file.
by the web-address of the main MathJax directory on your server,
e.g., ``src="/mathjax/MathJax.js"``.
4. Save the file. This should enable MathJax, so you should be able to 4. Save the file. This will enable MathJax with both TeX and MathML
start adding mathematical content to your pages. Use the input, so you should be able to start adding mathematical content to
``config/MathJas.js`` file in the MathJax directory to configure your pages. If you need to adjust the configuraiton, see
MathJax to your needs (see :ref:`Configuring MathJax :ref:`Configuring MathJax <loading>` for more details.
<configuration>` for details).