changeset 261:4c5e7dbfe63d

mathjax call implemented and to quickinstall added
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 25 Jun 2011 18:30:30 +0200
parents 51e077feea0b
children 85d1cbf6922a 630c21e18398
files MoinMoin/templates/base.html quickinstall wikiconfig.py
diffstat 3 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/base.html	Sat Jun 25 18:08:04 2011 +0200
+++ b/MoinMoin/templates/base.html	Sat Jun 25 18:30:30 2011 +0200
@@ -50,6 +50,15 @@
     <script src="{{ url_for('serve.files', name='jquery', filename='jquery.min.js') }}"></script>
     <script src="{{ url_for('serve.files', name='svgweb', filename='svg.js') }}"></script>
     <script src="{{ url_for('.static', filename='js/common.js') }}"></script>
+    <script type="text/x-mathjax-config">
+  MathJax.Hub.Config({
+    extensions: ["tex2jax.js"],
+    jax: ["input/TeX","output/HTML-CSS"],
+    tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
+  });
+</script>
+<script src="{{ url_for('serve.files', name='mathjax', filename='MathJax.js') }}"> </script>
+ 
     {{ scripts }}
     <!--[if lt IE 9]>
         {# TODO: use a local copy later #}
--- a/quickinstall	Sat Jun 25 18:08:04 2011 +0200
+++ b/quickinstall	Sat Jun 25 18:30:30 2011 +0200
@@ -35,6 +35,9 @@
 download $DIR/svgedit.tgz http://static.moinmo.in/files/packages/svg-edit.tar.gz
 tar xz -C $DIR/ -f $DIR/svgedit.tgz
 
+download $DIR/mathjax.tgz http://static.moinmo.in/files/packages/mathjax.tar.gz
+tar xz -C $DIR/ -f $DIR/mathjax.tgz
+
 mkdir $DIR/jquery.fu
 download $DIR/jquery.fu/jquery.fileupload.js https://www.github.com/blueimp/jQuery-File-Upload/raw/master/jquery.fileupload.js
 download $DIR/jquery.fu/jquery.fileupload-ui.js https://www.github.com/blueimp/jQuery-File-Upload/raw/master/jquery.fileupload-ui.js
--- a/wikiconfig.py	Sat Jun 25 18:08:04 2011 +0200
+++ b/wikiconfig.py	Sat Jun 25 18:30:30 2011 +0200
@@ -62,6 +62,7 @@
         anywikidraw = os.path.join(wikiconfig_dir, env_dir, 'AnyWikiDraw', 'anywikidraw', 'moinmoin'),
         twikidraw = os.path.join(wikiconfig_dir, env_dir, 'TWikiDrawPlugin'),
         svgedit = os.path.join(wikiconfig_dir, env_dir, 'svg-edit'),
+        mathjax = os.path.join(wikiconfig_dir, env_dir, 'MathJax'),
         fileupload = os.path.join(wikiconfig_dir, env_dir, 'jquery.fu'),
     )