Skip to content

Instantly share code, notes, and snippets.

@davidandrzej
Created August 29, 2013 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidandrzej/6381171 to your computer and use it in GitHub Desktop.
Save davidandrzej/6381171 to your computer and use it in GitHub Desktop.
Snippets for adding MathJax to a website, see [this discussion](https://github.com/ruhoh/ruhoh.rb/issues/46#issuecomment-6988308).
<!-- INSERT MATHJAX CONFIGURATION FROM MATH.STACKEXCHANGE -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$', '$'] ],
displayMath: [ ['$$', '$$']],
processEscapes: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
},
messageStyle: "none",
"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"] }
});
</script>
<script type="text/javascript"
src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment