This repository provides a Chrome/Chromium extension to render math expressions on any page, even if it does not supported math rendering, using MathJAX. To do so, the following HTML snippet (see http://docs.mathjax.org/en/latest/start.html#tex-and-latex-input) is injected into the <head>
-tag of a website:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
});
</script>
<script type="text/javascript" async src="path-to-mathjax/MathJax.js?config=TeX-AMS_CHTML"></script>
- Clone this repository:
git clone https://github.com/sisp/chrome-mathjax-injector
- Open Chrome/Chromium, click on the three vertical bars on the top-right > "More tools" > "Extensions".
- Click on the button "Load unpacked extension..."
- Select the directory
chrome-mathjax-injector
which you cloned in step 1.