128 lines
3.7 KiB
HTML
128 lines
3.7 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<HTML xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en-US">
|
|
<HEAD>
|
|
<TITLE>MathJax Test Page</TITLE>
|
|
<!-- Copyright (c) 2009-2010 Design Science, Inc. -->
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" />
|
|
<META HTTP-EQUIV="X-UA-Compatible" CONTENT="IE=EmulateIE7" >
|
|
|
|
<SCRIPT SRC="../MathJax.js">
|
|
MathJax.Hub.Config({
|
|
extensions: ["tex2jax.js"],
|
|
jax: ["input/TeX","output/HTML-CSS"],
|
|
"HTML-CSS": {
|
|
availableFonts:[],
|
|
styles: {".MathJax_Preview": {visibility: "hidden"}}
|
|
}
|
|
});
|
|
|
|
//
|
|
// Do NOT include the following in your own pages. This is only here to
|
|
// provide an alert rather than MathJax's usual small message in the lower
|
|
// left-hand corner. Use sample.html as the example for how to call
|
|
// MathJax in your own pages.
|
|
//
|
|
(function (HUB) {
|
|
|
|
var MINVERSION = {
|
|
Firefox: 3.0,
|
|
Opera: 9.52,
|
|
MSIE: 6.0,
|
|
Chrome: 0.3,
|
|
Safari: 2.0,
|
|
Konqueror: 4.0,
|
|
Unknown: 10000.0 // always disable unknown browsers
|
|
};
|
|
|
|
if (!HUB.Browser.versionAtLeast(MINVERSION[HUB.Browser]||0.0)) {
|
|
HUB.config.jax = []; // don't load any Jax
|
|
HUB.config.extensions = []; // don't load any extensions
|
|
alert("The browser you are using does not support MathJax, " +
|
|
"so we can't test if MathJax is working.\n\n"+
|
|
"Please try a different browser, or a newer version of your browser.");
|
|
}
|
|
|
|
})(MathJax.Hub);
|
|
|
|
MathJax.Hub.Register.StartupHook("End",function () {
|
|
var HTMLCSS = MathJax.OutputJax["HTML-CSS"];
|
|
var MAIN = HTMLCSS.FONTDATA.FONTS["MathJax_Main"];
|
|
if (MAIN.version < 2) {
|
|
document.getElementById("version").innerHTML = MAIN.version;
|
|
document.getElementById("webfonts").style.display="";
|
|
}
|
|
});
|
|
</SCRIPT>
|
|
</HEAD>
|
|
<BODY>
|
|
|
|
<NOSCRIPT>
|
|
<DIV STYLE="color:#CC0000; text-align:center">
|
|
<B>Warning: <A HREF="http://www.mathjax.org/">MathJax</A>
|
|
requires JavaScript to process the mathematics on this page.<BR>
|
|
If your browser supports JavaScript, be sure it is enabled.<B>
|
|
</DIV>
|
|
<HR>
|
|
</NOSCRIPT>
|
|
|
|
<BLOCKQUOTE>
|
|
|
|
<!--
|
|
| <DIV STYLE="float:right; width:auto; margin-top:.5em">
|
|
| <INPUT TYPE="button" VALUE="Check for Updates" ONCLICK="CheckVersion()">
|
|
| </DIV>
|
|
-->
|
|
|
|
<H1>MathJax Test Page</H1>
|
|
|
|
If you see typeset mathematics below, then MathJax is working. If you see
|
|
TeX code instead, MathJax is not working for you.
|
|
<p>
|
|
<!------------------------------------------------------------------------>
|
|
<HR>
|
|
|
|
|
|
\[
|
|
\frac{-b\pm\sqrt{b^2-4ac}}{2a}
|
|
\]
|
|
<p>
|
|
|
|
<DIV STYLE="color:green">
|
|
<DIV STYLE="text-align:center; color:red; font-size:120%" CLASS="MathJax_Preview">
|
|
MathJax is not working!
|
|
</DIV><SCRIPT TYPE="math/tex; mode=display">
|
|
\bf MathJax\ Appears\ to\ be\ Working!
|
|
</SCRIPT>
|
|
</DIV>
|
|
|
|
<!------------------------------------------------------------------------>
|
|
<HR>
|
|
<p>
|
|
|
|
<DIV ID="webfonts" STYLE="display:none; color:red">
|
|
<B>WARNING</B>: Your MathJax web fonts seem to be version <SPAN ID="version">1</SPAN>
|
|
rather than version 2. Be sure you have downloaded and installed the latest
|
|
MathJax-webfonts ZIP file from
|
|
<p>
|
|
<BLOCKQUOTE>
|
|
<A HREF="http://sourceforge.net/projects/mathjax/files/">http://sourceforge.net/projects/mathjax/files/</A>
|
|
</BLOCKQUOTE>
|
|
before continuing. Failure to install the new versions of the fonts will
|
|
mean that the data MathJax is using will not match the fonts, and so
|
|
display errors will occur. You can probably see this in the equation
|
|
above: the radial will be out of place.
|
|
<p>
|
|
<HR>
|
|
</DIV>
|
|
|
|
<p>
|
|
|
|
Once you have MathJax working properly, view the <A
|
|
HREF="index-images.html">image mode test page</A> to make sure that the
|
|
image fallback mode is working as well.
|
|
|
|
</BLOCKQUOTE>
|
|
|
|
</BODY>
|
|
</HTML>
|