Skip to content

Instantly share code, notes, and snippets.

@wbzyl
Created February 15, 2012 19:10
Show Gist options
  • Save wbzyl/1838231 to your computer and use it in GitHub Desktop.
Save wbzyl/1838231 to your computer and use it in GitHub Desktop.
HTML5 + MatJaX-2.0 template
<!doctype html public "♥♥♥">
<html lang=pl>
<head>
<meta charset=utf-8>
<title>Szablon strony HTML5 + MathJax 2.0</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
displayMath: [['$$', '$$'], ["\\[", "\\]"]]
}
});
</script>
<script src="http://cdn.mathjax.org/mathjax/dpvc/2.0-beta/MathJax.js?config=TeX-AMS_HTML"></script>
<style>
html {
background: #E2DF9A;
}
body {
background: #EEEEEE;
padding: 1em;
font-size: 18px;
width: 600px;
margin: 2em auto;
}
</style>
</head>
<body>
<p>When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment