Skip to content

Instantly share code, notes, and snippets.

@EfratVil
Last active October 3, 2017 14:30
Show Gist options
  • Save EfratVil/f37c308dc73e35d9868d1f4bc1045757 to your computer and use it in GitHub Desktop.
Save EfratVil/f37c308dc73e35d9868d1f4bc1045757 to your computer and use it in GitHub Desktop.
LaTeX Equations

Using MathJax.js to display LaTeX equations in the browser.

<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Maths Equations</title>
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
<style>
body {
font-size: 22px;
font-family: 'Raleway', sans-serif;
}
</style>
<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<script>
MathJax.Hub.Config({
tex2jax: { inlineMath: [['$', '$'], ['\\(', '\\)']] }
});
</script>
</head>
<body>
<h2 style="text-align:center">Multivariate Normal</h2>
$$ x{\sim}N(\mu,\Sigma)$$
$$|2{\pi}{\Sigma}|^{-\frac{1}{2}} e^{-\frac{1}{2}(x-{\mu})^T{\Sigma}^{-1}(x-{\mu})}$$
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment