Skip to content

Instantly share code, notes, and snippets.

@p2004a
Last active August 29, 2015 14:05
Show Gist options
  • Save p2004a/6eb21f5d33ac0ef2bc5f to your computer and use it in GitHub Desktop.
Save p2004a/6eb21f5d33ac0ef2bc5f to your computer and use it in GitHub Desktop.
wazniak.mimuw.edu.pl pretty equations
(function(a,b){Array.prototype.slice.call(document.getElementsByClassName('tex'), 0).forEach(function(e){e.parentNode.replaceChild(document.createTextNode('$'+e.alt.replace(/\\aligned/g,'\\begin{aligned}').replace(/\\endaligned/g,'\\end{aligned}').replace(/&&/g,'\\\\')+'$'), e); });b=document.createElement('script');b.type='text/x-mathjax-config';b.appendChild(document.createTextNode("MathJax.Hub.Config({tex2jax:{inlineMath: [['$','$']]}});"));document.head.appendChild(b);a=document.createElement('script');a.src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML';document.head.appendChild(a);}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment