www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 155436ba97bb1ffc9310a48c022e3b925b0e99bf
parent 963b69b7ba5ad1150b25bb8604b8cb3f09fce15d
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Mon,  7 Mar 2011 20:43:43 -0500

Update documentation

Diffstat:
Mdocs/source/jsMath.rst | 4++--
Mdocs/source/synchronize.rst | 27+++++++++++++--------------
Mdocs/source/typeset.rst | 14+++++++++-----
3 files changed, 24 insertions(+), 21 deletions(-)

diff --git a/docs/source/jsMath.rst b/docs/source/jsMath.rst @@ -11,8 +11,8 @@ processing the mathematics within the webpage once it has been loaded in the browser by a user viewing your web pages. If you are using jsMath with its ``tex2math`` preprocessor, then switching to MathJax should be easy, and is simply a matter of configuring MathJax -appropriately. See the section on :ref:`Configuring MathJax -<configuration>` for details about loading and configuring MathJax. +appropriately. See the section on :ref:`Loading and Configuring MathJax +<loading>` for details. On the other hand, if you are using jsMath's ``<span class="math">...</span>`` and ``<div class="math">...</div>`` tags to diff --git a/docs/source/synchronize.rst b/docs/source/synchronize.rst @@ -37,20 +37,19 @@ queues for actions that need to be synchronized with each other, but not to MathJax as a whole. See the :ref:`Queue Object <api-queue>` reference page for more details. -**Signals** are another means of synchronizing your own code with -MathJax. Many of the important actions that MathJax takes (like -typesetting new math on the page, or loading an external component) -are "announced" by posting a message to a special object called a -`Signal`. Your code can register an interest in receiving one or more -of these signals by providing a callback to be called when the signal -is posted. When the signal arrives, MathJax will call your code. -This works somewhat like an event handler, except that many different -types of events can go through the same signal, and the signals have a -"memory", meaning that if you register an interest in a particular -type of signal and that signal has already occurred, you will be told -about the past occurrances as well as any future ones. See the -:ref:`Signal Object <api-signal>` reference page for more details. -See also the ``test/sample-signals.html`` file in the MathJax ``test`` +**Signals** are another means of synchronizing your own code with MathJax. +Many of the important actions that MathJax takes (like typesetting new math +on the page, or loading an external component) are "announced" by posting a +message to a special object called a `Signal`. Your code can register an +interest in receiving one or more of these signals by providing a callback +to be called when the signal is posted. When the signal arrives, MathJax +will call your code. This works somewhat like an event handler, except +that many different types of events can go through the same signal, and the +signals have a "memory", meaning that if you register an interest in a +particular type of signal and that signal has already occurred, you will be +told about the past occurrances as well as any future ones. See the +:ref:`Signal Object <api-signal>` reference page for more details. See +also the ``test/sample-signals.html`` file in the MathJax ``test`` directory for a working example of using signals. Each of these is explained in more detail in the links below: diff --git a/docs/source/typeset.rst b/docs/source/typeset.rst @@ -172,7 +172,8 @@ then you can use to change the student's answer to be the typeset version of whatever is in the ``studentAnswer`` variable. -Here is a complete example that illustrates this approach +Here is a complete example that illustrates this approach (available in a +more full-featured version as ``test/sample-dynamic.html``): .. code-block:: html @@ -180,13 +181,16 @@ Here is a complete example that illustrates this approach <head> <title>MathJax Dynamic Math Test Page</title> - <script src="/MathJax/MathJax.js"> + <script type="text/x-mathjax-config"> MathJax.Hub.Config({ - extensions: ["tex2jax.js"], - jax: ["input/TeX","output/HTML-CSS"], - tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]} + tex2jax: { + inlineMath: [["$","$"],["\\(","\\)"]] + } }); </script> + <script type="text/javascript" + src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full"> + </script> </head> <body>