gollum 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of gollum might be problematic. Click here for more details.
- data/Gemfile +3 -0
- data/HISTORY.md +14 -2
- data/Home.md +3 -0
- data/README.md +24 -7
- data/bin/gollum +25 -6
- data/gollum.gemspec +336 -39
- data/lib/gollum.rb +5 -44
- data/lib/gollum/albino.rb +4 -29
- data/lib/gollum/blob_entry.rb +15 -8
- data/lib/gollum/committer.rb +217 -0
- data/lib/gollum/file.rb +2 -3
- data/lib/gollum/frontend/app.rb +64 -23
- data/lib/gollum/frontend/public/css/dialog.css +141 -0
- data/lib/gollum/frontend/public/css/editor.css +537 -0
- data/lib/gollum/frontend/public/css/gollum.css +643 -33
- data/lib/gollum/frontend/public/css/ie7.css +69 -0
- data/lib/gollum/frontend/public/css/template.css +316 -0
- data/lib/gollum/frontend/public/images/icon-sprite.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/MathJax.js +17 -1678
- data/lib/gollum/frontend/public/javascript/MathJax/config/MMLorHTML.js +10 -55
- data/lib/gollum/frontend/public/javascript/MathJax/config/MathJax.js +288 -49
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.buildinfo +4 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/CSS-styles.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/HTML-snippets.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/ajax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/callback.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/elementjax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/html.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/hub.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/index.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/inputjax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/jax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/message.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/object.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/outputjax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/queue.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/signal.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/variable.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/callbacks.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/community.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/configuration.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/dynamic.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/environment.pickle +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/glossary.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/index.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/installation.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/jsMath.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/mathjax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/mathml.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/model.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/FontWarnings.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/HTML-CSS.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/MMLorHTML.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/MathML.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/MathMenu.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/MathZoom.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/NativeMML.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/TeX.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/hub.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/jsMath2jax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/mml2jax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/tex2jax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/output.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/platforms/index.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/platforms/movable-type.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/platforms/wordpress.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/queues.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/signals.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/start.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/startup.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/synchronize.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/tex.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/typeset.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/CSS-styles.html +173 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/HTML-snippets.html +170 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/badge.gif +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/mt_head.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/mt_menu.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/mt_templates.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/wp_menu.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/wp_templates.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/CSS-styles.txt +79 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/HTML-snippets.txt +83 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/ajax.txt +196 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/callback.txt +259 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/elementjax.txt +122 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/html.txt +122 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/hub.txt +330 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/index.txt +44 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/inputjax.txt +86 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/jax.txt +148 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/message.txt +86 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/object.txt +210 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/outputjax.txt +100 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/queue.txt +99 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/signal.txt +154 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/variable.txt +83 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/callbacks.txt +228 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/community.txt +60 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/configuration.txt +375 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/dynamic.txt +181 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/glossary.txt +75 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/index.txt +71 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/installation.txt +184 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/jsMath.txt +31 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/mathjax.txt +36 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/mathml.txt +97 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/model.txt +224 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/FontWarnings.txt +140 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/HTML-CSS.txt +119 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/MMLorHTML.txt +42 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/MathML.txt +27 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/MathMenu.txt +79 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/MathZoom.txt +42 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/NativeMML.txt +61 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/TeX.txt +67 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/hub.txt +209 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/jsMath2jax.txt +53 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/mml2jax.txt +53 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/tex2jax.txt +137 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/output.txt +126 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/platforms/index.txt +65 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/platforms/movable-type.txt +41 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/platforms/wordpress.txt +42 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/queues.txt +254 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/signals.txt +161 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/start.txt +314 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/startup.txt +152 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/synchronize.txt +65 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/tex.txt +1090 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/typeset.txt +229 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/basic.css +509 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/doctools.js +247 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/file.png +0 -0
- data/lib/gollum/frontend/public/javascript/{jquery-1.4.2.min.js → MathJax/docs/html/_static/jquery.js} +1 -1
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/mathjax_mathml.user.js +22 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/mathjax_wikipedia.user.js +35 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/minus.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/mj.css +223 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/plus.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/pygments.css +61 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/searchtools.js +505 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/underscore.js +16 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/ajax.html +406 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/callback.html +435 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/elementjax.html +283 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/html.html +292 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/hub.html +674 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/index.html +144 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/inputjax.html +221 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/jax.html +319 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/message.html +224 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/object.html +356 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/outputjax.html +246 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/queue.html +247 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/signal.html +334 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/variable.html +220 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/callbacks.html +305 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/community.html +155 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/configuration.html +434 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/dynamic.html +274 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/genindex.html +295 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/glossary.html +160 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/index.html +177 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/installation.html +262 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/jsMath.html +128 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/mathjax.html +137 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/mathml.html +194 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/model.html +305 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/objects.inv +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/FontWarnings.html +264 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/HTML-CSS.html +241 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/MMLorHTML.html +143 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/MathML.html +132 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/MathMenu.html +194 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/MathZoom.html +147 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/NativeMML.html +171 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/TeX.html +175 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/hub.html +342 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/jsMath2jax.html +154 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/mml2jax.html +154 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/tex2jax.html +249 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/output.html +218 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/platforms/index.html +168 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/platforms/movable-type.html +145 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/platforms/wordpress.html +146 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/queues.html +334 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/search.html +95 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/searchindex.js +1 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/signals.html +257 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/start.html +374 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/startup.html +239 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/synchronize.html +161 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/tex.html +1152 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/typeset.html +318 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/CSS-styles.rst +79 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/HTML-snippets.rst +83 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/_static/mathjax_mathml.user.js +22 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/_static/mathjax_wikipedia.user.js +35 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/ajax.rst +196 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/callback.rst +259 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/elementjax.rst +122 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/html.rst +122 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/hub.rst +330 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/index.rst +44 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/inputjax.rst +86 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/jax.rst +148 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/message.rst +86 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/object.rst +210 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/outputjax.rst +100 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/queue.rst +99 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/signal.rst +154 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/variable.rst +83 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/callbacks.rst +228 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/community.rst +60 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/conf.py +198 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/configuration.rst +375 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/dynamic.rst +181 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/glossary.rst +75 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/mt_head.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/mt_menu.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/mt_templates.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/wp_menu.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/wp_templates.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/index.rst +71 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/installation.rst +184 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/jsMath.rst +31 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/mathjax.rst +36 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/mathml.rst +97 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/mjtheme/static/mj.css_t +256 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/mjtheme/theme.conf +30 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/model.rst +224 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/FontWarnings.rst +140 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/HTML-CSS.rst +119 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/MMLorHTML.rst +42 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/MathML.rst +27 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/MathMenu.rst +79 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/MathZoom.rst +42 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/NativeMML.rst +61 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/TeX.rst +67 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/hub.rst +209 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/jsMath2jax.rst +53 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/mml2jax.rst +53 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/tex2jax.rst +137 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/output.rst +126 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/platforms/index.rst +65 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/platforms/movable-type.rst +41 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/platforms/wordpress.rst +42 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/queues.rst +254 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/signals.rst +161 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/start.rst +314 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/startup.rst +152 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/synchronize.rst +65 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/tex.rst +1090 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/typeset.rst +229 -0
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/FontWarnings.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/MathMenu.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/MathZoom.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/AMSmath.js +11 -369
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/AMSsymbols.js +11 -378
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/autobold.js +11 -36
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/boldsymbol.js +10 -101
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/mathchoice.js +10 -57
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/newcommand.js +10 -177
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/noErrors.js +10 -161
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/noUndefined.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/unicode.js +10 -123
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/verb.js +10 -45
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/jsMath2jax.js +10 -69
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/mml2jax.js +10 -93
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/tex2jax.js +10 -234
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/toMathML.js +10 -132
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/jax.js +11 -1466
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/Arrows.js +11 -115
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/BasicLatin.js +11 -51
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/CombDiacritMarks.js +11 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/CombDiactForSymbols.js +11 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/Dingbats.js +11 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/GeneralPunctuation.js +11 -33
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/GeometricShapes.js +11 -59
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/GreekAndCoptic.js +11 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/Latin1Supplement.js +11 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/LetterlikeSymbols.js +11 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/MathOperators.js +11 -221
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/MiscMathSymbolsA.js +11 -31
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/MiscMathSymbolsB.js +11 -160
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/MiscTechnical.js +11 -31
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/SpacingModLetters.js +11 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/SuppMathOperators.js +11 -282
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/SupplementalArrowsB.js +11 -155
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/config.js +11 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/a.js +11 -80
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/b.js +11 -107
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/c.js +11 -104
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/d.js +11 -105
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/e.js +11 -81
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/f.js +11 -51
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/fr.js +11 -72
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/g.js +11 -75
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/h.js +11 -45
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/i.js +11 -78
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/j.js +11 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/k.js +11 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/l.js +11 -168
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/m.js +11 -54
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/n.js +11 -212
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/o.js +11 -81
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/opf.js +11 -72
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/p.js +11 -77
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/q.js +11 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/r.js +11 -127
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/s.js +11 -161
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/scr.js +11 -72
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/t.js +11 -75
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/u.js +11 -84
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/v.js +11 -66
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/w.js +11 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/x.js +11 -40
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/y.js +11 -34
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/z.js +11 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/jax.js +10 -582
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/TeX/config.js +11 -33
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/TeX/jax.js +11 -1644
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/maction.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/menclose.js +10 -53
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/mglyph.js +10 -90
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/mmultiscripts.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/ms.js +10 -41
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/mtable.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/multiline.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/config.js +10 -119
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/AlphaPresentForms.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Arrows.js +12 -103
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/BoldFraktur.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/BoxDrawing.js +12 -61
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CombDiacritMarks.js +12 -92
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CombDiactForSymbols.js +12 -43
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/ControlPictures.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CurrencySymbols.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Cyrillic.js +12 -123
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/EnclosedAlphanum.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GeneralPunctuation.js +12 -61
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GeometricShapes.js +12 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekAndCoptic.js +12 -103
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekBold.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekSSBold.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/IPAExtensions.js +12 -110
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Latin1Supplement.js +12 -117
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedA.js +12 -149
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedAdditional.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedB.js +12 -53
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LetterlikeSymbols.js +12 -63
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Main.js +12 -166
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathBold.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathOperators.js +12 -254
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathSSBold.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscMathSymbolsA.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscMathSymbolsB.js +12 -31
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscSymbols.js +12 -24
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscTechnical.js +12 -36
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/NumberForms.js +12 -33
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/PhoneticExtensions.js +12 -24
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SpacingModLetters.js +12 -81
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SuperAndSubscripts.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SuppMathOperators.js +12 -78
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/AlphaPresentForms.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/BasicLatin.js +12 -116
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/BoxDrawing.js +12 -61
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/CombDiactForSymbols.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/ControlPictures.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/CurrencySymbols.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Cyrillic.js +12 -123
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/EnclosedAlphanum.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GeneralPunctuation.js +12 -44
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekAndCoptic.js +12 -113
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekBoldItalic.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekSSBoldItalic.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/IPAExtensions.js +12 -110
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Latin1Supplement.js +12 -117
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedA.js +12 -149
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedAdditional.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedB.js +12 -53
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LetterlikeSymbols.js +12 -50
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Main.js +12 -50
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathBoldItalic.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathBoldScript.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathOperators.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathSSItalicBold.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/SpacingModLetters.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/AlphaPresentForms.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/BoxDrawing.js +12 -61
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/CombDiactForSymbols.js +12 -41
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/ControlPictures.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/CurrencySymbols.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Cyrillic.js +12 -123
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/EnclosedAlphanum.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GeneralPunctuation.js +12 -44
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GreekAndCoptic.js +12 -72
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GreekItalic.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/IPAExtensions.js +12 -110
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Latin1Supplement.js +12 -117
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedA.js +12 -148
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedAdditional.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedB.js +12 -52
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LetterlikeSymbols.js +12 -50
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Main.js +12 -186
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathItalic.js +12 -72
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathOperators.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathSSItalic.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathScript.js +12 -62
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/SpacingModLetters.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/ij.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/AlphaPresentForms.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Arrows.js +12 -100
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BBBold.js +12 -76
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BlockElements.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BoldFraktur.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BoxDrawing.js +12 -66
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CJK.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CombDiacritMarks.js +12 -80
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CombDiactForSymbols.js +12 -44
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/ControlPictures.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CurrencySymbols.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Cyrillic.js +12 -123
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Dingbats.js +12 -51
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/EnclosedAlphanum.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Fraktur.js +12 -68
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GeneralPunctuation.js +12 -62
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GeometricShapes.js +12 -112
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekAndCoptic.js +12 -103
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekBold.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekBoldItalic.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekItalic.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekSSBold.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekSSBoldItalic.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/IPAExtensions.js +12 -112
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Latin1Supplement.js +12 -109
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedA.js +12 -148
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedAdditional.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedB.js +12 -57
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedD.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LetterlikeSymbols.js +12 -76
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Main.js +12 -374
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBold.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBoldItalic.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBoldScript.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathItalic.js +12 -72
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathOperators.js +12 -201
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSS.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSBold.js +12 -84
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSItalic.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSItalicBold.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathScript.js +12 -62
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathTT.js +12 -82
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscMathSymbolsA.js +12 -60
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscMathSymbolsB.js +12 -148
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscSymbols.js +12 -68
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscSymbolsAndArrows.js +12 -85
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscTechnical.js +12 -74
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/NumberForms.js +12 -33
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/PhoneticExtensions.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SpacingModLetters.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SuperAndSubscripts.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SuppMathOperators.js +12 -265
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SupplementalArrowsA.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SupplementalArrowsB.js +12 -149
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/ij.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Bold/All.js +12 -49
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Regular/All.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Regular/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Bold/All.js +12 -49
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/All.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Bold/All.js +12 -49
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/All.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Bold/All.js +12 -49
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/All.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Bold/All.js +12 -49
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Regular/All.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Regular/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/All.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/Main.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/PrivateUse.js +12 -176
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/All.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/PrivateUse.js +12 -209
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/All.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/Main.js +12 -54
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/PrivateUse.js +12 -236
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/All.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/Main.js +12 -51
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/PrivateUse.js +12 -381
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFiveSym/Regular/All.js +12 -45
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFiveSym/Regular/Main.js +12 -37
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Bold/Main.js +12 -40
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/All.js +12 -57
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/Main.js +12 -56
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/All.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/Main.js +12 -46
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/All.js +12 -71
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/Main.js +12 -99
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Bold/Main.js +12 -40
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/All.js +12 -57
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/Main.js +12 -56
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Bold/Main.js +12 -40
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Regular/All.js +12 -58
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Regular/Main.js +12 -57
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Bold/All.js +12 -54
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Bold/Main.js +12 -38
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Regular/All.js +12 -114
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Regular/Main.js +12 -43
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata-beta.js +10 -365
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata.js +12 -1396
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Arrows.js +12 -59
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BBBold.js +12 -49
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BoxDrawing.js +12 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/CombDiacritMarks.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Dingbats.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/EnclosedAlphanum.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeneralPunctuation.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeometricShapes.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GreekAndCoptic.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Latin1Supplement.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LatinExtendedA.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LetterlikeSymbols.js +12 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Main.js +12 -45
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MathOperators.js +12 -132
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscTechnical.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/PUA.js +12 -37
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SpacingModLetters.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SuppMathOperators.js +12 -44
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Bold/Main.js +12 -90
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Regular/Main.js +12 -89
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/BasicLatin.js +12 -103
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Other.js +12 -24
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/PUA.js +12 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/BasicLatin.js +12 -103
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Main.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Other.js +12 -24
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/PUA.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Bold/Main.js +12 -37
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/BoldItalic/Main.js +12 -104
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Italic/Main.js +12 -103
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Regular/Main.js +12 -36
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Arrows.js +12 -45
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/CombDiacritMarks.js +12 -33
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/CombDiactForSymbols.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/GeneralPunctuation.js +12 -38
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/GeometricShapes.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/GreekAndCoptic.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Latin1Supplement.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LatinExtendedA.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LatinExtendedB.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LetterlikeSymbols.js +12 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Main.js +12 -155
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MathOperators.js +12 -88
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscMathSymbolsA.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscSymbols.js +12 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscTechnical.js +12 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SpacingModLetters.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SuppMathOperators.js +12 -24
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SupplementalArrowsA.js +12 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/CombDiacritMarks.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/GeneralPunctuation.js +12 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/GreekAndCoptic.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/Latin1Supplement.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/LatinExtendedA.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/LatinExtendedB.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/LetterlikeSymbols.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/Main.js +12 -131
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/Arrows.js +12 -45
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/CombDiacritMarks.js +12 -33
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/CombDiactForSymbols.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/GeneralPunctuation.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/GeometricShapes.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/GreekAndCoptic.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/Latin1Supplement.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/LatinExtendedA.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/LatinExtendedB.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/LetterlikeSymbols.js +12 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/Main.js +12 -298
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MathOperators.js +12 -88
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MiscMathSymbolsA.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MiscSymbols.js +12 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MiscTechnical.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/SuppMathOperators.js +12 -24
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/SupplementalArrowsA.js +12 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Math/BoldItalic/Main.js +12 -199
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Math/Italic/Main.js +12 -198
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/BasicLatin.js +12 -109
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/CombDiacritMarks.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Other.js +12 -41
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/BasicLatin.js +12 -109
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/CombDiacritMarks.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Other.js +12 -41
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/BasicLatin.js +12 -109
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/CombDiacritMarks.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Main.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Other.js +12 -41
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/BasicLatin.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Main.js +12 -56
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size1/Regular/Main.js +12 -68
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size2/Regular/Main.js +12 -60
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size3/Regular/Main.js +12 -44
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size4/Regular/Main.js +12 -71
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/BasicLatin.js +12 -117
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/CombDiacritMarks.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/Main.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/Other.js +12 -38
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinChrome/Regular/Main.js +12 -37
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/AMS.js +12 -50
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Bold.js +12 -76
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Main.js +12 -105
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata.js +12 -1684
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/imageFonts.js +10 -177
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/jax.js +12 -1984
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/NativeMML/config.js +10 -43
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/NativeMML/jax.js +10 -222
- data/lib/gollum/frontend/public/javascript/MathJax/test/index-images.html +22 -14
- data/lib/gollum/frontend/public/javascript/MathJax/test/index.html +58 -8
- data/lib/gollum/frontend/public/javascript/MathJax/test/sample-dynamic.html +54 -0
- data/lib/gollum/frontend/public/javascript/MathJax/test/sample-mml.html +44 -0
- data/lib/gollum/frontend/public/javascript/MathJax/test/sample-signals.html +121 -0
- data/lib/gollum/frontend/public/javascript/MathJax/test/sample-tex.html +22 -0
- data/lib/gollum/frontend/public/javascript/MathJax/test/sample-tex2mml.html +23 -0
- data/lib/gollum/frontend/public/javascript/editor/gollum.editor.js +1084 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/asciidoc.js +168 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/creole.js +103 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/markdown.js +211 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/org.js +173 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/pod.js +111 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/rdoc.js +74 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/textile.js +175 -0
- data/lib/gollum/frontend/public/javascript/gollum.dialog.js +206 -0
- data/lib/gollum/frontend/public/javascript/gollum.js +178 -231
- data/lib/gollum/frontend/public/javascript/gollum.placeholder.js +54 -0
- data/lib/gollum/frontend/public/javascript/jquery.color.js +123 -0
- data/lib/gollum/frontend/public/javascript/jquery.js +7179 -0
- data/lib/gollum/frontend/templates/compare.mustache +51 -31
- data/lib/gollum/frontend/templates/create.mustache +15 -39
- data/lib/gollum/frontend/templates/edit.mustache +17 -38
- data/lib/gollum/frontend/templates/editor.mustache +116 -0
- data/lib/gollum/frontend/templates/error.mustache +5 -8
- data/lib/gollum/frontend/templates/history.mustache +59 -36
- data/lib/gollum/frontend/templates/layout.mustache +24 -29
- data/lib/gollum/frontend/templates/page.mustache +34 -26
- data/lib/gollum/frontend/templates/search.mustache +35 -18
- data/lib/gollum/frontend/templates/searchbar.mustache +10 -0
- data/lib/gollum/frontend/views/compare.rb +9 -5
- data/lib/gollum/frontend/views/create.rb +23 -0
- data/lib/gollum/frontend/views/edit.rb +40 -1
- data/lib/gollum/frontend/views/history.rb +1 -1
- data/lib/gollum/frontend/views/page.rb +17 -6
- data/lib/gollum/frontend/views/search.rb +8 -0
- data/lib/gollum/git_access.rb +241 -0
- data/lib/gollum/markup.rb +107 -47
- data/lib/gollum/page.rb +114 -67
- data/lib/gollum/sanitization.rb +115 -0
- data/lib/gollum/wiki.rb +307 -267
- data/test/examples/lotr.git/COMMIT_EDITMSG +1 -0
- data/test/examples/lotr.git/config +8 -1
- data/test/examples/lotr.git/index +0 -0
- data/test/examples/lotr.git/info/exclude +1 -1
- data/test/examples/lotr.git/logs/HEAD +2 -0
- data/test/examples/lotr.git/logs/refs/heads/master +2 -0
- data/test/examples/lotr.git/objects/84/0ec5b1ba1320e8ec443f28f99566f615d5af10 +0 -0
- data/test/examples/lotr.git/objects/a3/1ca2a7c352c92531a8b99815d15843b259e814 +0 -0
- data/test/examples/lotr.git/objects/a8/ad3c09dd842a3517085bfadd37718856dee813 +0 -0
- data/test/examples/lotr.git/packed-refs +1 -1
- data/test/examples/lotr.git/refs/heads/master +1 -1
- data/test/examples/lotr.git/refs/remotes/origin/HEAD +1 -0
- data/test/examples/page_file_dir.git/COMMIT_EDITMSG +1 -0
- data/test/examples/page_file_dir.git/HEAD +1 -0
- data/test/examples/page_file_dir.git/config +6 -0
- data/test/examples/page_file_dir.git/description +1 -0
- data/test/examples/page_file_dir.git/index +0 -0
- data/test/examples/page_file_dir.git/info/exclude +6 -0
- data/test/examples/page_file_dir.git/logs/HEAD +1 -0
- data/test/examples/page_file_dir.git/logs/refs/heads/master +1 -0
- data/test/examples/page_file_dir.git/objects/0c/7d27db1f575263efdcab3dc650f4502a2dbcbf +0 -0
- data/test/examples/page_file_dir.git/objects/22/b404803c966dd92865614d86ff22ca12e50c1e +0 -0
- data/test/examples/page_file_dir.git/objects/25/7cc5642cb1a054f08cc83f2d943e56fd3ebe99 +0 -0
- data/test/examples/page_file_dir.git/objects/57/16ca5987cbf97d6bb54920bea6adde242d87e6 +0 -0
- data/test/examples/page_file_dir.git/objects/5b/43e14e0a15fb6f08feab1773d1c0991e9f71e2 +0 -0
- data/test/examples/page_file_dir.git/refs/heads/master +1 -0
- data/test/examples/revert.git/COMMIT_EDITMSG +1 -0
- data/test/examples/revert.git/HEAD +1 -0
- data/test/examples/revert.git/config +12 -0
- data/test/examples/revert.git/description +1 -0
- data/test/examples/revert.git/index +0 -0
- data/test/examples/revert.git/info/exclude +6 -0
- data/test/examples/revert.git/logs/HEAD +2 -0
- data/test/examples/revert.git/logs/refs/heads/master +2 -0
- data/test/examples/revert.git/objects/20/2ced67cea93c7b6bd2928aa1daef8d1d55a20d +0 -0
- data/test/examples/revert.git/objects/41/76394bfa11222363c66ce7e84b5f154095b6d9 +0 -0
- data/test/examples/revert.git/objects/6a/69f92020f5df77af6e8813ff1232493383b708 +0 -0
- data/test/examples/revert.git/objects/b4/785957bc986dc39c629de9fac9df46972c00fc +0 -0
- data/test/examples/revert.git/objects/f4/03b791119f8232b7cb0ba455c624ac6435f433 +0 -0
- data/test/examples/revert.git/objects/info/packs +2 -0
- data/test/examples/revert.git/objects/pack/pack-a561f8437234f74d0bacb9e0eebe52d207f5770d.idx +0 -0
- data/test/examples/revert.git/objects/pack/pack-a561f8437234f74d0bacb9e0eebe52d207f5770d.pack +0 -0
- data/test/examples/revert.git/packed-refs +2 -0
- data/test/examples/revert.git/refs/heads/master +1 -0
- data/test/examples/revert.git/refs/remotes/origin/HEAD +1 -0
- data/test/examples/yubiwa.git/HEAD +1 -0
- data/test/examples/yubiwa.git/config +5 -0
- data/test/examples/yubiwa.git/description +1 -0
- data/test/examples/yubiwa.git/info/exclude +6 -0
- data/test/examples/yubiwa.git/objects/10/fa2ddc4e3b4009d8a453aace10bd6148c1ad00 +0 -0
- data/test/examples/yubiwa.git/objects/52/4b82874327ea7cbf730389964ba7cb3de966de +0 -0
- data/test/examples/yubiwa.git/objects/58/3fc201cb457fb3f1480f3e1e5999b119633835 +0 -0
- data/test/examples/yubiwa.git/objects/87/bc1dd46ab3d3874d4e898d45dd512cc20a7cc8 +1 -0
- data/test/examples/yubiwa.git/objects/89/64ed1b4e21aa90e831763bbce9034bfda81b70 +0 -0
- data/test/examples/yubiwa.git/objects/9f/f6dd0660da5fba2d3374adb2b84fa653bb538b +0 -0
- data/test/examples/yubiwa.git/objects/ac/e97abf2b177815a1972d7db22f229f58c83309 +0 -0
- data/test/examples/yubiwa.git/objects/b1/f443863a4816628807fbf86141ebef055dda34 +0 -0
- data/test/examples/yubiwa.git/refs/heads/master +1 -0
- data/test/helper.rb +19 -3
- data/test/test_app.rb +144 -0
- data/test/test_committer.rb +51 -0
- data/test/test_file.rb +3 -1
- data/test/test_git_access.rb +52 -0
- data/test/test_markup.rb +92 -17
- data/test/test_page.rb +30 -2
- data/test/test_page_revert.rb +45 -0
- data/test/test_wiki.rb +55 -36
- metadata +388 -47
- data/lib/gollum/frontend/public/css/editbar.css +0 -194
- data/lib/gollum/frontend/public/css/screen.css +0 -726
- data/lib/gollum/frontend/public/css/syntax.css +0 -61
- data/lib/gollum/frontend/public/images/buttons.png +0 -0
- data/lib/gollum/frontend/public/images/editbar-buttons.png +0 -0
- data/lib/gollum/frontend/public/images/example.png +0 -0
- data/lib/gollum/frontend/public/images/twiddle-down.png +0 -0
- data/lib/gollum/frontend/public/images/twiddle-right.png +0 -0
- data/lib/gollum/frontend/public/images/txt.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/COPYING.txt +0 -202
- data/lib/gollum/frontend/public/javascript/MathJax/README.txt +0 -480
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/blank.gif +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Hiragana.js +0 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Specials.js +0 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscMathSymbolsB.js +0 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscSymbols.js +0 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/SpacingModLetters.js +0 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Other.js +0 -28
- data/lib/gollum/frontend/public/javascript/jquery.previewable_comment_form.js +0 -57
- data/lib/gollum/frontend/public/javascript/jquery.tabs.js +0 -59
- data/lib/gollum/frontend/public/javascript/jquery.text_selection-1.0.0.min.js +0 -1
- data/lib/gollum/frontend/templates/editbar.mustache +0 -1196
- data/test/examples/lotr.git/hooks/applypatch-msg.sample +0 -15
- data/test/examples/lotr.git/hooks/commit-msg.sample +0 -24
- data/test/examples/lotr.git/hooks/post-commit.sample +0 -8
- data/test/examples/lotr.git/hooks/post-receive.sample +0 -15
- data/test/examples/lotr.git/hooks/post-update.sample +0 -8
- data/test/examples/lotr.git/hooks/pre-applypatch.sample +0 -14
- data/test/examples/lotr.git/hooks/pre-commit.sample +0 -46
- data/test/examples/lotr.git/hooks/pre-rebase.sample +0 -169
- data/test/examples/lotr.git/hooks/prepare-commit-msg.sample +0 -36
- data/test/examples/lotr.git/hooks/update.sample +0 -128
- data/test/examples/lotr.git/info/refs +0 -1
@@ -1,40 +1,18 @@
|
|
1
|
-
|
2
|
-
*
|
3
|
-
* MathJax/jax/input/TeX/config.js
|
4
|
-
*
|
5
|
-
* Initializes the TeX InputJax (the main definition is in
|
6
|
-
* MathJax/jax/input/TeX/jax.js, which is loaded when needed).
|
7
|
-
*
|
8
|
-
* ---------------------------------------------------------------------
|
1
|
+
/*
|
2
|
+
* ../SourceForge/trunk/mathjax/jax/input/TeX/config.js
|
9
3
|
*
|
10
|
-
* Copyright (c)
|
4
|
+
* Copyright (c) 2010 Design Science, Inc.
|
5
|
+
*
|
6
|
+
* Part of the MathJax library.
|
7
|
+
* See http://www.mathjax.org for details.
|
11
8
|
*
|
12
|
-
* Licensed under the Apache License, Version 2.0
|
9
|
+
* Licensed under the Apache License, Version 2.0;
|
13
10
|
* you may not use this file except in compliance with the License.
|
14
|
-
*
|
15
|
-
*
|
11
|
+
*
|
16
12
|
* http://www.apache.org/licenses/LICENSE-2.0
|
17
|
-
*
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
19
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
21
|
-
* See the License for the specific language governing permissions and
|
22
|
-
* limitations under the License.
|
23
13
|
*/
|
24
14
|
|
25
|
-
MathJax.
|
26
|
-
name:
|
27
|
-
|
28
|
-
directory: MathJax.InputJax.directory + "/TeX",
|
29
|
-
extensionDir: MathJax.InputJax.extensionDir + "/TeX",
|
30
|
-
require: [MathJax.ElementJax.directory + "/mml/jax.js"],
|
31
|
-
|
32
|
-
config: {
|
33
|
-
TagSide: "right",
|
34
|
-
TagIndent: "0.8em",
|
35
|
-
MultLineWidth: "85%"
|
36
|
-
}
|
37
|
-
});
|
38
|
-
MathJax.InputJax.TeX.Register("math/tex");
|
15
|
+
MathJax.Unpack([
|
16
|
+
['MathJax.InputJax','.TeX','=',0,'({name:"TeX",version:"1.0",directory:',0,'.directory+"/','TeX",extensionDir:',0,'.extensionDir+"/TeX",require:[MathJax.ElementJax',6,'mml/jax.js"],config:{TagSide:"right",TagIndent:"0.8em",MultLineWidth:"85%"}});',0,1,'.Register("math/tex");',0,1,'.loadComplete("config.js");']
|
17
|
+
]);
|
39
18
|
|
40
|
-
MathJax.InputJax.TeX.loadComplete("config.js");
|
@@ -1,1652 +1,19 @@
|
|
1
|
-
|
2
|
-
*
|
3
|
-
* MathJax/jax/input/TeX/jax.js
|
1
|
+
/*
|
2
|
+
* ../SourceForge/trunk/mathjax/jax/input/TeX/jax.js
|
4
3
|
*
|
5
|
-
*
|
6
|
-
* TeX and LaTeX format and converts it to the MML ElementJax
|
7
|
-
* internal format.
|
4
|
+
* Copyright (c) 2010 Design Science, Inc.
|
8
5
|
*
|
9
|
-
*
|
10
|
-
*
|
11
|
-
* Copyright (c) 2009-2010 Design Science, Inc.
|
6
|
+
* Part of the MathJax library.
|
7
|
+
* See http://www.mathjax.org for details.
|
12
8
|
*
|
13
|
-
* Licensed under the Apache License, Version 2.0
|
9
|
+
* Licensed under the Apache License, Version 2.0;
|
14
10
|
* you may not use this file except in compliance with the License.
|
15
|
-
*
|
16
|
-
*
|
11
|
+
*
|
17
12
|
* http://www.apache.org/licenses/LICENSE-2.0
|
18
|
-
*
|
19
|
-
* Unless required by applicable law or agreed to in writing, software
|
20
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
21
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
22
|
-
* See the License for the specific language governing permissions and
|
23
|
-
* limitations under the License.
|
24
13
|
*/
|
25
14
|
|
26
|
-
(
|
27
|
-
var TRUE = true, FALSE = false, MML;
|
28
|
-
|
29
|
-
|
30
|
-
Init: function (env) {
|
31
|
-
this.global = {};
|
32
|
-
this.data = [STACKITEM.start().With({global: this.global})];
|
33
|
-
if (env) {this.data[0].env = env}
|
34
|
-
this.env = this.data[0].env;
|
35
|
-
},
|
36
|
-
Push: function () {
|
37
|
-
var i, m, item, top;
|
38
|
-
for (i = 0, m = arguments.length; i < m; i++) {
|
39
|
-
item = arguments[i];
|
40
|
-
if (item instanceof MML.mbase) {item = STACKITEM.mml(item)}
|
41
|
-
item.global = this.global;
|
42
|
-
top = (this.data.length ? this.Top().checkItem(item) : TRUE);
|
43
|
-
if (top instanceof Array) {this.Pop(); this.Push.apply(this,top)}
|
44
|
-
else if (top instanceof STACKITEM) {this.Pop(); this.Push(top)}
|
45
|
-
else if (top) {
|
46
|
-
this.data.push(item);
|
47
|
-
if (item.env) {
|
48
|
-
for (var id in this.env)
|
49
|
-
{if (this.env.hasOwnProperty(id)) {item.env[id] = this.env[id]}}
|
50
|
-
this.env = item.env;
|
51
|
-
} else {item.env = this.env}
|
52
|
-
}
|
53
|
-
}
|
54
|
-
},
|
55
|
-
Pop: function () {
|
56
|
-
var item = this.data.pop(); if (!item.isOpen) {delete item.env}
|
57
|
-
this.env = (this.data.length ? this.Top().env : {});
|
58
|
-
return item;
|
59
|
-
},
|
60
|
-
Top: function (n) {
|
61
|
-
if (n == null) {n = 1}
|
62
|
-
if (this.data.length < n) {return null}
|
63
|
-
return this.data[this.data.length-n];
|
64
|
-
},
|
65
|
-
Prev: function (noPop) {
|
66
|
-
var top = this.Top();
|
67
|
-
if (noPop) {return top.data[top.data.length-1]}
|
68
|
-
else {return top.Pop()}
|
69
|
-
},
|
70
|
-
toString: function () {return "stack[\n "+this.data.join("\n ")+"\n]"}
|
71
|
-
});
|
72
|
-
|
73
|
-
var STACKITEM = TEX.Stack.Item = MathJax.Object.Subclass({
|
74
|
-
type: "base",
|
75
|
-
closeError: "Extra close brace or missing open brace",
|
76
|
-
rightError: "Missing \\left or extra \\right",
|
77
|
-
Init: function () {
|
78
|
-
if (this.isOpen) {this.env = {}}
|
79
|
-
this.data = [];
|
80
|
-
this.Push.apply(this,arguments);
|
81
|
-
},
|
82
|
-
Push: function () {this.data.push.apply(this.data,arguments)},
|
83
|
-
Pop: function () {return this.data.pop()},
|
84
|
-
mmlData: function (inferred,forceRow) {
|
85
|
-
if (inferred == null) {inferred = TRUE}
|
86
|
-
if (this.data.length === 1 && !forceRow) {return this.data[0]}
|
87
|
-
return MML.mrow.apply(MML,this.data).With((inferred ? {inferred: TRUE}: {}));
|
88
|
-
},
|
89
|
-
checkItem: function (item) {
|
90
|
-
if (item.type === "over" && this.isOpen) {item.num = this.mmlData(FALSE); this.data = []}
|
91
|
-
if (item.type === "cell" && this.isOpen) {TEX.Error("Misplaced "+item.name)}
|
92
|
-
if (item.isClose && this[item.type+"Error"]) {TEX.Error(this[item.type+"Error"])}
|
93
|
-
if (!item.isNotStack) {return TRUE}
|
94
|
-
this.Push(item.data[0]); return FALSE;
|
95
|
-
},
|
96
|
-
With: function (def) {
|
97
|
-
for (var id in def) {if (def.hasOwnProperty(id)) {this[id] = def[id]}}
|
98
|
-
return this;
|
99
|
-
},
|
100
|
-
toString: function () {return this.type+"["+this.data.join("; ")+"]"}
|
101
|
-
});
|
102
|
-
|
103
|
-
STACKITEM.start = STACKITEM.Subclass({
|
104
|
-
type: "start", isOpen: TRUE,
|
105
|
-
checkItem: function (item) {
|
106
|
-
if (item.type === "stop") {return STACKITEM.mml(this.mmlData())}
|
107
|
-
return this.SUPER(arguments).checkItem.call(this,item);
|
108
|
-
}
|
109
|
-
});
|
110
|
-
|
111
|
-
STACKITEM.stop = STACKITEM.Subclass({
|
112
|
-
type: "stop", isClose: TRUE
|
113
|
-
});
|
114
|
-
|
115
|
-
STACKITEM.open = STACKITEM.Subclass({
|
116
|
-
type: "open", isOpen: TRUE,
|
117
|
-
stopError: "Extra open brace or missing close brace",
|
118
|
-
checkItem: function (item) {
|
119
|
-
if (item.type === "close") {
|
120
|
-
var mml = this.mmlData(); // this.mmlData(TRUE,TRUE); // force row
|
121
|
-
return STACKITEM.mml(MML.TeXAtom(mml)); // TeXAtom make it an ORD to prevent spacing (FIXME: should be another way)
|
122
|
-
}
|
123
|
-
return this.SUPER(arguments).checkItem.call(this,item);
|
124
|
-
}
|
125
|
-
});
|
126
|
-
|
127
|
-
STACKITEM.close = STACKITEM.Subclass({
|
128
|
-
type: "close", isClose: TRUE
|
129
|
-
});
|
130
|
-
|
131
|
-
STACKITEM.subsup = STACKITEM.Subclass({
|
132
|
-
type: "subsup",
|
133
|
-
stopError: "Missing superscript or subscript argument",
|
134
|
-
checkItem: function (item) {
|
135
|
-
var script = ["","subscript","superscript"][this.position];
|
136
|
-
if (item.type === "open" || item.type === "left") {return TRUE}
|
137
|
-
if (item.type === "mml") {
|
138
|
-
this.data[0].SetData(this.position,item.data[0]);
|
139
|
-
return STACKITEM.mml(this.data[0]);
|
140
|
-
}
|
141
|
-
if (this.SUPER(arguments).checkItem.call(this,item))
|
142
|
-
{TEX.Error("Missing open brace for "+script)}
|
143
|
-
},
|
144
|
-
Pop: function () {}
|
145
|
-
});
|
146
|
-
|
147
|
-
STACKITEM.over = STACKITEM.Subclass({
|
148
|
-
type: "over", isClose: TRUE, name: "\\over",
|
149
|
-
checkItem: function (item,stack) {
|
150
|
-
if (item.type === "over") {TEX.Error("Ambiguous use of "+item.name)}
|
151
|
-
if (item.isClose) {
|
152
|
-
var mml = MML.mfrac(this.num,this.mmlData(FALSE));
|
153
|
-
if (this.thickness != null) {mml.linethickness = this.thickness}
|
154
|
-
if (this.open || this.close) {
|
155
|
-
mml.texClass = MML.TEXCLASS.INNER;
|
156
|
-
mml.texWithDelims = TRUE;
|
157
|
-
mml = MML.mfenced(mml).With({open: this.open, close: this.close});
|
158
|
-
}
|
159
|
-
return [STACKITEM.mml(mml), item];
|
160
|
-
}
|
161
|
-
return this.SUPER(arguments).checkItem.call(this,item);
|
162
|
-
},
|
163
|
-
toString: function () {return "over["+this.num+" / "+this.data.join("; ")+"]"}
|
164
|
-
});
|
165
|
-
|
166
|
-
STACKITEM.left = STACKITEM.Subclass({
|
167
|
-
type: "left", isOpen: TRUE, delim: '(',
|
168
|
-
stopError: "Extra \\left or missing \\right",
|
169
|
-
checkItem: function (item) {
|
170
|
-
if (item.type === "right") {
|
171
|
-
var mml = MML.mfenced(this.data.length === 1 ? this.data[0] : MML.mrow.apply(MML,this.data));
|
172
|
-
return STACKITEM.mml(mml.With({open: this.delim, close: item.delim}));
|
173
|
-
}
|
174
|
-
return this.SUPER(arguments).checkItem.call(this,item);
|
175
|
-
}
|
176
|
-
});
|
177
|
-
|
178
|
-
STACKITEM.right = STACKITEM.Subclass({
|
179
|
-
type: "right", isClose: TRUE, delim: ')'
|
180
|
-
});
|
181
|
-
|
182
|
-
STACKITEM.begin = STACKITEM.Subclass({
|
183
|
-
type: "begin", isOpen: TRUE,
|
184
|
-
checkItem: function (item) {
|
185
|
-
if (item.type === "end") {
|
186
|
-
if (item.name !== this.name)
|
187
|
-
{TEX.Error("\\begin{"+this.name+"} ended with \\end{"+item.name+"}")}
|
188
|
-
if (!this.end) {return STACKITEM.mml(this.mmlData())}
|
189
|
-
return this.parse[this.end].call(this.parse,this,this.data);
|
190
|
-
}
|
191
|
-
if (item.type === "stop") {TEX.Error("Missing \\end{"+this.name+"}")}
|
192
|
-
return this.SUPER(arguments).checkItem.call(this,item);
|
193
|
-
}
|
194
|
-
});
|
195
|
-
|
196
|
-
STACKITEM.end = STACKITEM.Subclass({
|
197
|
-
type: "end", isClose: TRUE
|
198
|
-
});
|
199
|
-
|
200
|
-
STACKITEM.style = STACKITEM.Subclass({
|
201
|
-
type: "style",
|
202
|
-
checkItem: function (item) {
|
203
|
-
if (!item.isClose) {return this.SUPER(arguments).checkItem.call(this,item)}
|
204
|
-
var mml = MML.mstyle.apply(MML,this.data).With(this.styles);
|
205
|
-
return [STACKITEM.mml(mml),item];
|
206
|
-
}
|
207
|
-
});
|
208
|
-
|
209
|
-
STACKITEM.position = STACKITEM.Subclass({
|
210
|
-
type: "position",
|
211
|
-
checkItem: function (item) {
|
212
|
-
if (item.isClose) {TEX.Error("Missing box for "+this.name)}
|
213
|
-
if (item.isNotStack) {
|
214
|
-
var mml = item.mmlData();
|
215
|
-
switch (this.move) {
|
216
|
-
case 'vertical':
|
217
|
-
var mml = MML.mpadded(mml).With({height: this.dh, depth: this.dd, voffset: this.dh});
|
218
|
-
return [STACKITEM.mml(mml)];
|
219
|
-
case 'horizontal':
|
220
|
-
return [STACKITEM.mml(this.left),item,STACKITEM.mml(this.right)];
|
221
|
-
}
|
222
|
-
}
|
223
|
-
return this.SUPER(arguments).checkItem.call(this,item);
|
224
|
-
}
|
225
|
-
});
|
226
|
-
|
227
|
-
STACKITEM.array = STACKITEM.Subclass({
|
228
|
-
type: "array", isOpen: TRUE, arraydef: {},
|
229
|
-
Init: function () {
|
230
|
-
this.table = []; this.row = []; this.env = {};
|
231
|
-
this.SUPER(arguments).Init.apply(this,arguments);
|
232
|
-
},
|
233
|
-
checkItem: function (item) {
|
234
|
-
if (item.isClose) {
|
235
|
-
if (item.isEntry) {this.EndEntry(); this.clearEnv(); return FALSE}
|
236
|
-
if (item.isCR) {this.EndEntry(); this.EndRow(); this.clearEnv(); return FALSE}
|
237
|
-
this.EndTable(); this.clearEnv();
|
238
|
-
var mml = MML.mtable.apply(MML,this.table).With(this.arraydef);
|
239
|
-
if (this.open || this.close) {
|
240
|
-
mml = MML.mfenced(mml).With({open: this.open, close: this.close});
|
241
|
-
}
|
242
|
-
mml = STACKITEM.mml(mml);
|
243
|
-
if (this.requireClose) {
|
244
|
-
if (item.type === 'close') {return mml}
|
245
|
-
TEX.Error("Missing close brace");
|
246
|
-
}
|
247
|
-
return [mml,item];
|
248
|
-
}
|
249
|
-
return this.SUPER(arguments).checkItem.call(this,item);
|
250
|
-
},
|
251
|
-
EndEntry: function () {this.row.push(MML.mtd.apply(MML,this.data)); this.data = []},
|
252
|
-
EndRow: function () {this.table.push(MML.mtr.apply(MML,this.row)); this.row = []},
|
253
|
-
EndTable: function () {
|
254
|
-
if (this.data.length || this.row.length) {this.EndEntry(); this.EndRow()}
|
255
|
-
},
|
256
|
-
clearEnv: function () {
|
257
|
-
for (var id in this.env) {if (this.env.hasOwnProperty(id)) {delete this.env[id]}}
|
258
|
-
}
|
259
|
-
});
|
260
|
-
|
261
|
-
STACKITEM.cell = STACKITEM.Subclass({
|
262
|
-
type: "cell", isClose: TRUE
|
263
|
-
});
|
264
|
-
|
265
|
-
STACKITEM.mml = STACKITEM.Subclass({
|
266
|
-
type: "mml", isNotStack: TRUE,
|
267
|
-
Push: function () {
|
268
|
-
// embellished are type ORD in TeX (but not MML) so wrap them in TeXAtom
|
269
|
-
for (var i = 0, m = arguments.length; i < m; i++) {
|
270
|
-
if (arguments[i].type !== "mo" && arguments[i].isEmbellished())
|
271
|
-
{arguments[i] = MML.TeXAtom(arguments[i]).With({isEmbellishedWrapper: TRUE})}
|
272
|
-
}
|
273
|
-
this.data.push.apply(this.data,arguments);
|
274
|
-
},
|
275
|
-
Add: function () {this.data.push.apply(this.data,arguments); return this}
|
276
|
-
});
|
277
|
-
|
278
|
-
|
279
|
-
var TEXDEF = TEX.Definitions = {};
|
280
|
-
|
281
|
-
TEX.Startup = function () {
|
282
|
-
MML = MathJax.ElementJax.mml;
|
283
|
-
MathJax.Hub.Insert(TEXDEF,{
|
284
|
-
|
285
|
-
// patterns for letters and numbers
|
286
|
-
letter: /[a-z]/i,
|
287
|
-
digit: /[0-9.]/,
|
288
|
-
number: /^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)*|\.[0-9]+)/,
|
289
|
-
|
290
|
-
special: {
|
291
|
-
'\\': 'ControlSequence',
|
292
|
-
'{': 'Open',
|
293
|
-
'}': 'Close',
|
294
|
-
'~': 'Tilde',
|
295
|
-
'^': 'Superscript',
|
296
|
-
'_': 'Subscript',
|
297
|
-
' ': 'Space',
|
298
|
-
"\t": 'Space',
|
299
|
-
"\r": 'Space',
|
300
|
-
"\n": 'Space',
|
301
|
-
"'": 'Prime',
|
302
|
-
'%': 'Comment',
|
303
|
-
'&': 'Entry',
|
304
|
-
'#': 'Hash',
|
305
|
-
'\u2019': 'Prime'
|
306
|
-
},
|
307
|
-
|
308
|
-
remap: {
|
309
|
-
'-': '2212',
|
310
|
-
'*': '2217'
|
311
|
-
},
|
312
|
-
|
313
|
-
mathchar0mi: {
|
314
|
-
// Lower-case greek
|
315
|
-
alpha: '03B1',
|
316
|
-
beta: '03B2',
|
317
|
-
gamma: '03B3',
|
318
|
-
delta: '03B4',
|
319
|
-
epsilon: '03F5',
|
320
|
-
zeta: '03B6',
|
321
|
-
eta: '03B7',
|
322
|
-
theta: '03B8',
|
323
|
-
iota: '03B9',
|
324
|
-
kappa: '03BA',
|
325
|
-
lambda: '03BB',
|
326
|
-
mu: '03BC',
|
327
|
-
nu: '03BD',
|
328
|
-
xi: '03BE',
|
329
|
-
omicron: '03BF', // added for completeness
|
330
|
-
pi: '03C0',
|
331
|
-
rho: '03C1',
|
332
|
-
sigma: '03C3',
|
333
|
-
tau: '03C4',
|
334
|
-
upsilon: '03C5',
|
335
|
-
phi: '03D5',
|
336
|
-
chi: '03C7',
|
337
|
-
psi: '03C8',
|
338
|
-
omega: '03C9',
|
339
|
-
varepsilon: '03B5',
|
340
|
-
vartheta: '03D1',
|
341
|
-
varpi: '03D6',
|
342
|
-
varrho: '03F1',
|
343
|
-
varsigma: '03C2',
|
344
|
-
varphi: '03C6',
|
345
|
-
|
346
|
-
// Ord symbols
|
347
|
-
S: '00A7',
|
348
|
-
aleph: ['2135',{mathvariant: MML.VARIANT.NORMAL}],
|
349
|
-
hbar: '210F',
|
350
|
-
imath: '0131',
|
351
|
-
jmath: '0237',
|
352
|
-
ell: '2113',
|
353
|
-
wp: ['2118',{mathvariant: MML.VARIANT.NORMAL}],
|
354
|
-
Re: ['211C',{mathvariant: MML.VARIANT.NORMAL}],
|
355
|
-
Im: ['2111',{mathvariant: MML.VARIANT.NORMAL}],
|
356
|
-
partial: ['2202',{mathvariant: MML.VARIANT.NORMAL}],
|
357
|
-
infty: ['221E',{mathvariant: MML.VARIANT.NORMAL}],
|
358
|
-
prime: ['2032',{mathvariant: MML.VARIANT.NORMAL}],
|
359
|
-
emptyset: ['2205',{mathvariant: MML.VARIANT.NORMAL}],
|
360
|
-
nabla: ['2207',{mathvariant: MML.VARIANT.NORMAL}],
|
361
|
-
top: ['22A4',{mathvariant: MML.VARIANT.NORMAL}],
|
362
|
-
bot: ['22A5',{mathvariant: MML.VARIANT.NORMAL}],
|
363
|
-
angle: ['2220',{mathvariant: MML.VARIANT.NORMAL}],
|
364
|
-
triangle: ['25B3',{mathvariant: MML.VARIANT.NORMAL}],
|
365
|
-
backslash: ['2216',{mathvariant: MML.VARIANT.NORMAL}],
|
366
|
-
forall: ['2200',{mathvariant: MML.VARIANT.NORMAL}],
|
367
|
-
exists: ['2203',{mathvariant: MML.VARIANT.NORMAL}],
|
368
|
-
neg: ['00AC',{mathvariant: MML.VARIANT.NORMAL}],
|
369
|
-
lnot: ['00AC',{mathvariant: MML.VARIANT.NORMAL}],
|
370
|
-
flat: ['266D',{mathvariant: MML.VARIANT.NORMAL}],
|
371
|
-
natural: ['266E',{mathvariant: MML.VARIANT.NORMAL}],
|
372
|
-
sharp: ['266F',{mathvariant: MML.VARIANT.NORMAL}],
|
373
|
-
clubsuit: ['2663',{mathvariant: MML.VARIANT.NORMAL}],
|
374
|
-
diamondsuit: ['2662',{mathvariant: MML.VARIANT.NORMAL}],
|
375
|
-
heartsuit: ['2661',{mathvariant: MML.VARIANT.NORMAL}],
|
376
|
-
spadesuit: ['2660',{mathvariant: MML.VARIANT.NORMAL}]
|
377
|
-
},
|
378
|
-
|
379
|
-
mathchar0mo: {
|
380
|
-
surd: '221A',
|
381
|
-
|
382
|
-
// big ops
|
383
|
-
coprod: ['2210',{texClass: MML.TEXCLASS.OP, movesupsub:TRUE}],
|
384
|
-
bigvee: ['22C1',{texClass: MML.TEXCLASS.OP, movesupsub:TRUE}],
|
385
|
-
bigwedge: ['22C0',{texClass: MML.TEXCLASS.OP, movesupsub:TRUE}],
|
386
|
-
biguplus: ['2A04',{texClass: MML.TEXCLASS.OP, movesupsub:TRUE}],
|
387
|
-
bigcap: ['22C2',{texClass: MML.TEXCLASS.OP, movesupsub:TRUE}],
|
388
|
-
bigcup: ['22C3',{texClass: MML.TEXCLASS.OP, movesupsub:TRUE}],
|
389
|
-
'int': ['222B',{texClass: MML.TEXCLASS.OP}],
|
390
|
-
intop: ['222B',{texClass: MML.TEXCLASS.OP, movesupsub:TRUE, movablelimits:TRUE}],
|
391
|
-
iint: ['222C',{texClass: MML.TEXCLASS.OP}],
|
392
|
-
iiint: ['222D',{texClass: MML.TEXCLASS.OP}],
|
393
|
-
prod: ['220F',{texClass: MML.TEXCLASS.OP, movesupsub:TRUE}],
|
394
|
-
sum: ['2211',{texClass: MML.TEXCLASS.OP, movesupsub:TRUE}],
|
395
|
-
bigotimes: ['2A02',{texClass: MML.TEXCLASS.OP, movesupsub:TRUE}],
|
396
|
-
bigoplus: ['2A01',{texClass: MML.TEXCLASS.OP, movesupsub:TRUE}],
|
397
|
-
bigodot: ['2A00',{texClass: MML.TEXCLASS.OP, movesupsub:TRUE}],
|
398
|
-
oint: ['222E',{texClass: MML.TEXCLASS.OP}],
|
399
|
-
bigsqcup: ['2A06',{texClass: MML.TEXCLASS.OP, movesupsub:TRUE}],
|
400
|
-
smallint: ['222B',{largeop:FALSE}],
|
401
|
-
|
402
|
-
// binary operations
|
403
|
-
triangleleft: '25C3',
|
404
|
-
triangleright: '25B9',
|
405
|
-
bigtriangleup: '25B3',
|
406
|
-
bigtriangledown: '25BD',
|
407
|
-
wedge: '2227',
|
408
|
-
land: '2227',
|
409
|
-
vee: '2228',
|
410
|
-
lor: '2228',
|
411
|
-
cap: '2229',
|
412
|
-
cup: '222A',
|
413
|
-
ddagger: '2021',
|
414
|
-
dagger: '2020',
|
415
|
-
sqcap: '2293',
|
416
|
-
sqcup: '2294',
|
417
|
-
uplus: '228E',
|
418
|
-
amalg: '2A3F',
|
419
|
-
diamond: '22C4',
|
420
|
-
bullet: '2219',
|
421
|
-
wr: '2240',
|
422
|
-
div: '00F7',
|
423
|
-
odot: ['2299',{largeop: FALSE}],
|
424
|
-
oslash: ['2298',{largeop: FALSE}],
|
425
|
-
otimes: ['2297',{largeop: FALSE}],
|
426
|
-
ominus: ['2296',{largeop: FALSE}],
|
427
|
-
oplus: ['2295',{largeop: FALSE}],
|
428
|
-
mp: '2213',
|
429
|
-
pm: '00B1',
|
430
|
-
circ: '2218',
|
431
|
-
bigcirc: '25EF',
|
432
|
-
setminus: '2216',
|
433
|
-
cdot: '22C5',
|
434
|
-
ast: '2217',
|
435
|
-
times: '00D7',
|
436
|
-
star: '22C6',
|
437
|
-
|
438
|
-
// Relations
|
439
|
-
propto: '221D',
|
440
|
-
sqsubseteq: '2291',
|
441
|
-
sqsupseteq: '2292',
|
442
|
-
parallel: '2225',
|
443
|
-
mid: '2223',
|
444
|
-
dashv: '22A3',
|
445
|
-
vdash: '22A2',
|
446
|
-
leq: '2264',
|
447
|
-
le: '2264',
|
448
|
-
geq: '2265',
|
449
|
-
ge: '2265',
|
450
|
-
lt: '003C',
|
451
|
-
gt: '003E',
|
452
|
-
succ: '227B',
|
453
|
-
prec: '227A',
|
454
|
-
approx: '2248',
|
455
|
-
succeq: '2AB0', // or '227C',
|
456
|
-
preceq: '2AAF', // or '227D',
|
457
|
-
supset: '2283',
|
458
|
-
subset: '2282',
|
459
|
-
supseteq: '2287',
|
460
|
-
subseteq: '2286',
|
461
|
-
'in': '2208',
|
462
|
-
ni: '220B',
|
463
|
-
notin: '2209',
|
464
|
-
owns: '220B',
|
465
|
-
gg: '226B',
|
466
|
-
ll: '226A',
|
467
|
-
sim: '223C',
|
468
|
-
simeq: '2243',
|
469
|
-
perp: '22A5',
|
470
|
-
equiv: '2261',
|
471
|
-
asymp: '224D',
|
472
|
-
smile: '2323',
|
473
|
-
frown: '2322',
|
474
|
-
ne: '2260',
|
475
|
-
neq: '2260',
|
476
|
-
cong: '2245',
|
477
|
-
doteq: '2250',
|
478
|
-
bowtie: '22C8',
|
479
|
-
models: '22A8',
|
480
|
-
|
481
|
-
notChar: '0338',
|
482
|
-
|
483
|
-
|
484
|
-
// Arrows
|
485
|
-
Leftrightarrow: '21D4',
|
486
|
-
Leftarrow: '21D0',
|
487
|
-
Rightarrow: '21D2',
|
488
|
-
leftrightarrow: '2194',
|
489
|
-
leftarrow: '2190',
|
490
|
-
gets: '2190',
|
491
|
-
rightarrow: '2192',
|
492
|
-
to: '2192',
|
493
|
-
mapsto: '21A6',
|
494
|
-
leftharpoonup: '21BC',
|
495
|
-
leftharpoondown: '21BD',
|
496
|
-
rightharpoonup: '21C0',
|
497
|
-
rightharpoondown: '21C1',
|
498
|
-
nearrow: '2197',
|
499
|
-
searrow: '2198',
|
500
|
-
nwarrow: '2196',
|
501
|
-
swarrow: '2199',
|
502
|
-
rightleftharpoons: '21CC',
|
503
|
-
hookrightarrow: '21AA',
|
504
|
-
hookleftarrow: '21A9',
|
505
|
-
longleftarrow: '27F5',
|
506
|
-
Longleftarrow: '27F8',
|
507
|
-
longrightarrow: '27F6',
|
508
|
-
Longrightarrow: '27F9',
|
509
|
-
Longleftrightarrow: '27FA',
|
510
|
-
longleftrightarrow: '27F7',
|
511
|
-
longmapsto: '27FC',
|
512
|
-
|
513
|
-
|
514
|
-
// Misc.
|
515
|
-
ldots: '2026',
|
516
|
-
cdots: '22EF',
|
517
|
-
vdots: '22EE',
|
518
|
-
ddots: '22F1',
|
519
|
-
dots: '2026', // should be more complex than this
|
520
|
-
dotsc: '2026', // dots with commas
|
521
|
-
dotsb: '22EF', // dots with binary ops and relations
|
522
|
-
dotsm: '22EF', // dots with multiplication
|
523
|
-
dotsi: '22EF', // dots with integrals
|
524
|
-
dotso: '2026', // other dots
|
525
|
-
|
526
|
-
ldotp: ['002E', {texClass: MML.TEXCLASS.PUNCT}],
|
527
|
-
cdotp: ['22C5', {texClass: MML.TEXCLASS.PUNCT}],
|
528
|
-
colon: ['003A', {texClass: MML.TEXCLASS.PUNCT}]
|
529
|
-
},
|
530
|
-
|
531
|
-
mathchar7: {
|
532
|
-
Gamma: '0393',
|
533
|
-
Delta: '0394',
|
534
|
-
Theta: '0398',
|
535
|
-
Lambda: '039B',
|
536
|
-
Xi: '039E',
|
537
|
-
Pi: '03A0',
|
538
|
-
Sigma: '03A3',
|
539
|
-
Upsilon: '03A5',
|
540
|
-
Phi: '03A6',
|
541
|
-
Psi: '03A8',
|
542
|
-
Omega: '03A9',
|
543
|
-
|
544
|
-
'_': '005F',
|
545
|
-
'#': '0023',
|
546
|
-
'$': '0024',
|
547
|
-
'%': '0025',
|
548
|
-
'&': '0026',
|
549
|
-
And: '0026'
|
550
|
-
},
|
551
|
-
|
552
|
-
delimiter: {
|
553
|
-
'(': '(',
|
554
|
-
')': ')',
|
555
|
-
'[': '[',
|
556
|
-
']': ']',
|
557
|
-
'<': '27E8',
|
558
|
-
'>': '27E9',
|
559
|
-
'\\lt': '27E8',
|
560
|
-
'\\gt': '27E9',
|
561
|
-
'/': '/',
|
562
|
-
'|': ['|',{texClass:MML.TEXCLASS.ORD}],
|
563
|
-
'.': '',
|
564
|
-
'\\\\': '\\',
|
565
|
-
'\\lmoustache': '23B0', // non-standard
|
566
|
-
'\\rmoustache': '23B1', // non-standard
|
567
|
-
'\\lgroup': '27EE', // non-standard
|
568
|
-
'\\rgroup': '27EF', // non-standard
|
569
|
-
'\\arrowvert': '23D0',
|
570
|
-
'\\Arrowvert': '2016',
|
571
|
-
'\\bracevert': '23AA', // non-standard
|
572
|
-
'\\Vert': ['2225',{texClass:MML.TEXCLASS.ORD}],
|
573
|
-
'\\|': ['2225',{texClass:MML.TEXCLASS.ORD}],
|
574
|
-
'\\vert': ['|',{texClass:MML.TEXCLASS.ORD}],
|
575
|
-
'\\uparrow': '2191',
|
576
|
-
'\\downarrow': '2193',
|
577
|
-
'\\updownarrow': '2195',
|
578
|
-
'\\Uparrow': '21D1',
|
579
|
-
'\\Downarrow': '21D3',
|
580
|
-
'\\Updownarrow': '21D5',
|
581
|
-
'\\backslash': '\\',
|
582
|
-
'\\rangle': '27E9',
|
583
|
-
'\\langle': '27E8',
|
584
|
-
'\\rbrace': '}',
|
585
|
-
'\\lbrace': '{',
|
586
|
-
'\\}': '}',
|
587
|
-
'\\{': '{',
|
588
|
-
'\\rceil': '2309',
|
589
|
-
'\\lceil': '2308',
|
590
|
-
'\\rfloor': '230B',
|
591
|
-
'\\lfloor': '230A',
|
592
|
-
'\\lbrack': '[',
|
593
|
-
'\\rbrack': ']'
|
594
|
-
},
|
595
|
-
|
596
|
-
macros: {
|
597
|
-
displaystyle: ['SetStyle','D',TRUE,0],
|
598
|
-
textstyle: ['SetStyle','T',FALSE,0],
|
599
|
-
scriptstyle: ['SetStyle','S',FALSE,1],
|
600
|
-
scriptscriptstyle: ['SetStyle','SS',FALSE,2],
|
601
|
-
|
602
|
-
rm: ['SetFont',MML.VARIANT.NORMAL],
|
603
|
-
mit: ['SetFont',MML.VARIANT.ITALIC],
|
604
|
-
oldstyle: ['SetFont',MML.VARIANT.OLDSTYLE],
|
605
|
-
cal: ['SetFont',MML.VARIANT.CALIGRAPHIC],
|
606
|
-
it: ['SetFont',MML.VARIANT.ITALIC], // may need special handling
|
607
|
-
bf: ['SetFont',MML.VARIANT.BOLD],
|
608
|
-
bbFont: ['SetFont',MML.VARIANT.DOUBLESTRUCK],
|
609
|
-
scr: ['SetFont',MML.VARIANT.SCRIPT],
|
610
|
-
frak: ['SetFont',MML.VARIANT.FRAKTUR],
|
611
|
-
sf: ['SetFont',MML.VARIANT.SANSSERIF],
|
612
|
-
tt: ['SetFont',MML.VARIANT.MONOSPACE],
|
613
|
-
|
614
|
-
// font:
|
615
|
-
|
616
|
-
tiny: ['SetSize',0.5],
|
617
|
-
Tiny: ['SetSize',0.6], // non-standard
|
618
|
-
scriptsize: ['SetSize',0.7],
|
619
|
-
small: ['SetSize',0.85],
|
620
|
-
normalsize: ['SetSize',1.0],
|
621
|
-
large: ['SetSize',1.2],
|
622
|
-
Large: ['SetSize',1.44],
|
623
|
-
LARGE: ['SetSize',1.73],
|
624
|
-
huge: ['SetSize',2.07],
|
625
|
-
Huge: ['SetSize',2.49],
|
626
|
-
|
627
|
-
arcsin: ['NamedOp',0],
|
628
|
-
arccos: ['NamedOp',0],
|
629
|
-
arctan: ['NamedOp',0],
|
630
|
-
arg: ['NamedOp',0],
|
631
|
-
cos: ['NamedOp',0],
|
632
|
-
cosh: ['NamedOp',0],
|
633
|
-
cot: ['NamedOp',0],
|
634
|
-
coth: ['NamedOp',0],
|
635
|
-
csc: ['NamedOp',0],
|
636
|
-
deg: ['NamedOp',0],
|
637
|
-
det: 'NamedOp',
|
638
|
-
dim: ['NamedOp',0],
|
639
|
-
exp: ['NamedOp',0],
|
640
|
-
gcd: 'NamedOp',
|
641
|
-
hom: ['NamedOp',0],
|
642
|
-
inf: 'NamedOp',
|
643
|
-
ker: ['NamedOp',0],
|
644
|
-
lg: ['NamedOp',0],
|
645
|
-
lim: 'NamedOp',
|
646
|
-
liminf: ['NamedOp',null,'lim inf'],
|
647
|
-
limsup: ['NamedOp',null,'lim sup'],
|
648
|
-
ln: ['NamedOp',0],
|
649
|
-
log: ['NamedOp',0],
|
650
|
-
max: 'NamedOp',
|
651
|
-
min: 'NamedOp',
|
652
|
-
Pr: 'NamedOp',
|
653
|
-
sec: ['NamedOp',0],
|
654
|
-
sin: ['NamedOp',0],
|
655
|
-
sinh: ['NamedOp',0],
|
656
|
-
sup: 'NamedOp',
|
657
|
-
tan: ['NamedOp',0],
|
658
|
-
tanh: ['NamedOp',0],
|
659
|
-
|
660
|
-
limits: ['Limits',1],
|
661
|
-
nolimits: ['Limits',0],
|
662
|
-
|
663
|
-
overline: ['UnderOver','203E'],
|
664
|
-
underline: ['UnderOver','005F'],
|
665
|
-
overbrace: ['UnderOver','23DE',1],
|
666
|
-
underbrace: ['UnderOver','23DF',1],
|
667
|
-
overrightarrow: ['UnderOver','2192'],
|
668
|
-
underrightarrow: ['UnderOver','2192'],
|
669
|
-
overleftarrow: ['UnderOver','2190'],
|
670
|
-
underleftarrow: ['UnderOver','2190'],
|
671
|
-
overleftrightarrow: ['UnderOver','2194'],
|
672
|
-
underleftrightarrow: ['UnderOver','2194'],
|
673
|
-
|
674
|
-
overset: 'Overset',
|
675
|
-
underset: 'Underset',
|
676
|
-
stackrel: ['Macro','\\mathrel{\\mathop{#2}\\limits^{#1}}',2],
|
677
|
-
|
678
|
-
over: 'Over',
|
679
|
-
overwithdelims: 'Over',
|
680
|
-
atop: 'Over',
|
681
|
-
atopwithdelims: 'Over',
|
682
|
-
above: 'Over',
|
683
|
-
abovewithdelims: 'Over',
|
684
|
-
brace: ['Over','{','}'],
|
685
|
-
brack: ['Over','[',']'],
|
686
|
-
choose: ['Over','(',')'],
|
687
|
-
|
688
|
-
frac: 'Frac',
|
689
|
-
sqrt: 'Sqrt',
|
690
|
-
root: 'Root',
|
691
|
-
uproot: ['MoveRoot','upRoot'],
|
692
|
-
leftroot: ['MoveRoot','leftRoot'],
|
693
|
-
|
694
|
-
left: 'LeftRight',
|
695
|
-
right: 'LeftRight',
|
696
|
-
|
697
|
-
llap: 'Lap',
|
698
|
-
rlap: 'Lap',
|
699
|
-
raise: 'RaiseLower',
|
700
|
-
lower: 'RaiseLower',
|
701
|
-
moveleft: 'MoveLeftRight',
|
702
|
-
moveright: 'MoveLeftRight',
|
703
|
-
|
704
|
-
',': ['Spacer',MML.LENGTH.THINMATHSPACE],
|
705
|
-
':': ['Spacer',MML.LENGTH.THINMATHSPACE], // for LaTeX
|
706
|
-
'>': ['Spacer',MML.LENGTH.MEDIUMMATHSPACE],
|
707
|
-
';': ['Spacer',MML.LENGTH.THICKMATHSPACE],
|
708
|
-
'!': ['Spacer',MML.LENGTH.NEGATIVETHINMATHSPACE],
|
709
|
-
enspace: ['Spacer',".5em"],
|
710
|
-
quad: ['Spacer',"1em"],
|
711
|
-
qquad: ['Spacer',"2em"],
|
712
|
-
thinspace: ['Spacer',MML.LENGTH.THINMATHSPACE],
|
713
|
-
negthinspace: ['Spacer',MML.LENGTH.NEGATIVETHINMATHSPACE],
|
714
|
-
|
715
|
-
hskip: 'Hskip',
|
716
|
-
hspace: 'Hskip',
|
717
|
-
kern: 'Hskip',
|
718
|
-
mskip: 'Hskip',
|
719
|
-
mspace: 'Hskip',
|
720
|
-
mkern: 'Hskip',
|
721
|
-
Rule: ['Rule'],
|
722
|
-
Space: ['Rule','blank'],
|
723
|
-
|
724
|
-
big: ['MakeBig',MML.TEXCLASS.ORD,0.85],
|
725
|
-
Big: ['MakeBig',MML.TEXCLASS.ORD,1.15],
|
726
|
-
bigg: ['MakeBig',MML.TEXCLASS.ORD,1.45],
|
727
|
-
Bigg: ['MakeBig',MML.TEXCLASS.ORD,1.75],
|
728
|
-
bigl: ['MakeBig',MML.TEXCLASS.OPEN,0.85],
|
729
|
-
Bigl: ['MakeBig',MML.TEXCLASS.OPEN,1.15],
|
730
|
-
biggl: ['MakeBig',MML.TEXCLASS.OPEN,1.45],
|
731
|
-
Biggl: ['MakeBig',MML.TEXCLASS.OPEN,1.75],
|
732
|
-
bigr: ['MakeBig',MML.TEXCLASS.CLOSE,0.85],
|
733
|
-
Bigr: ['MakeBig',MML.TEXCLASS.CLOSE,1.15],
|
734
|
-
biggr: ['MakeBig',MML.TEXCLASS.CLOSE,1.45],
|
735
|
-
Biggr: ['MakeBig',MML.TEXCLASS.CLOSE,1.75],
|
736
|
-
bigm: ['MakeBig',MML.TEXCLASS.REL,0.85],
|
737
|
-
Bigm: ['MakeBig',MML.TEXCLASS.REL,1.15],
|
738
|
-
biggm: ['MakeBig',MML.TEXCLASS.REL,1.45],
|
739
|
-
Biggm: ['MakeBig',MML.TEXCLASS.REL,1.75],
|
740
|
-
|
741
|
-
mathord: ['TeXAtom',MML.TEXCLASS.ORD],
|
742
|
-
mathop: ['TeXAtom',MML.TEXCLASS.OP],
|
743
|
-
mathopen: ['TeXAtom',MML.TEXCLASS.OPEN],
|
744
|
-
mathclose: ['TeXAtom',MML.TEXCLASS.CLOSE],
|
745
|
-
mathbin: ['TeXAtom',MML.TEXCLASS.BIN],
|
746
|
-
mathrel: ['TeXAtom',MML.TEXCLASS.REL],
|
747
|
-
mathpunct: ['TeXAtom',MML.TEXCLASS.PUNCT],
|
748
|
-
mathinner: ['TeXAtom',MML.TEXCLASS.INNER],
|
749
|
-
|
750
|
-
vcenter: ['TeXAtom',MML.TEXCLASS.VCENTER],
|
751
|
-
|
752
|
-
mathchoice: ['Extension','mathchoice'],
|
753
|
-
buildrel: 'BuildRel',
|
754
|
-
|
755
|
-
hbox: ['HBox',0],
|
756
|
-
text: 'HBox',
|
757
|
-
mbox: ['HBox',0],
|
758
|
-
fbox: 'FBox',
|
759
|
-
|
760
|
-
strut: 'Strut',
|
761
|
-
mathstrut: ['Macro','\\vphantom{(}'],
|
762
|
-
phantom: 'Phantom',
|
763
|
-
vphantom: ['Phantom',1,0],
|
764
|
-
hphantom: ['Phantom',0,1],
|
765
|
-
smash: 'Smash',
|
766
|
-
|
767
|
-
acute: ['Accent', "02CA"], // or 0301
|
768
|
-
grave: ['Accent', "02CB"], // or 0300
|
769
|
-
ddot: ['Accent', "00A8"], // or 0308
|
770
|
-
tilde: ['Accent', "02DC"], // or 0303
|
771
|
-
bar: ['Accent', "02C9"], // or 0304
|
772
|
-
breve: ['Accent', "02D8"], // or 0306
|
773
|
-
check: ['Accent', "02C7"], // or 030C
|
774
|
-
hat: ['Accent', "02C6"], // or 0302
|
775
|
-
vec: ['Accent', "20D7"],
|
776
|
-
dot: ['Accent', "02D9"], // or 0307
|
777
|
-
widetilde: ['Accent', "02DC",1], // or 0303
|
778
|
-
widehat: ['Accent', "02C6",1], // or 0302
|
779
|
-
|
780
|
-
matrix: 'Matrix',
|
781
|
-
array: 'Matrix',
|
782
|
-
pmatrix: ['Matrix','(',')'],
|
783
|
-
cases: ['Matrix','{','',"left left",null,".1em"],
|
784
|
-
eqalign: ['Matrix',null,null,"right left",MML.LENGTH.THICKMATHSPACE,".5em",'D'],
|
785
|
-
displaylines: ['Matrix',null,null,"center",null,".5em",'D'],
|
786
|
-
cr: 'Cr',
|
787
|
-
'\\': 'Cr',
|
788
|
-
newline: 'Cr',
|
789
|
-
// noalign: 'HandleNoAlign',
|
790
|
-
eqalignno: ['Matrix',null,null,"right left right",MML.LENGTH.THICKMATHSPACE+" 3em",".5em",'D'],
|
791
|
-
leqalignno: ['Matrix',null,null,"right left right",MML.LENGTH.THICKMATHSPACE+" 3em",".5em",'D'],
|
792
|
-
|
793
|
-
// TeX substitution macros
|
794
|
-
bmod: ['Macro','\\mathbin{\\rm mod}'],
|
795
|
-
pmod: ['Macro','\\pod{{\\rm mod}\\kern 6mu #1}',1],
|
796
|
-
mod: ['Macro','\\mathchoice{\\kern18mu}{\\kern12mu}{\\kern12mu}{\\kern12mu}{\\rm mod}\\,\\,#1',1],
|
797
|
-
pod: ['Macro','\\mathchoice{\\kern18mu}{\\kern8mu}{\\kern8mu}{\\kern8mu}(#1)',1],
|
798
|
-
iff: ['Macro','\\;\\Longleftrightarrow\\;'],
|
799
|
-
skew: ['Macro','{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}',3],
|
800
|
-
mathcal: ['Macro','{\\cal #1}',1],
|
801
|
-
mathscr: ['Macro','{\\scr #1}',1],
|
802
|
-
mathrm: ['Macro','{\\rm #1}',1],
|
803
|
-
mathbf: ['Macro','{\\bf #1}',1],
|
804
|
-
mathbb: ['Macro','{\\bbFont #1}',1],
|
805
|
-
Bbb: ['Macro','{\\bbFont #1}',1],
|
806
|
-
mathit: ['Macro','{\\it #1}',1],
|
807
|
-
mathfrak: ['Macro','{\\frak #1}',1],
|
808
|
-
mathsf: ['Macro','{\\sf #1}',1],
|
809
|
-
mathtt: ['Macro','{\\tt #1}',1],
|
810
|
-
textrm: ['Macro','\\mathord{\\rm\\text{#1}}',1],
|
811
|
-
textit: ['Macro','\\mathord{\\it{\\text{#1}}}',1],
|
812
|
-
textbf: ['Macro','\\mathord{\\bf{\\text{#1}}}',1],
|
813
|
-
pmb: ['Macro','\\rlap{#1}\\kern1px{#1}',1],
|
814
|
-
TeX: ['Macro','T\\kern-.14em\\lower.5ex{E}\\kern-.115em X'],
|
815
|
-
LaTeX: ['Macro','L\\kern-.325em\\raise.21em{\\scriptstyle{A}}\\kern-.17em\\TeX'],
|
816
|
-
not: ['Macro','\\mathrel{\\rlap{\\kern.5em\\notChar}}'],
|
817
|
-
' ': ['Macro','\\text{ }'],
|
818
|
-
space: 'Tilde',
|
819
|
-
|
820
|
-
|
821
|
-
// LaTeX
|
822
|
-
begin: 'Begin',
|
823
|
-
end: 'End',
|
824
|
-
|
825
|
-
newcommand: ['Extension','newcommand'],
|
826
|
-
newenvironment: ['Extension','newcommand'],
|
827
|
-
def: ['Extension','newcommand'],
|
828
|
-
|
829
|
-
verb: ['Extension','verb'],
|
830
|
-
|
831
|
-
boldsymbol: ['Extension','boldsymbol'],
|
832
|
-
|
833
|
-
tag: ['Extension','AMSmath'],
|
834
|
-
notag: ['Extension','AMSmath'],
|
835
|
-
label: ['Macro','',1], // not implemented yet
|
836
|
-
nonumber: ['Macro',''], // not implemented yet
|
837
|
-
|
838
|
-
// Extensions to TeX
|
839
|
-
unicode: ['Extension','unicode'],
|
840
|
-
color: 'Color',
|
841
|
-
|
842
|
-
// href: ['Extension','HTML'],
|
843
|
-
// 'class': ['Extension','HTML'],
|
844
|
-
// style: ['Extension','HTML'],
|
845
|
-
// cssId: ['Extension','HTML'],
|
846
|
-
// bbox: ['Extension','bbox'],
|
847
|
-
|
848
|
-
require: 'Require'
|
849
|
-
|
850
|
-
},
|
851
|
-
|
852
|
-
environment: {
|
853
|
-
array: ['Array'],
|
854
|
-
matrix: ['Array',null,null,null,'c'],
|
855
|
-
pmatrix: ['Array',null,'(',')','c'],
|
856
|
-
bmatrix: ['Array',null,'[',']','c'],
|
857
|
-
Bmatrix: ['Array',null,'\\{','\\}','c'],
|
858
|
-
vmatrix: ['Array',null,'\\vert','\\vert','c'],
|
859
|
-
Vmatrix: ['Array',null,'\\Vert','\\Vert','c'],
|
860
|
-
cases: ['Array',null,'\\{','.','ll',null,".1em"],
|
861
|
-
eqnarray: ['Array',null,null,null,'rcl',MML.LENGTH.THICKMATHSPACE,".5em",'D'],
|
862
|
-
'eqnarray*': ['Array',null,null,null,'rcl',MML.LENGTH.THICKMATHSPACE,".5em",'D'],
|
863
|
-
|
864
|
-
equation: [null,'Equation'],
|
865
|
-
'equation*': [null,'Equation'],
|
866
|
-
|
867
|
-
align: ['ExtensionEnv',null,'AMSmath'],
|
868
|
-
'align*': ['ExtensionEnv',null,'AMSmath'],
|
869
|
-
aligned: ['ExtensionEnv',null,'AMSmath'],
|
870
|
-
multline: ['ExtensionEnv',null,'AMSmath'],
|
871
|
-
'multline*': ['ExtensionEnv',null,'AMSmath'],
|
872
|
-
split: ['ExtensionEnv',null,'AMSmath'],
|
873
|
-
gather: ['ExtensionEnv',null,'AMSmath'],
|
874
|
-
'gather*': ['ExtensionEnv',null,'AMSmath'],
|
875
|
-
gathered: ['ExtensionEnv',null,'AMSmath'],
|
876
|
-
alignat: ['ExtensionEnv',null,'AMSmath'],
|
877
|
-
'alignat*': ['ExtensionEnv',null,'AMSmath'],
|
878
|
-
alignedat: ['ExtensionEnv',null,'AMSmath']
|
879
|
-
},
|
880
|
-
|
881
|
-
p_height: 1.2 / .85 // cmex10 height plus depth over .85
|
882
|
-
|
883
|
-
});
|
884
|
-
};
|
885
|
-
|
886
|
-
/************************************************************************/
|
887
|
-
/*
|
888
|
-
* The TeX Parser
|
889
|
-
*/
|
890
|
-
|
891
|
-
TEX.Parse = MathJax.Object.Subclass({
|
892
|
-
Init: function (string,env) {
|
893
|
-
this.string = string; this.i = 0;
|
894
|
-
var ENV; if (env) {ENV = {}; for (var id in env) {if (env.hasOwnProperty(id)) {ENV[id] = env[id]}}}
|
895
|
-
this.stack = TEX.Stack(ENV);
|
896
|
-
this.Parse();
|
897
|
-
this.Push(STACKITEM.stop());
|
898
|
-
},
|
899
|
-
Parse: function () {
|
900
|
-
var c;
|
901
|
-
while (this.i < this.string.length) {
|
902
|
-
c = this.string.charAt(this.i++);
|
903
|
-
if (TEXDEF.special[c]) {this[TEXDEF.special[c]](c)}
|
904
|
-
else if (TEXDEF.letter.test(c)) {this.Variable(c)}
|
905
|
-
else if (TEXDEF.digit.test(c)) {this.Number(c)}
|
906
|
-
else {this.Other(c)}
|
907
|
-
}
|
908
|
-
},
|
909
|
-
Push: function () {this.stack.Push.apply(this.stack,arguments)},
|
910
|
-
mml: function () {
|
911
|
-
if (this.stack.Top().type !== "mml") {return null}
|
912
|
-
return this.stack.Top().data[0];
|
913
|
-
},
|
914
|
-
mmlToken: function (token) {return token}, // used by boldsymbol extension
|
915
|
-
|
916
|
-
/************************************************************************/
|
917
|
-
/*
|
918
|
-
* Handle various token classes
|
919
|
-
*/
|
920
|
-
|
921
|
-
/*
|
922
|
-
* Lookup a control-sequence and process it
|
923
|
-
*/
|
924
|
-
ControlSequence: function (c) {
|
925
|
-
var name = this.GetCS();
|
926
|
-
if (TEXDEF.macros[name]) { // javascript macro
|
927
|
-
var macro = TEXDEF.macros[name];
|
928
|
-
if (!(macro instanceof Array)) {macro = [macro]}
|
929
|
-
var fn = macro[0]; if (!(fn instanceof Function)) {fn = this[fn]}
|
930
|
-
fn.apply(this,["\\"+name].concat(macro.slice(1)));
|
931
|
-
} else if (TEXDEF.mathchar0mi[name]) { // normal mathchar (mi)
|
932
|
-
var mchar = TEXDEF.mathchar0mi[name]; var def = {mathvariant: MML.VARIANT.ITALIC};
|
933
|
-
if (mchar instanceof Array) {def = mchar[1]; mchar = mchar[0]}
|
934
|
-
this.Push(this.mmlToken(MML.mi(MML.entity("#x"+mchar)).With(def)));
|
935
|
-
} else if (TEXDEF.mathchar0mo[name]) { // normal mathchar (mo)
|
936
|
-
var mchar = TEXDEF.mathchar0mo[name]; var def = {stretchy: FALSE};
|
937
|
-
if (mchar instanceof Array) {def = mchar[1]; def.stretchy = FALSE; mchar = mchar[0]}
|
938
|
-
this.Push(this.mmlToken(MML.mo(MML.entity("#x"+mchar)).With(def)));
|
939
|
-
} else if (TEXDEF.mathchar7[name]) { // mathchar in current family
|
940
|
-
var mchar = TEXDEF.mathchar7[name]; var def = {mathvariant: MML.VARIANT.NORMAL};
|
941
|
-
if (mchar instanceof Array) {def = mchar[1]; mchar = mchar[0]}
|
942
|
-
if (this.stack.env.font) {def.mathvariant = this.stack.env.font}
|
943
|
-
this.Push(this.mmlToken(MML.mi(MML.entity("#x"+mchar)).With(def)));
|
944
|
-
} else if (TEXDEF.delimiter["\\"+name] != null) { // delimiter
|
945
|
-
var delim = TEXDEF.delimiter["\\"+name], def = {};
|
946
|
-
if (delim instanceof Array) {def = delim[1]; delim = delim[0]}
|
947
|
-
if (delim.length === 4) {delim = MML.entity('#x'+delim)} else {delim = MML.chars(delim)}
|
948
|
-
this.Push(this.mmlToken(MML.mo(delim).With({fence: FALSE, stretchy: FALSE}).With(def)));
|
949
|
-
} else { // error
|
950
|
-
TEX.Error("Undefined control sequence \\"+name);
|
951
|
-
}
|
952
|
-
},
|
953
|
-
|
954
|
-
/*
|
955
|
-
* Handle a variable (a single letter)
|
956
|
-
*/
|
957
|
-
Variable: function (c) {
|
958
|
-
var def = {}; if (this.stack.env.font) {def.mathvariant = this.stack.env.font}
|
959
|
-
this.Push(this.mmlToken(MML.mi(MML.chars(c)).With(def)));
|
960
|
-
},
|
961
|
-
|
962
|
-
/*
|
963
|
-
* Determine the extent of a number (pattern may need work)
|
964
|
-
*/
|
965
|
-
Number: function (c) {
|
966
|
-
var mml, n = this.string.slice(this.i-1).match(TEXDEF.number);
|
967
|
-
if (n) {mml = MML.mn(n[0].replace(/[{}]/g,"")); this.i += n[0].length - 1}
|
968
|
-
else {mml = MML.mo(MML.chars(c))}
|
969
|
-
if (this.stack.env.font) {mml.mathvariant = this.stack.env.font}
|
970
|
-
this.Push(this.mmlToken(mml));
|
971
|
-
},
|
972
|
-
|
973
|
-
/*
|
974
|
-
* Handle { and }
|
975
|
-
*/
|
976
|
-
Open: function (c) {this.Push(STACKITEM.open())},
|
977
|
-
Close: function (c) {this.Push(STACKITEM.close())},
|
978
|
-
|
979
|
-
/*
|
980
|
-
* Handle tilde and spaces
|
981
|
-
*/
|
982
|
-
Tilde: function (c) {this.Push(MML.mtext(MML.chars(" ")))},
|
983
|
-
Space: function (c) {},
|
984
|
-
|
985
|
-
/*
|
986
|
-
* Handle ^, _, and '
|
987
|
-
*/
|
988
|
-
Superscript: function (c) {
|
989
|
-
var position, base = this.stack.Prev(); if (!base) {base = MML.mi("")}
|
990
|
-
if (base.isEmbellishedWrapper) {base = base.data[0].data[0]}
|
991
|
-
if (base.type === "msubsup") {
|
992
|
-
if (base.data[base.sup]) {
|
993
|
-
if (!base.data[base.sup].isPrime) {TEX.Error("Double exponent: use braces to clarify")}
|
994
|
-
base = MML.msubsup(base,null,null);
|
995
|
-
}
|
996
|
-
position = base.sup;
|
997
|
-
} else if (base.movesupsub) {
|
998
|
-
if (base.type !== "munderover" || base.data[base.over])
|
999
|
-
{base = MML.munderover(base,null,null).With({movesupsub:TRUE})}
|
1000
|
-
position = base.over;
|
1001
|
-
} else {
|
1002
|
-
base = MML.msubsup(base,null,null);
|
1003
|
-
position = base.sup;
|
1004
|
-
}
|
1005
|
-
this.Push(STACKITEM.subsup(base).With({position: position}));
|
1006
|
-
},
|
1007
|
-
Subscript: function (c) {
|
1008
|
-
var position, base = this.stack.Prev(); if (!base) {base = MML.mi("")}
|
1009
|
-
if (base.isEmbellishedWrapper) {base = base.data[0].data[0]}
|
1010
|
-
if (base.type === "msubsup") {
|
1011
|
-
if (base.data[base.sub]) {TEX.Error("Double subscripts: use braces to clarify")}
|
1012
|
-
position = base.sub;
|
1013
|
-
} else if (base.movesupsub) {
|
1014
|
-
if (base.type !== "munderover" || base.data[base.under])
|
1015
|
-
{base = MML.munderover(base,null,null).With({movesupsub:TRUE})}
|
1016
|
-
position = base.under;
|
1017
|
-
} else {
|
1018
|
-
base = MML.msubsup(base,null,null);
|
1019
|
-
position = base.sub;
|
1020
|
-
}
|
1021
|
-
this.Push(STACKITEM.subsup(base).With({position: position}));
|
1022
|
-
},
|
1023
|
-
PRIME: String.fromCharCode(0x2032), SMARTQUOTE: String.fromCharCode(0x2019),
|
1024
|
-
Prime: function (c) {
|
1025
|
-
var base = this.stack.Prev(); if (!base) {base = MML.mi()}
|
1026
|
-
if (base.type === "msubsup" && base.data[base.sup])
|
1027
|
-
{TEX.Error("Prime causes double exponent: use braces to clarify")}
|
1028
|
-
var sup = ""; this.i--;
|
1029
|
-
do {sup += this.PRIME; this.i++, c = this.GetNext()}
|
1030
|
-
while (c === "'" || c === this.SMARTQUOTE);
|
1031
|
-
sup = this.mmlToken(MML.mo(MML.chars(sup)).With({isPrime: TRUE, variantForm: TEX.isSTIX}));
|
1032
|
-
this.Push(MML.msubsup(base,null,sup));
|
1033
|
-
},
|
1034
|
-
|
1035
|
-
/*
|
1036
|
-
* Handle comments
|
1037
|
-
*/
|
1038
|
-
Comment: function (c) {
|
1039
|
-
while (this.i < this.string.length && this.string.charAt(this.i) != "\n") {this.i++}
|
1040
|
-
},
|
1041
|
-
|
1042
|
-
/*
|
1043
|
-
* Handle hash marks outside of definitions
|
1044
|
-
*/
|
1045
|
-
Hash: function (c) {
|
1046
|
-
TEX.Error("You can't use 'macro parameter character #' in math mode");
|
1047
|
-
},
|
1048
|
-
|
1049
|
-
/*
|
1050
|
-
* Handle other characters (as <mo> elements)
|
1051
|
-
*/
|
1052
|
-
Other: function (c) {
|
1053
|
-
var def = {stretchy: false}, mo;
|
1054
|
-
if (this.stack.env.font) {def.mathvariant = this.stack.env.font}
|
1055
|
-
if (TEXDEF.remap[c]) {
|
1056
|
-
c = TEXDEF.remap[c];
|
1057
|
-
if (c instanceof Array) {def = c[1]; c = c[0]}
|
1058
|
-
mo = MML.mo(MML.entity('#x'+c));
|
1059
|
-
} else {
|
1060
|
-
mo = MML.mo(c);
|
1061
|
-
}
|
1062
|
-
if (mo.autoDefault("texClass",true) == "") {mo = MML.TeXAtom(mo)}
|
1063
|
-
this.Push(this.mmlToken(mo.With(def)));
|
1064
|
-
},
|
1065
|
-
|
1066
|
-
/************************************************************************/
|
1067
|
-
/*
|
1068
|
-
* Macros
|
1069
|
-
*/
|
1070
|
-
|
1071
|
-
SetFont: function (name,font) {this.stack.env.font = font},
|
1072
|
-
SetStyle: function (name,texStyle,style,level) {
|
1073
|
-
this.stack.env.style = texStyle; this.stack.env.level = level;
|
1074
|
-
this.Push(STACKITEM.style().With({styles: {displaystyle: style, scriptlevel: level}}));
|
1075
|
-
},
|
1076
|
-
SetSize: function (name,size) {
|
1077
|
-
this.stack.env.size = size;
|
1078
|
-
this.Push(STACKITEM.style().With({styles: {mathsize: size+"em"}})); // convert to absolute?
|
1079
|
-
},
|
1080
|
-
|
1081
|
-
Color: function (name) {
|
1082
|
-
var color = this.GetArgument(name);
|
1083
|
-
var old = this.stack.env.color; this.stack.env.color = color;
|
1084
|
-
var math = this.ParseArg(name);
|
1085
|
-
if (old) {this.stack.env.color} else {delete this.stack.env.color}
|
1086
|
-
this.Push(MML.mstyle(math).With({mathcolor: color}));
|
1087
|
-
},
|
1088
|
-
|
1089
|
-
Spacer: function (name,space) {
|
1090
|
-
this.Push(MML.mspace().With({width: space, mathsize: MML.SIZE.NORMAL, scriptlevel:1}));
|
1091
|
-
},
|
1092
|
-
|
1093
|
-
LeftRight: function (name) {
|
1094
|
-
this.Push(STACKITEM[name.substr(1)]().With({delim: this.GetDelimiter(name)}));
|
1095
|
-
},
|
1096
|
-
|
1097
|
-
NamedOp: function (name,limits,id) {
|
1098
|
-
var underover = (limits != null && limits === 0 ? FALSE : TRUE);
|
1099
|
-
if (!id) {id = name.substr(1)}; limits = ((limits || limits == null) ? TRUE : FALSE);
|
1100
|
-
id = id.replace(/ /,String.fromCharCode(0x2006));
|
1101
|
-
var mml = MML.mo(id).With({
|
1102
|
-
movablelimits: limits,
|
1103
|
-
movesupsub: underover,
|
1104
|
-
form: MML.FORM.PREFIX,
|
1105
|
-
texClass: MML.TEXCLASS.OP
|
1106
|
-
});
|
1107
|
-
mml.useMMLspacing &= ~mml.SPACE_ATTR.form; // don't count this explicit form setting
|
1108
|
-
this.Push(this.mmlToken(mml));
|
1109
|
-
},
|
1110
|
-
Limits: function (name,limits) {
|
1111
|
-
var op = this.stack.Prev("nopop");
|
1112
|
-
if (op.texClass !== MML.TEXCLASS.OP) {TEX.Error(name+" is allowed only on operators")}
|
1113
|
-
op.movesupsub = (limits ? TRUE : FALSE);
|
1114
|
-
op.movablelimits = FALSE;
|
1115
|
-
},
|
1116
|
-
|
1117
|
-
Over: function (name,open,close) {
|
1118
|
-
var mml = STACKITEM.over().With({name: name});
|
1119
|
-
if (open || close) {
|
1120
|
-
mml.open = open; mml.close = close;
|
1121
|
-
} else if (name.match(/withdelims$/)) {
|
1122
|
-
mml.open = this.GetDelimiter(name);
|
1123
|
-
mml.close = this.GetDelimiter(name);
|
1124
|
-
}
|
1125
|
-
if (name.match(/^\\above/)) {mml.thickness = this.GetDimen(name)}
|
1126
|
-
else if (name.match(/^\\atop/) || open || close) {mml.thickness = 0}
|
1127
|
-
this.Push(mml);
|
1128
|
-
},
|
1129
|
-
|
1130
|
-
Frac: function (name) {
|
1131
|
-
var num = this.ParseArg(name);
|
1132
|
-
var den = this.ParseArg(name);
|
1133
|
-
this.Push(MML.mfrac(num,den));
|
1134
|
-
},
|
1135
|
-
|
1136
|
-
Sqrt: function (name) {
|
1137
|
-
var n = this.GetBrackets(name), mml = this.ParseArg(name);
|
1138
|
-
if (n == "") {mml = MML.msqrt.apply(MML,mml.array())}
|
1139
|
-
else {mml = MML.mroot(mml,this.parseRoot(n))}
|
1140
|
-
this.Push(mml);
|
1141
|
-
},
|
1142
|
-
Root: function (name) {
|
1143
|
-
var n = this.GetUpTo(name,"\\of");
|
1144
|
-
var arg = this.ParseArg(name);
|
1145
|
-
this.Push(MML.mroot(arg,this.parseRoot(n)));
|
1146
|
-
},
|
1147
|
-
parseRoot: function (n) {
|
1148
|
-
var env = this.stack.env, inRoot = env.inRoot; env.inRoot = true;
|
1149
|
-
var parser = TEX.Parse(n,env); n = parser.mml(); var global = parser.stack.global;
|
1150
|
-
if (global.leftRoot || global.upRoot) {
|
1151
|
-
n = MML.mpadded(n);
|
1152
|
-
if (global.leftRoot) {n.width = global.leftRoot}
|
1153
|
-
if (global.upRoot) {n.voffset = global.upRoot; n.height = global.upRoot}
|
1154
|
-
}
|
1155
|
-
env.inRoot = inRoot;
|
1156
|
-
return n;
|
1157
|
-
},
|
1158
|
-
MoveRoot: function (name,id) {
|
1159
|
-
if (!this.stack.env.inRoot) TEX.Error(name+" can appear only within a root");
|
1160
|
-
if (this.stack.global[id]) TEX.Error("Multiple use of "+name);
|
1161
|
-
var n = this.GetArgument(name);
|
1162
|
-
if (!n.match(/-?[0-9]+/)) TEX.Error("The argument to "+name+" must be an integer");
|
1163
|
-
n = (n/15)+"em";
|
1164
|
-
if (n.substr(0,1) !== "-") {n = "+"+n}
|
1165
|
-
this.stack.global[id] = n;
|
1166
|
-
},
|
1167
|
-
|
1168
|
-
Accent: function (name,accent,stretchy) {
|
1169
|
-
var c = this.ParseArg(name);
|
1170
|
-
var mml = this.mmlToken(MML.mo(MML.entity("#x"+accent)).With({accent: TRUE}));
|
1171
|
-
mml.stretchy = (stretchy ? TRUE : FALSE);
|
1172
|
-
this.Push(MML.munderover(c,null,mml).With({accent: TRUE}));
|
1173
|
-
},
|
1174
|
-
|
1175
|
-
UnderOver: function (name,c,stack) {
|
1176
|
-
var pos = {o: "over", u: "under"}[name.charAt(1)];
|
1177
|
-
var base = this.ParseArg(name);
|
1178
|
-
var mml = MML.munderover(base,null,null);
|
1179
|
-
if (stack) {mml.movesupsub = TRUE}
|
1180
|
-
mml.data[mml[pos]] =
|
1181
|
-
this.mmlToken(MML.mo(MML.entity("#x"+c)).With({stretchy: TRUE, accent: (pos == "under")}));
|
1182
|
-
this.Push(mml);
|
1183
|
-
},
|
1184
|
-
|
1185
|
-
Overset: function (name) {
|
1186
|
-
var top = this.ParseArg(name), base = this.ParseArg(name);
|
1187
|
-
this.Push(MML.munderover(base,null,top));
|
1188
|
-
},
|
1189
|
-
Underset: function (name) {
|
1190
|
-
var bot = this.ParseArg(name), base = this.ParseArg(name);
|
1191
|
-
this.Push(MML.munderover(base,bot,null));
|
1192
|
-
},
|
1193
|
-
|
1194
|
-
TeXAtom: function (name,mclass) {
|
1195
|
-
var def = {texClass: mclass};
|
1196
|
-
if (mclass == MML.TEXCLASS.OP) {def.movesupsub = def.movablelimits = TRUE}
|
1197
|
-
this.Push(MML.TeXAtom(this.ParseArg(name)).With(def));
|
1198
|
-
},
|
1199
|
-
|
1200
|
-
Strut: function (name) {
|
1201
|
-
this.Push(MML.mpadded().With({height: "8.6pt", depth: "3pt", width: 0}));
|
1202
|
-
},
|
1203
|
-
|
1204
|
-
Phantom: function (name,v,h) {
|
1205
|
-
var box = MML.mphantom(this.ParseArg(name));
|
1206
|
-
if (v || h) {
|
1207
|
-
box = MML.mpadded(box);
|
1208
|
-
if (h) {box.height = box.depth = 0}
|
1209
|
-
if (v) {box.width = 0}
|
1210
|
-
}
|
1211
|
-
this.Push(box);
|
1212
|
-
},
|
1213
|
-
|
1214
|
-
Smash: function (name) {
|
1215
|
-
var bt = this.trimSpaces(this.GetBrackets(name));
|
1216
|
-
var smash = MML.mpadded(this.ParseArg(name));
|
1217
|
-
switch (bt) {
|
1218
|
-
case "b": smash.depth = 0; break;
|
1219
|
-
case "t": smash.height = 0; break;
|
1220
|
-
default: smash.height = smash.depth = 0;
|
1221
|
-
}
|
1222
|
-
this.Push(smash);
|
1223
|
-
},
|
1224
|
-
|
1225
|
-
Lap: function (name) {
|
1226
|
-
var mml = MML.mpadded(this.ParseArg(name)).With({width: 0});
|
1227
|
-
if (name === "\\llap") {mml.lspace = "-1 width"}
|
1228
|
-
this.Push(mml);
|
1229
|
-
},
|
1230
|
-
|
1231
|
-
RaiseLower: function (name) {
|
1232
|
-
var h = this.GetDimen(name);
|
1233
|
-
var item = STACKITEM.position().With({name: name, move: 'vertical'});
|
1234
|
-
if (h.charAt(0) === '-') {h = h.slice(1); name = {raise: "\\lower", lower: "\\raise"}[name.substr(1)]}
|
1235
|
-
if (name === "\\lower") {item.dh = '-'+h; item.dd = h} else {item.dh = h; item.dd = '-'+h}
|
1236
|
-
this.Push(item);
|
1237
|
-
},
|
1238
|
-
|
1239
|
-
MoveLeftRight: function (name) {
|
1240
|
-
var h = this.GetDimen(name);
|
1241
|
-
var nh = (h.charAt(0) === '-' ? h.slice(1) : '-'+h);
|
1242
|
-
if (name === "\\moveleft") {var tmp = h; h = nh; nh = tmp}
|
1243
|
-
this.Push(STACKITEM.position().With({
|
1244
|
-
name: name, move: 'horizontal',
|
1245
|
-
left: MML.mspace().With({width: h, mathsize: MML.SIZE.NORMAL, scriptlevel:1}),
|
1246
|
-
right: MML.mspace().With({width: nh, mathsize: MML.SIZE.NORMAL, scriptlevel:1})
|
1247
|
-
}));
|
1248
|
-
},
|
1249
|
-
|
1250
|
-
Hskip: function (name) {
|
1251
|
-
this.Push(MML.mspace().With({
|
1252
|
-
width: this.GetDimen(name), mathsize: MML.SIZE.NORMAL, scriptlevel:0
|
1253
|
-
}));
|
1254
|
-
},
|
1255
|
-
|
1256
|
-
Rule: function (name,style) {
|
1257
|
-
var w = this.GetDimen(name),
|
1258
|
-
h = this.GetDimen(name),
|
1259
|
-
d = this.GetDimen(name);
|
1260
|
-
var mml, type = "mspace", def = {width:w, height:h, depth:d};
|
1261
|
-
if (style !== 'blank') {
|
1262
|
-
def.mathbackground = (this.stack.env.color || "black");
|
1263
|
-
type = "mpadded";
|
1264
|
-
}
|
1265
|
-
mml = (MML[type])().With(def);
|
1266
|
-
this.Push(mml);
|
1267
|
-
},
|
1268
|
-
|
1269
|
-
MakeBig: function (name,mclass,size) {
|
1270
|
-
size *= TEXDEF.p_height;
|
1271
|
-
size = String(size).replace(/(\.\d\d\d).+/,'$1')+"em";
|
1272
|
-
var delim = this.GetDelimiter(name);
|
1273
|
-
this.Push(MML.TeXAtom(MML.mo(delim).With({
|
1274
|
-
minsize: size, maxsize: size, scriptlevel: 0,
|
1275
|
-
fence: TRUE, stretchy: TRUE, symmetric: TRUE
|
1276
|
-
})).With({texClass: mclass}));
|
1277
|
-
},
|
1278
|
-
|
1279
|
-
BuildRel: function (name) {
|
1280
|
-
var top = this.ParseUpTo(name,"\\over");
|
1281
|
-
var bot = this.ParseArg(name);
|
1282
|
-
this.Push(MML.TeXAtom(MML.munderover(bot,null,top)).With({mclass: MML.TEXCLASS.REL}));
|
1283
|
-
},
|
1284
|
-
|
1285
|
-
HBox: function (name,style) {
|
1286
|
-
this.Push.apply(this,this.InternalMath(this.GetArgument(name),style));
|
1287
|
-
},
|
1288
|
-
|
1289
|
-
FBox: function (name) {
|
1290
|
-
this.Push(MML.menclose.apply(MML,this.InternalMath(this.GetArgument(name))));
|
1291
|
-
},
|
1292
|
-
|
1293
|
-
Require: function (name) {
|
1294
|
-
var file = this.GetArgument(name); // @@@ FIXME: check for OK URL
|
1295
|
-
this.Extension(null,file);
|
1296
|
-
},
|
1297
|
-
|
1298
|
-
Extension: function (name,file,array) {
|
1299
|
-
if (name && !typeof(name) === "string") {name = name.name}
|
1300
|
-
file = TEX.extensionDir+"/"+file;
|
1301
|
-
if (!file.match(/\.js$/)) {file += ".js"}
|
1302
|
-
if (!MathJax.Ajax.loaded[MathJax.Ajax.fileURL(file)]) {
|
1303
|
-
if (name != null) {delete TEXDEF[array || 'macros'][name.replace(/^\\/,"")]}
|
1304
|
-
MathJax.Hub.RestartAfter(MathJax.Ajax.Require(file));
|
1305
|
-
}
|
1306
|
-
},
|
1307
|
-
|
1308
|
-
Macro: function (name,macro,argcount) {
|
1309
|
-
if (argcount) {
|
1310
|
-
var args = [];
|
1311
|
-
for (var i = 0; i < argcount; i++) {args.push(this.GetArgument(name))}
|
1312
|
-
macro = this.SubstituteArgs(args,macro);
|
1313
|
-
}
|
1314
|
-
this.string = this.AddArgs(macro,this.string.slice(this.i));
|
1315
|
-
this.i = 0;
|
1316
|
-
},
|
1317
|
-
|
1318
|
-
Matrix: function (name,open,close,align,spacing,vspacing,style) {
|
1319
|
-
var c = this.GetNext(); if (c === "") {TEX.Error("Missing argument for "+name)}
|
1320
|
-
if (c === "{") {this.i++} else {this.string = c+"}"+this.string.slice(this.i+1); this.i = 0}
|
1321
|
-
var array = STACKITEM.array().With({
|
1322
|
-
requireClose: TRUE,
|
1323
|
-
arraydef: {
|
1324
|
-
rowspacing: (vspacing||"3pt"),
|
1325
|
-
columnspacing: (spacing||"1em")
|
1326
|
-
}
|
1327
|
-
});
|
1328
|
-
if (open || close) {array.open = open; array.close = close}
|
1329
|
-
if (style === "D") {array.arraydef.displaystyle = TRUE}
|
1330
|
-
if (align != null) {array.arraydef.columnalign = align}
|
1331
|
-
this.Push(array);
|
1332
|
-
},
|
1333
|
-
|
1334
|
-
Entry: function (name) {
|
1335
|
-
this.Push(STACKITEM.cell().With({isEntry: TRUE, name: name}));
|
1336
|
-
},
|
1337
|
-
|
1338
|
-
Cr: function (name) {
|
1339
|
-
this.Push(STACKITEM.cell().With({isCR: TRUE, name: name}));
|
1340
|
-
},
|
1341
|
-
|
1342
|
-
/************************************************************************/
|
1343
|
-
/*
|
1344
|
-
* LaTeX environments
|
1345
|
-
*/
|
1346
|
-
|
1347
|
-
Begin: function (name) {
|
1348
|
-
var env = this.GetArgument(name);
|
1349
|
-
if (env.match(/[^a-z*]/i)) {TEX.Error('Invalid environment name "'+env+'"')}
|
1350
|
-
if (!TEXDEF.environment[env]) {TEX.Error('Unknown environment "'+env+'"')}
|
1351
|
-
var cmd = TEXDEF.environment[env]; if (!(cmd instanceof Array)) {cmd = [cmd]}
|
1352
|
-
var mml = STACKITEM.begin().With({name: env, end: cmd[1], parse:this});
|
1353
|
-
if (cmd[0] && this[cmd[0]]) {mml = this[cmd[0]].apply(this,[mml].concat(cmd.slice(2)))}
|
1354
|
-
this.Push(mml);
|
1355
|
-
},
|
1356
|
-
End: function (name) {
|
1357
|
-
this.Push(STACKITEM.end().With({name: this.GetArgument(name)}));
|
1358
|
-
},
|
1359
|
-
|
1360
|
-
Equation: function (begin,row) {return row},
|
1361
|
-
|
1362
|
-
ExtensionEnv: function (begin,file) {this.Extension(begin.name,file,"environment")},
|
1363
|
-
|
1364
|
-
Array: function (begin,open,close,align,spacing,vspacing,style,raggedHeight) {
|
1365
|
-
if (!align) {align = this.GetArgument("\\begin{"+begin.name+"}")}
|
1366
|
-
var lines = align.replace(/[^clr|]/g,'').replace(/[^|]\|/g,'|').split('').join(' ');
|
1367
|
-
align = align.replace(/[^clr]/g,'').split('').join(' ');
|
1368
|
-
align = align.replace(/l/g,'left').replace(/r/g,'right').replace(/c/g,'center');
|
1369
|
-
var array = STACKITEM.array().With({
|
1370
|
-
arraydef: {
|
1371
|
-
columnalign: align,
|
1372
|
-
columnspacing: (spacing||"1em"),
|
1373
|
-
rowspacing: (vspacing||"3pt")
|
1374
|
-
}
|
1375
|
-
});
|
1376
|
-
// FIXME: do something about initial (and terminal?) vertical line
|
1377
|
-
if (lines.match(/\|/))
|
1378
|
-
{array.arraydef.columnlines = lines.replace(/[^| ]/g,'none').replace(/\|/g,'solid')}
|
1379
|
-
if (open) {array.open = this.convertDelimiter(open)}
|
1380
|
-
if (close) {array.close = this.convertDelimiter(close)}
|
1381
|
-
if (style === "D") {array.arraydef.displaystyle = TRUE}
|
1382
|
-
if (style === "S") {array.arraydef.scriptlevel = 1} // FIXME: should use mstyle?
|
1383
|
-
if (raggedHeight) {array.arraydef.useHeight = FALSE}
|
1384
|
-
this.Push(begin);
|
1385
|
-
return array;
|
1386
|
-
},
|
1387
|
-
|
1388
|
-
/************************************************************************/
|
1389
|
-
/*
|
1390
|
-
* String handling routines
|
1391
|
-
*/
|
1392
|
-
|
1393
|
-
/*
|
1394
|
-
* Convert delimiter to character
|
1395
|
-
*/
|
1396
|
-
convertDelimiter: function (c) {
|
1397
|
-
if (c) {c = TEXDEF.delimiter[c]}
|
1398
|
-
if (c == null) {return null}
|
1399
|
-
if (c instanceof Array) {c = c[0]}
|
1400
|
-
if (c.length === 4) {c = String.fromCharCode(parseInt(c,16))}
|
1401
|
-
return c;
|
1402
|
-
},
|
1403
|
-
|
1404
|
-
/*
|
1405
|
-
* Trim spaces from a string
|
1406
|
-
*/
|
1407
|
-
trimSpaces: function (text) {
|
1408
|
-
if (typeof(text) != 'string') {return text}
|
1409
|
-
return text.replace(/^\s+|\s+$/g,'');
|
1410
|
-
},
|
1411
|
-
|
1412
|
-
/*
|
1413
|
-
* Check if the next character is a space
|
1414
|
-
*/
|
1415
|
-
nextIsSpace: function () {
|
1416
|
-
return this.string.charAt(this.i).match(/[ \n\r\t]/);
|
1417
|
-
},
|
1418
|
-
|
1419
|
-
/*
|
1420
|
-
* Get the next non-space character
|
1421
|
-
*/
|
1422
|
-
GetNext: function () {
|
1423
|
-
while (this.nextIsSpace()) {this.i++}
|
1424
|
-
return this.string.charAt(this.i);
|
1425
|
-
},
|
1426
|
-
|
1427
|
-
/*
|
1428
|
-
* Get and return a control-sequence name
|
1429
|
-
*/
|
1430
|
-
GetCS: function () {
|
1431
|
-
var CS = this.string.slice(this.i).match(/^([a-z]+|.) ?/i);
|
1432
|
-
if (CS) {this.i += CS[1].length; return CS[1]} else {this.i++; return " "}
|
1433
|
-
},
|
1434
|
-
|
1435
|
-
/*
|
1436
|
-
* Get and return a TeX argument (either a single character or control sequence,
|
1437
|
-
* or the contents of the next set of braces).
|
1438
|
-
*/
|
1439
|
-
GetArgument: function (name,noneOK) {
|
1440
|
-
switch (this.GetNext()) {
|
1441
|
-
case "":
|
1442
|
-
if (!noneOK) {TEX.Error("Missing argument for "+name)}
|
1443
|
-
return null;
|
1444
|
-
case '}':
|
1445
|
-
if (!noneOK) {TEX.Error("Extra close brace or missing open brace")}
|
1446
|
-
return null;
|
1447
|
-
case '\\':
|
1448
|
-
this.i++; return "\\"+this.GetCS();
|
1449
|
-
case '{':
|
1450
|
-
var j = ++this.i, parens = 1;
|
1451
|
-
while (this.i < this.string.length) {
|
1452
|
-
switch (this.string.charAt(this.i++)) {
|
1453
|
-
case '\\': this.i++; break;
|
1454
|
-
case '{': parens++; break;
|
1455
|
-
case '}':
|
1456
|
-
if (parens == 0) {TEX.Error("Extra close brace")}
|
1457
|
-
if (--parens == 0) {return this.string.slice(j,this.i-1)}
|
1458
|
-
break;
|
1459
|
-
}
|
1460
|
-
}
|
1461
|
-
TEX.Error("Missing close brace");
|
1462
|
-
break;
|
1463
|
-
}
|
1464
|
-
return this.string.charAt(this.i++);
|
1465
|
-
},
|
1466
|
-
|
1467
|
-
/*
|
1468
|
-
* Get an optional LaTeX argument in brackets
|
1469
|
-
*/
|
1470
|
-
GetBrackets: function (name) {
|
1471
|
-
if (this.GetNext() != '[') {return ''};
|
1472
|
-
var j = ++this.i, parens = 0;
|
1473
|
-
while (this.i < this.string.length) {
|
1474
|
-
switch (this.string.charAt(this.i++)) {
|
1475
|
-
case '{': parens++; break;
|
1476
|
-
case '\\': this.i++; break;
|
1477
|
-
case '}':
|
1478
|
-
if (parens-- <= 0) {TEX.Error("Extra close brace while looking for ']'")}
|
1479
|
-
break;
|
1480
|
-
case ']':
|
1481
|
-
if (parens == 0) {return this.string.slice(j,this.i-1)}
|
1482
|
-
break;
|
1483
|
-
}
|
1484
|
-
}
|
1485
|
-
TEX.Error("Couldn't find closing ']' for argument to "+name);
|
1486
|
-
},
|
1487
|
-
|
1488
|
-
/*
|
1489
|
-
* Get the name of a delimiter (check it in the delimiter list).
|
1490
|
-
*/
|
1491
|
-
GetDelimiter: function (name) {
|
1492
|
-
while (this.nextIsSpace()) {this.i++}
|
1493
|
-
var c = this.string.charAt(this.i);
|
1494
|
-
if (this.i < this.string.length) {
|
1495
|
-
this.i++; if (c == "\\") {c += this.GetCS(name)}
|
1496
|
-
if (TEXDEF.delimiter[c] != null) {return this.convertDelimiter(c)}
|
1497
|
-
}
|
1498
|
-
TEX.Error("Missing or unrecognized delimiter for "+name);
|
1499
|
-
},
|
1500
|
-
|
1501
|
-
/*
|
1502
|
-
* Get a dimension (including its units).
|
1503
|
-
*/
|
1504
|
-
GetDimen: function (name) {
|
1505
|
-
if (this.nextIsSpace()) {this.i++}
|
1506
|
-
if (this.string.charAt(this.i) == '{') {
|
1507
|
-
var dimen = this.GetArgument(name);
|
1508
|
-
if (dimen.match(/^\s*([-+]?(\.\d+|\d+(\.\d*)?))\s*(pt|em|ex|mu|px|mm|cm|in|pc)\s*$/))
|
1509
|
-
{return dimen.replace(/ /g,"")}
|
1510
|
-
} else {
|
1511
|
-
var dimen = this.string.slice(this.i);
|
1512
|
-
var match = dimen.match(/^\s*(([-+]?(\.\d+|\d+(\.\d*)?))\s*(pt|em|ex|mu|px|mm|cm|in|pc)) ?/);
|
1513
|
-
if (match) {
|
1514
|
-
this.i += match[0].length;
|
1515
|
-
return match[1].replace(/ /g,"");
|
1516
|
-
}
|
1517
|
-
}
|
1518
|
-
TEX.Error("Missing dimension or its units for "+name);
|
1519
|
-
},
|
1520
|
-
|
1521
|
-
/*
|
1522
|
-
* Get everything up to the given control sequence (token)
|
1523
|
-
*/
|
1524
|
-
GetUpTo: function (name,token) {
|
1525
|
-
while (this.nextIsSpace()) {this.i++}
|
1526
|
-
var j = this.i, k, c, parens = 0;
|
1527
|
-
while (this.i < this.string.length) {
|
1528
|
-
k = this.i; c = this.string.charAt(this.i++);
|
1529
|
-
switch (c) {
|
1530
|
-
case '\\': c += this.GetCS(); break;
|
1531
|
-
case '{': parens++; break;
|
1532
|
-
case '}':
|
1533
|
-
if (parens == 0) {TEX.Error("Extra close brace while looking for "+token)}
|
1534
|
-
parens--;
|
1535
|
-
break;
|
1536
|
-
}
|
1537
|
-
if (parens == 0 && c == token) {return this.string.slice(j,k)}
|
1538
|
-
}
|
1539
|
-
TEX.Error("Couldn't find "+token+" for "+name);
|
1540
|
-
},
|
1541
|
-
|
1542
|
-
/*
|
1543
|
-
* Parse various substrings
|
1544
|
-
*/
|
1545
|
-
ParseArg: function (name) {return TEX.Parse(this.GetArgument(name),this.stack.env).mml()},
|
1546
|
-
ParseUpTo: function (name,token) {return TEX.Parse(this.GetUpTo(name,token),this.stack.env).mml()},
|
1547
|
-
|
1548
|
-
/*
|
1549
|
-
* Break up a string into text and math blocks
|
1550
|
-
* @@@ FIXME: skip over braced groups? @@@
|
1551
|
-
* @@@ FIXME: pass environment to TEX.Parse? @@@
|
1552
|
-
*/
|
1553
|
-
InternalMath: function (text,level) {
|
1554
|
-
var def = {displaystyle: FALSE}; if (level != null) {def.scriptlevel = level}
|
1555
|
-
if (this.stack.env.font) {def.mathvariant = this.stack.env.font}
|
1556
|
-
if (!text.match(/\$|\\\(/)) {return [MML.mtext(MML.chars(text)).With(def)]}
|
1557
|
-
var i = 0, k = 0, c, match = '';
|
1558
|
-
var mml = [];
|
1559
|
-
while (i < text.length) {
|
1560
|
-
c = text.charAt(i++);
|
1561
|
-
if (c === '$') {
|
1562
|
-
if (match === '$') {
|
1563
|
-
mml.push(MML.TeXAtom(TEX.Parse(text.slice(k,i-1)).mml().With(def)));
|
1564
|
-
match = ''; k = i;
|
1565
|
-
} else {
|
1566
|
-
if (k < i-1) {mml.push(MML.mtext(MML.chars(text.slice(k,i-1))).With(def))}
|
1567
|
-
match = '$'; k = i;
|
1568
|
-
}
|
1569
|
-
} else if (c === '\\') {
|
1570
|
-
c = text.charAt(i++);
|
1571
|
-
if (c === '(' && match == '') {
|
1572
|
-
if (k < i-2) {mml.push(MML.mtext(MML.chars(text.slice(k,i-2))).With(def))}
|
1573
|
-
match = ')'; k = i;
|
1574
|
-
} else if (c === ')' && match === ')') {
|
1575
|
-
mml.push(MML.TeXAtom(TEX.Parse(text.slice(k,i-2)).mml().With(def)));
|
1576
|
-
match = ''; k = i;
|
1577
|
-
}
|
1578
|
-
}
|
1579
|
-
}
|
1580
|
-
if (match !== '') {TEX.Error("Math not terminated in text box")}
|
1581
|
-
if (k < text.length) {mml.push(MML.mtext(MML.chars(text.slice(k))).With(def))}
|
1582
|
-
return mml;
|
1583
|
-
},
|
1584
|
-
|
1585
|
-
/*
|
1586
|
-
* Replace macro paramters with their values
|
1587
|
-
*/
|
1588
|
-
SubstituteArgs: function (args,string) {
|
1589
|
-
var text = ''; var newstring = ''; var c; var i = 0;
|
1590
|
-
while (i < string.length) {
|
1591
|
-
c = string.charAt(i++);
|
1592
|
-
if (c === "\\") {text += c + string.charAt(i++)}
|
1593
|
-
else if (c === '#') {
|
1594
|
-
c = string.charAt(i++);
|
1595
|
-
if (c === '#') {text += c} else {
|
1596
|
-
if (!c.match(/[1-9]/) || c > args.length)
|
1597
|
-
{TEX.Error("Illegal macro parameter reference")}
|
1598
|
-
newstring = this.AddArgs(this.AddArgs(newstring,text),args[c-1]);
|
1599
|
-
text = '';
|
1600
|
-
}
|
1601
|
-
} else {text += c}
|
1602
|
-
}
|
1603
|
-
return this.AddArgs(newstring,text);
|
1604
|
-
},
|
1605
|
-
|
1606
|
-
/*
|
1607
|
-
* Make sure that macros are followed by a space if their names
|
1608
|
-
* could accidentally be continued into the following text.
|
1609
|
-
*/
|
1610
|
-
AddArgs: function (s1,s2) {
|
1611
|
-
if (s2.match(/^[a-z]/i) && s1.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)) {s1 += ' '}
|
1612
|
-
return s1+s2;
|
1613
|
-
}
|
1614
|
-
|
1615
|
-
});
|
1616
|
-
|
1617
|
-
/************************************************************************/
|
1618
|
-
|
1619
|
-
TEX.Augment({
|
1620
|
-
Translate: function (script) {
|
1621
|
-
var mml, math = script.innerHTML.replace(/^\s+/,"").replace(/\s+$/,"");
|
1622
|
-
if (MathJax.Hub.Browser.isKonqueror)
|
1623
|
-
{math = math.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}
|
1624
|
-
var displaystyle =
|
1625
|
-
(script.type.replace(/\n/g," ").match(/(;|\s|\n)mode\s*=\s*display(;|\s|\n|$)/) != null);
|
1626
|
-
math = TEX.prefilterMath(math,displaystyle,script);
|
1627
|
-
try {
|
1628
|
-
mml = TEX.Parse(math).mml();
|
1629
|
-
// mml = MML.semantics(mml,MML.annotation(math).With({encoding:"application:x-tex"}));
|
1630
|
-
} catch(err) {
|
1631
|
-
if (!err.texError) {throw err}
|
1632
|
-
mml = this.formatError(err,math,displaystyle,script);
|
1633
|
-
}
|
1634
|
-
if (mml.inferred) {mml = MML.apply(MathJax.ElementJax,mml.data)} else {mml = MML(mml)}
|
1635
|
-
if (displaystyle) {mml.root.display = "block"}
|
1636
|
-
return mml;
|
1637
|
-
},
|
1638
|
-
prefilterMath: function (math,displaystyle,script) {return math},
|
1639
|
-
formatError: function (err,math,displaystyle,script) {
|
1640
|
-
return MML.merror(err.message.replace(/\n.*/,""));
|
1641
|
-
},
|
1642
|
-
Error: function (message) {
|
1643
|
-
throw MathJax.Hub.Insert(Error(message),{texError: TRUE});
|
1644
|
-
},
|
1645
|
-
Macro: function (name,def,argn) {
|
1646
|
-
TEXDEF.macros[name] = ['Macro'].concat([].slice.call(arguments,1));
|
1647
|
-
}
|
1648
|
-
});
|
15
|
+
MathJax.Unpack([
|
16
|
+
['(','function','(d){var c=true,f=false,i,h=String.fromCharCode(160);var e','=MathJax.Object.Subclass({','Init',':function(k){','this.global','={};','this.data','=[b.','start','().With({global:',6,'})];if(k){',8,'[0].env','=k}','this.env','=',8,15,'},','Push',':function(){','var l,k,n,o;for(','l=0,k=arguments.length;l<k;l++){','n=','arguments[l','];if(n',' instanceof ','i.mbase){n=b.mml(n)}n.global=',6,';o=(',8,'.length','?this.Top().','checkItem','(n):c);if(o',29,'Array','){this.Pop();this.Push','.apply(this',',','o)}else{if(o',29,'b',40,'(',43,'){',8,'.push','(n);if(n.env){','for(var ','p',' in this.env){if(this.env.hasOwnProperty(','p)){n.env[p]=',17,'[p]}}',17,'=n.env}else{n.env=',17,'}}}}}},Pop',23,'var k=',8,'.pop();if(!k.isOpen){delete k.env}',17,'=(',8,34,35,'env:{});','return ','k},Top',5,'if(k==null){k=','1}if(',8,34,'<k){',73,'null}',73,8,'[',8,34,'-k]},Prev',5,'var l=this.Top();if(k){',73,'l.data[l.data',34,'-1]}else{',73,'l.Pop()}},toString',23,'return"stack[\\n "+',8,'.join("\\n ")+"\\n]"}});var b=e.Item',3,'type:"base",closeError:"Extra',' close brace',' or missing',' open brace','",rightError:"Missing \\\\left or extra',' \\\\right",',4,23,'if(','this.isOpen){',17,'={}}',8,'=[];this.',22,41,',arguments)},',22,23,8,51,'.apply(',8,118,'Pop',23,73,8,'.pop()},mmlData:',1,'(k,l){',76,'c}if(',8,34,'===1&&!l){',73,8,'[0]}',73,'i.mrow',123,'i,',8,').With((k?{inferred:c}:{}))},','checkItem:function(','k){if(k.type==="','over"&&',111,'k.num=','this.mmlData','(f);',8,'=[]}if(k','.type==="','cell"&&',111,'d.Error("Misplaced "+k.name)}if(k.isClose&&','this[k.type+"Error','"]){d.Error(',160,'"])}if(!k','.isNotStack){',73,'c}this.',22,'(k.data[0]);',73,'f},With',5,53,'l in k){if(k.hasOwnProperty(l)){this[l]=k[l]}}',73,'this},toString',23,73,'this.type+"["+',8,'.join("; ")+"]"}});b.',10,'=b.Subclass({type:"',10,'",isOpen:c,',147,148,'stop"){','return b.mml(',152,'())}','return this.SUPER(arguments).checkItem.call(this,','k)}});b.','stop',182,193,'",isClose:c});b.','open',182,'open',184,'stopError:"Extra',105,104,103,'",',147,'l){','if(l.type==="','close"){',64,152,'();',188,'i.TeXAtom(','k))}',191,'l)}});b.','close',182,218,196,'subsup',182,222,'",stopError:"Missing superscript or subscript argument",',147,'l){var k=["","subscript","superscript"][this.','position','];',208,'open"||l',156,'left"){',73,'c}',208,'mml"){',8,'[0].SetData(this.',228,',l.data[0]);',188,8,'[0])}if(','this.SUPER(arguments).',36,'.call(this,l)){','d.Error("Missing',105,' for "+k)}},Pop:',1,'(){}});b.over',182,'over",isClose:c,name:"\\\\over",',147,'m,k){if(m',156,'over"){d.Error("Ambiguous use of "+m.name)}if(m.isClose){var l=i.mfrac(this.num,',152,'(f));if(this.thickness!=null){l.linethickness=this.thickness}','if(this.open||this.close){','l.texClass=i.TEXCLASS.INNER;l.texWithDelims=c;l=i.mfenced(l',').With({open:this.open,close:this.close})}','return[b.mml(','l),m]}',191,'m)},toString',23,'return"over["+this.num+" / "+',8,180,'left',182,'left',184,'delim:"(",',201,' \\\\left',104,107,147,'l){',208,'right"){var ','k=i.mfenced(',8,34,'===1?',8,'[0]:i.mrow',123,'i,',8,'));',188,'k.With({open:this.delim,',218,':l.delim}))}',191,217,'right',182,'right",isClose:c,delim:")"});b.begin',182,'begin',184,147,148,'end"){if(k.name!==this.name){d.Error("\\\\begin{"+this.name+"} ended with \\\\end{"+k.name+"}")}if(!this.end){',188,152,'())}',73,'this.parse[this.end].call(this.parse,this,',8,')}if(k',156,187,248,' \\\\end{"+this.name+"}")}',191,192,'end',182,'end',196,'style',182,'style",',147,'l){if(!l.isClose){',191,'l)}',64,'i.mstyle',123,'i,',8,').With(this.','styles);',264,'k),l]}});b.',228,182,228,'",',147,'l){if(l.isClose){',248,' box for "+this.name)}if(l',164,64,'l.mmlData();switch(this.move){case"vertical":k=i.mpadded(k).With({height:this.dh,depth:this.dd,voffset:this.dh});',264,'k)];case"horizontal":',264,'this.left),l,b.mml(this.right)]}}',191,217,'array',182,'array',184,'arraydef:{},',4,23,'this.table','=[];','this.row','=[];',17,7,245,4,41,118,147,348,'if(l.isEntry','){this.EndEntry();this.','clearEnv();return f}','if(l.isCR',380,'EndRow();this.',381,'this.EndTable();this.clearEnv();',64,'i.mtable',123,'i,',367,339,'arraydef);',261,285,'k',263,'k=b.mml(k);if(this.requireClose){',208,209,73,'k}',248,103,'")}return[k,l]}',191,'l)},EndEntry',23,369,51,'(i.mtd',123,'i,',8,'));',8,'=[]},EndRow',23,367,51,'(i.mtr',123,'i,',369,'));',369,'=[]},EndTable',23,'if(',8,34,'||',369,34,380,'EndRow()}this.checkLines()},checkLines',23,'if(','this.arraydef.rowlines','){',64,439,'.split(/ /);if(k',34,'===',367,34,'){this.arraydef.frame=k.pop();',439,'=k.join(" ")}else{if(k',34,'<',367,34,'-1){',439,'+=" none"}}}},clearEnv',23,53,'k',55,'k)){delete ',17,'[k]}}}});b.cell',182,'cell',196,'mml',182,'mml",isNotStack:c,',22,23,53,25,'if(',27,'].type!=="mo"&&',27,'].isEmbellished()){',27,']=',214,27,']).With({isEmbellishedWrapper:c})}}',8,51,123,8,118,'Add',23,8,51,123,8,',arguments);',73,'this}});var g',7,'var j=',1,'(){i=MathJax.ElementJax.mml;MathJax.Hub.Insert(g,{letter:/[a-z]/i,digit:/[0-9.]/,number:/^(?:[0-9]+(?:\\{,\\}[0-9]{3})*(?:\\.[0-9]*)*|\\.[0-9]+)/,special:{"\\\\":"ControlSequence","{":"Open","}":"Close","~":"Tilde","^":"Superscript",_:"Subscript"," ":"Space","\\t":"Space","\\r":"Space","\\n":"Space","\'":"Prime","%":"Comment","&":"Entry","#":"Hash","\\u2019":"Prime"},remap:{"-":"2212","*":"2217"},mathchar0mi:{alpha:"03B1",beta:"03B2",gamma:"03B3",delta:"03B4",epsilon:"03F5",zeta:"03B6",eta:"03B7",theta:"03B8",iota:"03B9",kappa:"03BA",lambda:"03BB",mu:"03BC",nu:"03BD",xi:"03BE",omicron:"03BF",pi:"03C0",rho:"03C1",sigma:"03C3",tau:"03C4",upsilon:"03C5",phi:"03D5",chi:"03C7",psi:"03C8",omega:"03C9",varepsilon:"03B5",vartheta:"03D1",varpi:"03D6",varrho:"03F1",varsigma:"03C2",varphi:"03C6",S:"00A7",aleph:["2135','",{mathvariant:i.VARIANT.NORMAL}],','hbar:"210F",imath:"0131",jmath:"0237",ell:"2113",wp:["2118',503,'Re:["211C',503,'Im:["2111',503,'partial:["2202',503,'infty:["221E',503,'prime:["2032',503,'emptyset:["2205',503,'nabla:["2207',503,'top:["22A4',503,'bot:["22A5',503,'angle:["2220',503,'triangle:["25B3',503,'backslash:["2216',503,'forall:["2200',503,'exists:["2203',503,'neg:["00AC',503,'lnot:["00AC',503,'flat:["266D',503,'natural:["266E',503,'sharp:["266F',503,'clubsuit:["2663',503,'diamondsuit:["2662',503,'heartsuit:["2661',503,'spadesuit:["2660",{mathvariant:i.VARIANT.NORMAL}]},mathchar0mo:{surd:"221A",coprod:["2210','",{texClass:i.TEXCLASS.OP,movesupsub:c','}],bigvee:["22C1',551,'}],bigwedge:["22C0',551,'}],biguplus:["2A04',551,'}],bigcap:["22C2',551,'}],bigcup:["22C3',551,'}],"int":["222B",{','texClass:i.TEXCLASS.','OP}],intop:["222B',551,',movablelimits:c}],iint:["222C",{',563,'OP}],iiint:["222D",{',563,'OP}],prod:["220F',551,'}],sum:["2211',551,'}],bigotimes:["2A02',551,'}],bigoplus:["2A01',551,'}],bigodot:["2A00',551,'}],oint:["222E",{',563,'OP}],bigsqcup:["2A06',551,'}],smallint:["222B','",{largeop:f}],','triangleleft:"25C3",triangleright:"25B9",bigtriangleup:"25B3",bigtriangledown:"25BD",wedge:"2227",land:"2227",vee:"2228",lor:"2228",cap:"2229",cup:"222A",ddagger:"2021",dagger:"2020",sqcap:"2293",sqcup:"2294",uplus:"228E",amalg:"2A3F",diamond:"22C4",bullet:"2219",wr:"2240",div:"00F7",odot:["2299',585,'oslash:["2298',585,'otimes:["2297',585,'ominus:["2296',585,'oplus:["2295',585,'mp:"2213",pm:"00B1",circ:"2218",bigcirc:"25EF",setminus:"2216",cdot:"22C5",ast:"2217",times:"00D7",star:"22C6",propto:"221D",sqsubseteq:"2291",sqsupseteq:"2292",parallel:"2225",mid:"2223",dashv:"22A3",vdash:"22A2",leq:"2264",le:"2264",geq:"2265",ge:"2265",lt:"003C",gt:"003E",succ:"227B",prec:"227A",approx:"2248",succeq:"2AB0",preceq:"2AAF",supset:"2283",subset:"2282",supseteq:"2287",subseteq:"2286","in":"2208",ni:"220B",notin:"2209",owns:"220B",gg:"226B",ll:"226A",sim:"223C",simeq:"2243",perp:"22A5",equiv:"2261",asymp:"224D",smile:"2323",frown:"2322",ne:"2260",neq:"2260",cong:"2245",doteq:"2250",bowtie:"22C8",models:"22A8",notChar:"0338",Leftrightarrow:"21D4",Leftarrow:"21D0",Rightarrow:"21D2",leftrightarrow:"2194",leftarrow:"2190",gets:"2190",rightarrow:"2192",to:"2192",mapsto:"21A6",leftharpoonup:"21BC",leftharpoondown:"21BD",rightharpoonup:"21C0",rightharpoondown:"21C1",nearrow:"2197",searrow:"2198",nwarrow:"2196",swarrow:"2199",rightleftharpoons:"21CC",hookrightarrow:"21AA",hookleftarrow:"21A9",longleftarrow:"27F5",Longleftarrow:"27F8",longrightarrow:"27F6",Longrightarrow:"27F9",','Longleftrightarrow',':"27FA",longleftrightarrow:"27F7",longmapsto:"27FC",ldots:"2026",cdots:"22EF",vdots:"22EE",ddots:"22F1",dots:"2026",dotsc:"2026",dotsb:"22EF",dotsm:"22EF",dotsi:"22EF",dotso:"2026",ldotp:["002E",{',563,'PUNCT}],cdotp:["22C5",{',563,'PUNCT}],colon:["003A",{',563,'PUNCT}]},mathchar7:{Gamma:"0393",Delta:"0394",Theta:"0398",Lambda:"039B",Xi:"039E",Pi:"03A0",Sigma:"03A3",Upsilon:"03A5",Phi:"03A6",Psi:"03A8",Omega:"03A9",_:"005F","#":"0023","$":"0024","%":"0025","&":"0026",And:"0026"},delimiter:{"(":"(",")":")","[":"[","]":"]","<":"27E8",">":"27E9","\\\\lt":"27E8","\\\\gt":"27E9","/":"/","|":["|",{',563,'ORD}],".":"","\\\\\\\\":"\\\\","\\\\lmoustache":"23B0","\\\\rmoustache":"23B1","\\\\lgroup":"27EE","\\\\rgroup":"27EF","\\\\arrowvert":"23D0","\\\\Arrowvert":"2016","\\\\bracevert":"23AA","\\\\Vert":["2225",{',563,'ORD}],"\\\\|":["2225",{',563,'ORD}],"\\\\','vert":["|",{',563,610,'uparrow":"2191","\\\\downarrow":"2193","\\\\updownarrow":"2195","\\\\Uparrow":"21D1","\\\\Downarrow":"21D3","\\\\Updownarrow":"21D5","\\\\backslash":"\\\\","\\\\rangle":"27E9","\\\\langle":"27E8","\\\\rbrace":"}","\\\\lbrace":"{","\\\\}":"}","\\\\{":"{","\\\\rceil":"2309","\\\\lceil":"2308","\\\\rfloor":"230B","\\\\lfloor":"230A","\\\\lbrack":"[","\\\\rbrack":"]"},macros:{displaystyle',':["SetStyle","','D",c,0],textstyle',615,'T",f,0],scriptstyle',615,'S",f,1],scriptscriptstyle',615,'SS",f,2],rm',':["SetFont",i.VARIANT.','NORMAL],mit',623,'ITALIC],oldstyle',623,'OLDSTYLE],cal',623,'CALIGRAPHIC],it',623,'ITALIC],bf',623,'BOLD],bbFont',623,'DOUBLESTRUCK],scr',623,'SCRIPT],frak',623,'FRAKTUR],sf',623,'SANSSERIF],tt',623,'MONOSPACE],tiny',':["SetSize",','0.5],Tiny',645,'0.6],scriptsize',645,'0.7],small',645,'0.85],normalsize',645,'1],large',645,'1.2],Large',645,'1.44],LARGE',645,'1.73],huge',645,'2.07],Huge',645,'2.49],arcsin',':["NamedOp",0],','arccos',665,'arctan',665,'arg',665,'cos',665,'cosh',665,'cot',665,'coth',665,'csc',665,'deg',665,'det',':"NamedOp",','dim',665,'exp',665,'gcd',685,'hom',665,'inf',685,'ker',665,'lg',665,'lim',685,'liminf',':["NamedOp",null,"lim ','inf"],limsup',703,'sup"],ln',665,'log',665,'max',685,'min',685,'Pr',685,'sec',665,'sin',665,'sinh',665,'sup',685,'tan',665,'tanh',665,'limits:["Limits",1],nolimits:["Limits",0],overline',':["UnderOver","','203E"],underline',729,'005F"],overbrace',729,'23DE",1],underbrace',729,'23DF",1],overrightarrow',729,'2192"],underrightarrow',729,'2192"],overleftarrow',729,'2190"],underleftarrow',729,'2190"],overleftrightarrow',729,'2194"],underleftrightarrow',729,'2194"],overset:"Overset",underset:"Underset",stackrel',':["Macro","\\\\','mathrel{\\\\','mathop{#2}\\\\limits^{#1}}",2],over:"Over",overwithdelims:"Over",atop:"Over",atopwithdelims:"Over",above:"Over",abovewithdelims:"Over",brace:["Over","{","}"],brack:["Over","[","]"],choose:["Over","(",")"],frac:"Frac",sqrt:"Sqrt",root:"Root",uproot:["MoveRoot","upRoot"],leftroot:["MoveRoot","leftRoot"],left:"LeftRight",right:"LeftRight",llap:"Lap",rlap:"Lap",raise:"RaiseLower",lower:"RaiseLower",moveleft',':"MoveLeftRight','",moveright',752,'",",":["','Spacer",i.LENGTH.','THINMATHSPACE','],":":["',756,757,'],">":["',756,'MEDIUMMATHSPACE],";":["',756,'THICKMATHSPACE','],"!":["',756,'NEGATIVETHINMATHSPACE],','enspace:["Spacer",".5em"],quad:["Spacer","1em"],qquad:["Spacer","2em"],thinspace:["',756,757,'],negthinspace:["',756,768,'hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",Rule:["Rule"],Space:["Rule","blank"],big',':["MakeBig",i.TEXCLASS.','ORD,0.85],Big',776,'ORD,1.15],bigg',776,'ORD,1.45],Bigg',776,'ORD,1.75],bigl',776,'OPEN,0.85],Bigl',776,'OPEN,1.','15],biggl',776,787,'45],Biggl',776,787,'75],bigr',776,'CLOSE,0.85],Bigr',776,'CLOSE,1.','15],biggr',776,798,'45],Biggr',776,798,'75],bigm',776,'REL,0.85],Bigm',776,'REL,1.15],biggm',776,'REL,1.45],Biggm',776,'REL,1.75],mathord',':["TeXAtom",i.TEXCLASS.','ORD],mathop',814,'OP],mathopen',814,'OPEN],mathclose',814,'CLOSE],mathbin',814,'BIN],mathrel',814,'REL],mathpunct',814,'PUNCT],mathinner',814,'INNER],vcenter',814,'VCENTER],','mathchoice',':["Extension","',832,'"],buildrel:"BuildRel",hbox:["HBox",0],text:"HBox",mbox:["HBox",0],fbox:"FBox",strut:"Strut",mathstrut',749,'vphantom{(}"],phantom:"Phantom",vphantom:["Phantom",1,0],hphantom:["Phantom",0,1],smash:"Smash",acute',':["Accent","','02CA"],grave',838,'02CB"],ddot',838,'00A8"],tilde',838,'02DC"],bar',838,'02C9"],breve',838,'02D8"],check',838,'02C7"],hat',838,'02C6"],vec',838,'20D7"],dot',838,'02D9"],widetilde',838,'02DC",1],widehat',838,'02C6",1],matrix:"Matrix",array:"Matrix",pmatrix:["Matrix","(",")"],cases:["Matrix","{","","left left",null,".1em"],eqalign',':["Matrix",null,null,"','right left",i.LENGTH.',765,',".5em","D"],','displaylines',862,'center",null',865,'cr:"Cr","\\\\":"Cr",newline:"Cr",hline:["HLine","solid"],hdashline:["HLine","dashed"],eqalignno',':["Matrix",null,null,"right left right",i.LENGTH.THICKMATHSPACE+" 3em",".5em","D"],','leqalignno',871,'bmod',749,'mathbin{\\\\rm mod}"],pmod',749,'pod{{\\\\rm mod}\\\\kern 6mu',' #1}",1],','mod',749,'mathchoice{\\\\kern18mu}{\\\\','kern12mu}{\\\\',883,883,'rm mod}\\\\,\\\\,#1",1],pod',749,882,'kern8mu}{\\\\kern8mu}{\\\\kern8mu}(#1)",1],iff:["Macro","\\\\;\\\\',597,'\\\\;"],skew:["Macro","{{#2{#3\\\\mkern#1mu}\\\\mkern-#1mu}{}}",3],mathcal',':["Macro","{\\\\','cal',879,'mathscr',892,'scr',879,'mathrm',892,'rm',879,'mathbf',892,'bf',879,'mathbb',892,'bbFont #1}",1],','Bbb',892,909,'mathit',892,'it',879,'mathfrak',892,'frak',879,'mathsf',892,'sf',879,'mathtt',892,'tt',879,'textrm',749,'mathord{\\\\','rm\\\\text{#1}}",1],textit',749,931,'it','{\\\\text{#1}}}",1],','textbf',749,931,'bf',936,'pmb',749,'rlap{#1}\\\\kern1px{#1}",1],TeX:["Macro","T\\\\kern-.14em\\\\lower.5ex{E}\\\\kern-.115em X"],LaTeX:["Macro","L\\\\kern-.325em\\\\raise.21em{\\\\scriptstyle{A}}\\\\kern-.17em\\\\TeX"],not',749,750,'rlap{\\\\kern.5em\\\\notChar}}"]," ":["Macro","\\\\text{ }"],space:"Tilde",begin:"Begin",end:"End",newcommand',833,'newcommand"],','renewcommand',833,949,'newenvironment',833,949,'def',833,949,'verb',833,'verb"],','boldsymbol',833,962,'"],tag',833,'AMSmath"],','notag',833,967,'label:["Macro","",1],nonumber:["Macro",""],unicode',833,'unicode"],color:"Color",require:"Require"},environment:{array:["Array"],matrix:["Array",n'],
|
17
|
+
['ull,null,null,"c"],pmatrix',':["Array",null',',"(",")","c"],bmatrix',1,',"[","]","c"],Bmatrix',1,',"\\\\{","\\\\}","c"],vmatrix',1,',"\\\\vert","\\\\vert","c"],Vmatrix',1,',"\\\\Vert","\\\\Vert","c"],cases',1,',"\\\\{",".","ll",null,".1em"],','eqnarray',':["','Array",null,null,null,"rcl",i.LENGTH.THICKMATHSPACE,".5em","D','"],"',13,'*":["',15,'"],equation:[','null,"Equation',16,'equation*":[',21,'"],align:["','ExtensionEnv",null,"AMSmath',16,'align',18,26,'"],aligned:["',26,'"],','multline',':["',26,16,34,18,26,'"],split:["',26,'"],gather:["',26,16,'gather',18,26,'"],gathered:["',26,'"],alignat:["',26,16,'alignat',18,26,'"],alignedat:["',26,'"]},p_height:1.2/0.85});if(','this.config.Macros','){','var k=',60,';for(var l in k){if(k','.hasOwnProperty(','l)){if(typeof(k[l])==="','string"){','g.macros[l]=["Macro','",k[l]]}else{',68,'"].concat(k[l])}}}}};var a=MathJax.Object.Subclass({Init',':function(','l,m){','this.string=','l;this.i=0;var k;if(m){k={};for(var n in m){if(m',65,'n)){k[n]=m[n]}}}this.stack=d.Stack(k);this.Parse();','this.Push(','b.stop())},Parse',':function(){','var k;','while(this.i<this.string.length','){k=','this.string.charAt(this.i','++);if(g.special[k]){this[g.special[k]](k)}','else{if(','g.letter','.test(k)){this.','Variable','(k)}',86,'g.digit',88,'Number(k)}','else{this.','Other(k)}}}}},Push',80,'this.stack.','Push.apply(this','.stack,arguments)},mml',80,'if(',98,'Top().type!=="mml"){','return ','null}',105,98,'Top().data[0]},mmlToken',72,'k','){return ','k},ControlSequence',72,'q){',62,'this.GetCS','(),p,n;if(','g.macros[k',']){','var m=',119,'];if(!(m',' instanceof Array',')){m=[m]}','var l=','m[0];if(!(l instanceof Function)){l=this[l]}l.apply(this,["\\\\"+k].concat(m.slice(1)))}',86,'g.mathchar0mi[k',']){p=',129,'];n={','mathvariant:i.VARIANT.','ITALIC};if(p',124,'){n=p[1];p=p[0]}',78,'this.mmlToken(','i.mi','(i.entity("#x"+p)).With(n)))}else{if(g.','mathchar0mo[k',']){p=g.',141,132,'stretchy:','f};if(p',124,'){n=p[1];n.stretchy=f;p=p[0]}',78,138,'i.mo',140,'mathchar7[k',142,153,132,133,'NORMAL','};if(p',124,136,'if(','this.stack.env','.font){','n.','mathvariant','=',163,'.font}',78,138,'i.mi',140,'delimiter["\\\\"+k',']!=null){var o=g.',174,'];n={};if(o',124,'){n=o[1];o=o[0]}if(o.length===4){o=i.entity("#x"+o)}else{o=i.chars(o)}',78,138,'i.mo(o).With({','fence:f,',145,'f}).With(n)))}',95,'csUndefined','("\\\\"+k)}}}}}},',187,72,'k){','d.Error("','Undefined control sequence "+k)},',89,72,'l){var ','k={};if(',163,164,'k.',166,'=',163,169,78,138,'i.mi(i.chars(l)).With(k)))},Number',72,'m){var k,l=','this.string.slice(','this.i-1).match(g.number);if(l){k=i.mn(l[0].replace(/[{}]/g,""));this.i+=l[0].length-1}else{k=','i.mo(i.chars(','m))}if(',163,164,'k.',166,'=',163,169,78,138,'k))},Open',72,'k){',78,'b.open())},Close',72,'k){',78,'b.close())},Tilde',72,'k){',78,'i.mtext(i.chars(','h)))},Space',72,'k){},Superscript',72,'m){var k,l=this.stack.Prev();if(!l){l=i.mi("")}if(l.isEmbellishedWrapper){l=l.data[0].data[0]}if(l.type==="msubsup"){if(l.data[l.','sup]){if(!l.data[l.sup].isPrime){',192,'Double exponent',': use braces to clarify")}','l=i.msubsup(l,null,null',')}k=l.sup','}else{if(l.movesupsub){if(l.type!=="munderover"||l.data[l.','over',']){l=i.munderover(l,null,null).With({movesupsub:c})}k=l.','over}else{',245,');k=l.sup}}',78,'b.subsup(l).With({position:k}))},','Subscript',72,240,'sub]){',192,'Double subscripts',244,'k=l.sub',247,'under',249,'under}else{',245,');k=l.sub}}',78,254,'PRIME:','String.fromCharCode(','8242),SMARTQUOTE:',272,'8217),Prime',72,'m){',126,98,'Prev();if(!l){l=i.mi()}if(l.type==="msubsup"&&l.data[l.sup]){',192,'Prime causes double exponent',244,'var k="";this.i--;do{k+=this.PRIME;this.i++,m=','this.GetNext','()}while(m==="\'"||m===this.SMARTQUOTE);k=',138,212,'k)).With({','isPrime:c,variantForm:d.isSTIX}));',78,'i.msubsup(l,null,k))},Comment',72,'k){',82,'&&',84,')!="\\n"){this.i++}},Hash',72,'k){',192,'You can\'t use \'','macro parameter ','character #\' in math mode")},Other',72,'m){var l={',145,'false},k;if(',163,164,'l.',166,'=',163,169,'if(g.remap[m]){m=g.remap[m];if(m',124,'){l=m[1];m=m[0]}k=','i.mo(i.entity("#x"+','m))}else{k=i.mo(m)}if(k.autoDefault("texClass",true)==""){k=','i.TeXAtom(','k)}',78,138,'k.With(l)))},SetFont',72,'l,k){',163,'.font=k},SetStyle',72,'l,k,m,n){',163,'.style=k;',163,'.level=n;',78,'b.style().With({styles:{','displaystyle',':m,','scriptlevel',':n}}))},SetSize',72,'k,l){',163,'.size=l;',78,337,'mathsize:l+"em"}}))},Color',72,'m){',126,'this.GetArgument(','m);',62,163,'.color;',163,'.color=l;var n=','this.ParseArg(','m);if(k){',163,'.color}','else{delete ',163,362,78,'i.mstyle(n).With({mathcolor:l}))},Spacer',72,343,78,'i.mspace().With({width:','l,','mathsize:i.SIZE.NORMAL,scriptlevel:','1}))},LeftRight',72,'k){',78,'b[k.substr(1)]().With({delim:','this.GetDelimiter(','k)}))},NamedOp',72,'m,l,o){var n=(l!=null&&l===0?f:c);if(!o){o=m.substr(1)}l=((l||l==null)?c:f);o=o.replace(/ /,',272,'8198));',62,182,'movablelimits',':l,','movesupsub',':n',',form:i.FORM.PREFIX,texClass:i.TEXCLASS.OP','});k','.useMMLspacing&=~','k','.SPACE_ATTR.form',';',78,138,'k))},Limits',72,327,121,98,'Prev("nopop");if(m.texClass!==','i.TEXCLASS.OP){','d.Error(l+" is allowed only on operators")}m.',389,'=(k?c:f);m.',387,'=f},Over',72,'m,l,n){',62,'b.over','().With({name:','m});if(l||n){k.open=l;k.close=n}',86,'m.match(/withdelims$/)){k.open=',379,'m);k.close=',379,'m)}}if(','m.match(/^\\\\','above/)){','k.thickness=','this.GetDimen(','m)}',86,423,'atop/)||l||n){',425,'0}}',78,'k)},Frac',72,196,'k=',359,'l);',121,359,'l);',78,'i.mfrac(k,m))},Sqrt',72,196,'m=','this.GetBrackets(','l),k=',359,'l);if(m==""){k=i.msqrt.apply(i,k.array())}else{k=','i.mroot(k,this.parseRoot(m','))}',78,'k)},Root',72,196,'m=','this.GetUpTo(','l,"\\\\of");',62,359,'l);',78,452,')))},parseRoot',72,'p){',126,163,',k=l.inRoot;l.inRoot=true;var o=','d.Parse(','p,l);p=o.mml();',121,'o.stack.global;if(m.leftRoot||m.upRoot){p','=i.mpadded(','p);if(m.leftRoot){p.width=m.leftRoot}if(m.upRoot){p.voffset=m.upRoot;p.height=m.upRoot}}l.inRoot=k;',105,'p},MoveRoot',72,'k,m){if(!',163,'.inRoot){d.Error(k+" can appear only within a root")}if(',98,'global[m]){',192,'Multiple use of "+k)}',126,352,'k);if(!l.match(/-?[0-9]+/)){',192,'The',' argument to "+','k+" must be an integer")}l=(l/15)+"em";if(l.substr(0,1)!=="-"){l="+"+l}',98,'global[m]=l},Accent',72,'m,k,o){var n=',359,'m);',126,138,319,289,'accent:c}));l.stretchy=(o?c:f);',78,'i.munderover(','n,null,l).With({accent:c}))},UnderOver',72,'m,p,k){var o={o:"over",u:"under"}[m.charAt(1)];var n=',359,'m);',126,507,'n,null,null);if(k){l.',389,'=c}l.data[l[o]]=',138,319,'p)).With({',145,'c,accent:(o=="under")}));',78,'l)},Overset',72,'k){',121,359,'k),l=',359,'k);',78,507,'l,null,m))},Underset',72,'k){',121,359,'k),l=',359,'k);',78,507,'l,m,null))},TeXAtom',72,'n,p){var o={texClass:p},m;if(p==',405,'o.',389,'=o.',387,'=c;',62,352,'n);',126,'k.match(/^\\s*\\\\rm\\s+([a-zA-Z0-9 ]+)$/);if(l){m=',138,'i.mo(l[1]).With({',387,':c,',389,':c,',133,158,391,'}));m',393,'m',395,'}','else{m=',321,472,'k,',163,').mml()).With(o)}}',572,321,359,'n)).With(o)}',78,'m)},Strut',72,'k){',78,'i.mpadded(i.mrow()).With','({height:"8.6pt",depth:"3pt",width:0}))},Phantom',72,'l,k,m){var n=i.mphantom(',359,'l));if(k||m){n',476,'n);if(m){n.height=n.depth=0}if(k){n.width=0}}',78,'n)},Smash',72,'m){',126,'this.trimSpaces(',448,'m));var k',476,359,'m));','switch(','l){case"b":k.depth=0;','break;case','"t":k.height=0;break;default:k.height=k.depth=0}',78,'k)},Lap',72,196,'k',476,359,'l)).With({width:0});if(l==="\\\\llap"){k.lspace="-1 width"}',78,'k)},RaiseLower',72,'k){',126,426,'k);',121,'b.position().With({name:k,move:"','vertical"});if(l.charAt(0)==="-"){l=l.slice(1);k={raise:"\\\\lower",lower:"\\\\raise"}[k.substr(1)]}if(k==="\\\\lower"){m.dh="-"+l;m.dd=l}else{m.dh=l;m.dd="-"+l}',78,'m)},MoveLeftRight',72,'k){var n=',426,'k);var m=(n.charAt(0)==="-"?n.slice(1):"-"+n);if(k==="\\\\moveleft"){',126,'n;n=m;m=l}',78,626,'horizontal",left:',371,'n,',373,'1}),right:',371,'m,',373,'1})}))},Hskip',72,'k){',78,371,426,'k),',373,'0}))},Rule',72,'m,o){',62,426,'m),n=',426,'m),q=',426,'m);var l,p={width:k,height:n,depth:q};if(o!=="blank"){l=',587,'(p);if(parseFloat(k)&&parseFloat(n)+parseFloat(q)){l=i.mstyle(l).With({mathbackground:(',163,'.color||"black")})}}else{l=i.mspace().With(p)}',78,'l)},MakeBig',72,'k,n,l){l*=g.p_height;l=String(l).replace(/(\\.\\d\\d\\d).+/,"$1")+"em";',121,379,'k);',78,321,'i.mo(m).With({minsize:l,maxsize:l,',340,':0,fence:c,',145,'c,symmetric:c})).With({texClass:n}))},BuildRel',72,'k){',126,'this.','ParseUpTo','(k,"\\\\over");',121,359,'k);',78,321,507,'m,null,l)).With({mclass:i.TEXCLASS.REL}))},HBox',72,343,'this.',99,',this.','InternalMath','(',352,'k),l))},FBox',72,'k){',78,'i.menclose.apply(i,this.',700,'(',352,'k))))},Require',72,'k){',126,352,'k);','this.Extension(','null,l)},Extension',72,'k,l,m){','if(k&&!typeof(k)==="',67,'k=k.name}l=d.extensionDir+"/"+l;if(!l.match(/\\.js$/)){l+=".js"}if(!','MathJax.Ajax.','loaded[',724,'fileURL(l)]){if(k!=null){delete g[m||"macros"][k.replace(/^\\\\/,"")]}','MathJax.Hub.','RestartAfter(',724,'Require(l))}},Macro',72,'l,o,n){if(n){var k=[];for(',121,'0;m<n;m++){k.push(',352,'l))}o=this.','SubstituteArgs','(k,o)}',74,'this.AddArgs(','o,',210,'this.i));this.i=0},Matrix',72,'l,n,s,p,q,m,k){var r=',285,'();if(r===""){','d.Error("Missing ','argument for "+l)}','if(r==="{"){this.i++}else{',74,'r+"}"+',210,'this.i+1);this.i=0}var o','=b.array().With({','requireClose:c,arraydef:{rowspacing:(m||"4pt"),','columnspacing:(','q||"1em")}});if(n||s){o.open=n;o.close=s}if(k==="D"){o','.arraydef.',338,'=c}if(p!=null){o',760,'columnalign=p}',78,'o)},Entry',72,'k){',78,'b.cell().With({','isEntry:c,name:k}))},Cr',72,'k){',78,770,'isCR:c,name:k}))},HLine',72,73,'if(m==null){m="solid"}var n=',98,'Top();if(n.type!=="array"||n.data','.length){',192,'Misplaced "+l)}if(n.table.length==0){n',760,'frame=m}else{var k=(n',760,'rowlines','?n',760,788,'.split(/ /):[]);while(k.length<n.table',782,'k.push("none")}k[n.table.length-1]=m;n',760,788,'=k.join(" ")}},Begin',72,196,'m=',352,'l);if(m.match','(/[^a-z*]/i)){d.Error(\'Invalid ','environment',' name "\'+m+\'"\')}if(!g.',804,'[m]){d.Error(\'Unknown ',804,' "\'+m+\'"\')}var n=g.',804,'[m];if(!(n',124,')){n=[n]}',62,'b.begin',415,'m,end:n[1],parse:this});if(n[0]&&this[n[0]]){k=this[n[0]].apply(this,[k].concat(n.slice(2)))}',78,'k)},End',72,'k){',78,'b.end',415,352,'k)}))},Equation',72,'k,l',112,'l},ExtensionEnv',72,327,717,'l.name,k,"',804,'")},Array',72,'m,o,t,r,s,n,k,p){if(!r){r=this.GetArgument("\\\\begin{"+m.name+"}")}var u=("c"+r).replace(/[^clr|:]/g,"").replace(/[^|:]([|:])+/g,"$1");r=r.replace(/[^clr]/g,"").split("").join(" ");r=r.replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");var q',756,'arraydef:{columnalign:r,',758,'s||"1em"),rowspacing:(n||"4pt")}});if(u.match(/[|:]/)){var l=(u.charAt(0)+u.charAt(u.length-1)).replace(/[^|:]/g,"");if(l!==""){q',760,'frame={"|":"solid",":":"dashed"}[l.charAt(0)];q',760,'framespacing=".5em .5ex"}u=u.substr(1,u.length-2);q',760,'columnlines=u.split("").join(" ").replace(/[^|: ]/g,"none").replace(/\\|/g,"solid").replace(/:/g,"dashed")}if(o){q.open=','this.convertDelimiter(','o)}if(t){q.close=',849,'t)}if(k==="D"){q',760,338,'=c}if(k==="S"){q',760,340,'=1}if(p){q',760,'useHeight=f}',78,'m);',105,'q},convertDelimiter',72,'k){if(k){k=g.delimiter[k]}if(k==null',112,106,'if(k',124,'){k=k[0]}if(k.length===4){k=',272,'parseInt(k,16))}',105,'k},trimSpaces',72,'k){if(typeof(k)!="',67,105,'k}',105,'k','.replace(/^\\s','+|\\s+$/g,"")},nextIsSpace',80,105,84,').match(/[ \\n\\r\\t]/)},GetNext',80,'while','(this.nextIsSpace()){this.i++}',105,84,')},GetCS',80,62,210,'this.i).match(/^([a-z]+|.) ?/i);','if(k){this.i+=k[','1].length;',105,'k[1]}',95,'i++;return" "}},GetArgument',72,73,606,285,'()){case"":if(!m){',749,750,105,'null;case"}":if(!m','){d.Error("Extra close brace',' or missing open brace")}',105,'null;','case"\\\\":this.i++;','return"\\\\"+',117,'();case"{":','var k=++this.i,','n=1;',82,'){',606,84,'++)){',918,608,'"{":n','++;break;case"}":if(','n==0',914,'")}if(--n==0',112,210,'k,this.i-1)}break}}',749,'close brace");break}',105,84,'++)},GetBrackets',72,'l){if(',285,'()!="["){return""}',922,'m=0;',82,'){',606,84,'++)){case"{":m++;',608,'"\\\\":this.i',932,'m--<=0',914,' while looking for',' \']\'")}',608,'"]":if(m==0',112,210,'k,this.i-1)}break}}',192,'Couldn\'t find',' closing \']\' for',493,'l)},GetDelimiter',72,'k){while',891,126,84,');if(this.i<this.string',782,'this.i++;if(l=="\\\\"){l+=',117,'(k)}if(g.delimiter[l]!=null',112,849,'l)}}',749,'or unrecognized delimiter for "+k)},GetDimen',72,196,'m;if',891,'if(',84,')=="{"){m=',352,802,'(/^\\s*([-+]?(\\.\\','d+|\\d+(\\.\\d*)?))\\s*(pt|em|ex|mu|px|mm|cm|in|pc',')\\s*$/)){',105,'m.','replace(/ /g,"")}}',572,210,'this.i);',62,'m.match(/^\\s*(([-+]?(\\.\\',997,')) ?/);',899,'0].length;',105,'k[1].',1001,749,'dimension or its units for "+l)},GetUpTo',72,'n,o){while',891,121,'this.i,l,q,p=0;',82,'){l=this.i;q=',84,'++);',606,'q){case"\\\\":q+=',117,'();',608,'"{":p',932,'p==0',914,960,' "+o)}p--;break}if(p==0&&q==o',112,210,'m,l)}}',192,968,' "+o+" for "+n)},ParseArg',72,'k',112,472,352,'k),',163,').mml()},',686,72,'k,l',112,472,459,'k,l),',163,1049,700,72,'q,s){var p={',338,':f};if(s!=null){p.',340,'=s}if(',163,164,'p.',166,'=',163,169,'if(!q.match(/\\$|\\\\\\(/)){return[this.','InternalText','(q,p)]}var o=0,l=0,r,n="";var m=[];while(o<q',782,'r=q.charAt(o++);if(r','==="$"){if(n==="$"){','m.push(i.TeXAtom(d.Parse(q.slice(l,o-','1',')).mml().With(p)));n="";l=o','}',86,'l<o-1','){m.push(this.InternalText(q.slice(l',',o-1),p))}n="$";l=o}}',86,'r','==="\\\\"){',1077,'==="("&&n==""){if(l<o-2',1085,',o-2),p))}n=")";l=o}',86,'r===")"&&n===")"){',1079,'2',1081,'}}}}}if(n!==""){',192,'Math not terminated in text box")}if(l<q.length',1085,'),p))}',105,'m},',1074,72,327,'l=l',883,'+/,h).replace(/\\s+$/,h);',105,235,'l)).With(k)},',738,72,327,'var o="";var n="";var p;',121,'0;while(m<k',782,'p=k.charAt(m++);if(p',1089,'o+=p+k.charAt(m++)}',86,'p==="#"){',1122,'==="#"){o+=p}else{if(!p.match(/[1-9]/)||p>l',782,192,'Illegal ',303,'reference")}n=',741,741,'n,o),l[p-1]);o=""}}else{o+=p}}}',105,741,'n,o)},AddArgs',72,327,'if(k.match(/^[a-z]/i)&&l.match(/(^|[^\\\\])(\\\\\\\\)*\\\\[a-z]+$/i)){l+=" "}',105,'l+k}});d.Augment({Stack:e,Parse:a,Definitions:g,Startup:j,Translate',72,'k){var l,n=k.innerHTML',883,'+/,"").replace(/\\s+$/,"");if(',728,'Browser.isKonqueror){n=n.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}var o=(k.type.replace(/\\n/g," ").match(/(;|\\s|\\n)mode\\s*=\\s*display(;|\\s|\\n|$)/)!=null);n=d.','prefilterMath','(n,o,k);try{l=',472,'n).mml()}catch(m){if(!m.texError){throw m}l=this.formatError(m,n,o,k)}if(l.inferred){l=i.apply(MathJax.ElementJax,l.data)}else{l=i(l)}if(o){l.root.display="block"}',105,'l},',1151,72,'l,m,k',112,'l.replace(/([_^]\\s*\\d)(\\d)/g,"$1 $2")},formatError',72,'m,l,n,k',112,'i.merror(m.message.replace(/\\n.*/,""))},Error',72,'k){throw ',728,'Insert(Error(k),{texError:c})},Macro',72,720,119,']=["Macro"].concat([].slice.call(arguments,1))}});d.loadComplete("jax.js")})(MathJax.InputJax.TeX);']
|
18
|
+
]);
|
1649
19
|
|
1650
|
-
TEX.loadComplete("jax.js");
|
1651
|
-
|
1652
|
-
})(MathJax.InputJax.TeX);
|