Team:ETH Zurich/tpl/head
From 2014.igem.org
(Difference between revisions)
Line 23: | Line 23: | ||
} | } | ||
}); | }); | ||
+ | MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { | ||
+ | if (MathJax.Hub.Browser.isChrome) { | ||
+ | MathJax.OutputJax["HTML-CSS"].Augment({ | ||
+ | Em: function (m) { | ||
+ | if (Math.abs(m) < .0006) {return "0em"} | ||
+ | return m.toFixed(3).replace(/\.?0+$/,"") + "em"; | ||
+ | }, | ||
+ | unEm: function (m) { | ||
+ | return parseFloat(m); | ||
+ | } | ||
+ | }); | ||
+ | } | ||
+ | }); | ||
+ | |||
</script> | </script> | ||
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG"></script> | <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG"></script> |