[HepData-svn] r1817 - trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Fri Sep 5 10:51:09 BST 2014


Author: watt
Date: Fri Sep  5 10:51:08 2014
New Revision: 1817

Log:
Enable TeX single-dollar in-line math delimiters for MathJax.

Modified:
   trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/View.tml

Modified: trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/View.tml
==============================================================================
--- trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/View.tml	Wed Sep  3 12:33:19 2014	(r1816)
+++ trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/View.tml	Fri Sep  5 10:51:08 2014	(r1817)
@@ -19,10 +19,17 @@
 <script type="text/javascript" src="http://hepdata.cedar.ac.uk/resource/HEPjax_test.js"></script>
 -->
 <script type="text/javascript" src="http://hepdata.cedar.ac.uk/resource/HEPjax.js"></script>
+<script type="text/x-mathjax-config">
+  MathJax.Hub.Config({
+    tex2jax: {
+      inlineMath: [ ['$','$'], ["\\(","\\)"] ],
+      processEscapes: true
+    }
+  });
+</script>
 <script type="text/javascript"
     src="http://hepdata.cedar.ac.uk/resource/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
 </script>
-
 <script type="text/javascript">
 function ExpandClicked(dom_element, expanded_url, expand_url){
   var startingPoint = dom_element.parentNode.parentNode.nextSibling;


More information about the HepData-svn mailing list