Skip to content

Instantly share code, notes, and snippets.

@jdbrice
Created September 20, 2016 03:27
Show Gist options
  • Save jdbrice/1223454f8273ac8c02278bb6da63f54c to your computer and use it in GitHub Desktop.
Save jdbrice/1223454f8273ac8c02278bb6da63f54c to your computer and use it in GitHub Desktop.
scripts to bootstrap most pages wth inline math
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true,
processEnvironments: true
},
// Center justify equations in code and markdown cells. Elsewhere
// we use CSS to left justify single line equations in code cells.
displayAlign: 'center',
"HTML-CSS": {
styles: {'.MathJax_Display': {"margin": 0}},
linebreaks: { automatic: true }
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment