diff --git a/ws/Docbook/CustomLayer/epub/hdmextensions.xsl b/ws/Docbook/CustomLayer/epub/hdmextensions.xsl
index c01ec9e41d6bf41e233e0811f919657907111154..6809cdc0a4c2fb75072d1195a5b787528592cd9a 100644
--- a/ws/Docbook/CustomLayer/epub/hdmextensions.xsl
+++ b/ws/Docbook/CustomLayer/epub/hdmextensions.xsl
@@ -12,7 +12,15 @@
   
   <xsl:template name="user.head.content">
     <xsl:param name="node"/>
-    <xsl:copy-of select="$toggleDisplayScript"/>    
+    <xsl:copy-of select="$toggleDisplayScript"/>
+    
+    <xsl:if test="//m:math|//d:mathphrase">
+      <script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});</script>
+      <script src="mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+        <xsl:comment>Self closing tags disallowed!</xsl:comment>
+      </script>
+    </xsl:if>  
+    
   </xsl:template>
     
   <xsl:template match="d:videoobject" priority="1">
diff --git a/ws/Docbook/Preprocess/make.rules b/ws/Docbook/Preprocess/make.rules
index a94b3ebaeb3039a6e50d2b69fb412e6150cf6b45..750944941c3f702de9f19251ecfc4588efeb63fc 100644
--- a/ws/Docbook/Preprocess/make.rules
+++ b/ws/Docbook/Preprocess/make.rules
@@ -139,7 +139,7 @@ SAXONCMD=java -cp "${DBOOK_XSL}/tools/lib/saxon9he.jar:/usr/share/java/xercesImp
 	cd ..; rm -rf mimetype META-INF ${*}.epub
 	rsync -a --delete ${DBOOK_XSL}/images OEBPS     # Images, Css
 	cat ${DBOOK_XSL_CUSTOM}/webhelp/common/css/positioning.supp.css >> OEBPS/docbook-epub.css # highlighting supplements
-	zip -qrX ${*}.epub mimetype META-INF OEBPS
+	zip -qrX ${*}.epub mimetype META-INF OEBPS mathjax
 
 %.slide: %.slide.xml
 	${SAXON6CMD} $< ${DBOOK_XSL_CUSTOM}/slide/slideHdm.xsl ${dbookXslSlideParam}