PEG-Wiki/javascript/MathJax/test/index-images.html

120 lines
3.5 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 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:[], preferredFont: null, webFont: null}
});
//
// 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 if is working. Please try a different browser.");
}
if (HUB.Browser.isMSIE && !HUB.Browser.versionAtLeast("7.0")) {
alert("Internet Explorer 6 does not display images with alpha-channel transparency very\n" +
"well, so this test will not look good. But in practice, IE6 will use web-based\n" +
"fonts rather than image fonts (unless the page forces images, as this one does)\n" +
"so the poor quality rendering on this test page does not indicate a problem\n" +
"with MathJax.");
}
})(MathJax.Hub);
</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>
<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\ Image\ Fonts\ Appear\ to\ be\ Working!
</SCRIPT>
</DIV>
<!------------------------------------------------------------------------>
<HR>
<p>
If the mathematics does not show up properly, you may not have not
installed the MathJax web fonts correctly. Follow the instructions in the
<A HREF="../README.txt">README file</A>.
<p>
The MathJax-webfonts archive is available from the <A
HREF="http://sourceforge.net/projects/mathjax/files/">MathJax SourceForge
project</A>. Unpack the archive in the MathJax directory; you should
obtain a fonts directory, with a hierarchy of:
<PRE>
MathJax/
fonts/
HTML-CSS/
TeX/
eot/
...
imagedata.js
png/
...
otf/
...
svg/
...
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>