Update documentation
This commit is contained in:
parent
963b69b7ba
commit
155436ba97
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user