Skip to content

Instantly share code, notes, and snippets.

@EfratVil
Last active Oct 3, 2017
Embed
What would you like to do?
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