Skip to content

Commit

Permalink
Update to current configuration style, and add title and styling
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Mar 1, 2011
1 parent 7cd52a1 commit 916e128
Showing 1 changed file with 51 additions and 34 deletions.
85 changes: 51 additions & 34 deletions test/sample.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,48 @@
<!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">
<!DOCTYPE html>
<html>
<head>
<title>MathJax Test Page</title>
<!-- Copyright (c) 2009-2011 Design Science, Inc. -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
});
</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>

<p><b>The Lorenz Equations</b></p>
</script>
<script type="text/javascript" src="../MathJax.js"></script>

<style>
h1 {text-align:center}
h2 {
font-weight: bold;
background-color: #DDDDDD;
padding: .2em .5em;
margin-top: 1.5em;
border-top: 3px solid #666666;
border-bottom: 2px solid #999999;
}
</style>
</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>

<h1>Sample MathJax Equations</h1>

<blockquote>

<h2>The Lorenz Equations</h2>

<p>
\begin{align}
Expand All @@ -37,14 +52,14 @@
\end{align}
</p>

<p><b>The Cauchy-Schwarz Inequality</b></p>
<h2>The Cauchy-Schwarz Inequality</h2>

<p>\[
\left( \sum_{k=1}^n a_k b_k \right)^{\!\!2} \leq
\left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
\]</p>

<p><b>A Cross Product Formula</b></p>
<h2>A Cross Product Formula</h2>

<p>\[
\mathbf{V}_1 \times \mathbf{V}_2 =
Expand All @@ -55,27 +70,27 @@
\end{vmatrix}
\]</p>

<p><b>The probability of getting \(k\) heads when flipping \(n\) coins is:</b></p>
<h2>The probability of getting \(k\) heads when flipping \(n\) coins is:</h2>

<p>\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]</p>

<p><b>An Identity of Ramanujan</b></p>
<h2>An Identity of Ramanujan</h2>

<p>\[
\frac{1}{(\sqrt{\phi \sqrt{5}}-\phi) e^{\frac25 \pi}} =
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}} {1+\ldots} } } }
\]</p>

<p><b>A Rogers-Ramanujan Identity</b></p>
<h2>A Rogers-Ramanujan Identity</h2>

<p>\[
1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
\prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})},
\quad\quad \text{for $|q|<1$}.
\]</p>

<p><b>Maxwell's Equations</b></p>
<h2>Maxwell's Equations</h2>

<p>
\begin{align}
Expand All @@ -86,14 +101,16 @@
\end{align}
</p>

<h2>In-line Mathematics</h2>

<p>Finally, while display equations look good for a page of samples, the
ability to mix math and text in a paragraph is also important. This
expression \(\sqrt{3x-1}+(1+x)^2\) is an example of an inline equation. As
you see, MathJax equations can be used this way as well, without unduly
disturbing the spacing between lines.</p>


</BLOCKQUOTE>
</blockquote>

</BODY>
</HTML>
</body>
</html>

0 comments on commit 916e128

Please sign in to comment.