changeset 263:85d1cbf6922a

merged main
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 26 Jun 2011 15:43:15 +0200
parents d1b8dc0abe68 (current diff) 4c5e7dbfe63d (diff)
children d805136dc37e
files quickinstall wikiconfig.py
diffstat 3 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/base.html	Sun Jun 26 14:00:27 2011 +0200
+++ b/MoinMoin/templates/base.html	Sun Jun 26 15:43:15 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	Sun Jun 26 14:00:27 2011 +0200
+++ b/quickinstall	Sun Jun 26 15:43:15 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	Sun Jun 26 14:00:27 2011 +0200
+++ b/wikiconfig.py	Sun Jun 26 15:43:15 2011 +0200
@@ -61,6 +61,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'),
     )