diff --git a/Makefile b/Makefile
index 784ab724ca518266913dfb9187793ed77e983a47..234f27f19f30042ecb8b207514e990ad92db3919 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,8 @@ html: src/build/html/index.html
 
 src/build/html/index.html: $(SRC) src/source/conf.py
 	make -C src html
+	rm -rf src/build/html/_static/mathjax
+	ln -s /usr/share/javascript/mathjax src/build/html/_static/mathjax
 
 pdf: src/build/latex/dynare.pdf