Difference between revisions of "Working with MediaWiki"

From stacky wiki
Jump to: navigation, search
(Created page with "== Getting MathJax Working == I got MathJax: <code>git clone git://github.com/mathjax/MathJax.git MathJax</code> I installed the JavaScript extension[http://www.mediawiki.org/w...")
 
Line 1: Line 1:
 +
Edit sidebar by visiting the [[Mediawiki:Sidebar]] page.
 +
 
== Getting MathJax Working ==
 
== Getting MathJax Working ==
  

Revision as of 17:14, 24 September 2011

Edit sidebar by visiting the Mediawiki:Sidebar page.

Getting MathJax Working

I got MathJax: git clone git://github.com/mathjax/MathJax.git MathJax

I installed the JavaScript extension[1] for MediaWiki.

I added a file mathjax.js (name doesn't matter) to extensions/JavaScript. It's content:

var e = document.createElement('script');
e.type = "text/javascript";
e.src = "http://stacky.net/MathJax/MathJax.js?config=MOconfig";
document.getElementsByTagName('head')[0].appendChild(e);

(I copied the MathJax configuration file used at MO)

(Not) Getting Blahtex Working

It'd be much nicer to get MediaWiki to serve MathML and use MathJax to convert only if it has to, but I haven't been able to get Blahtex[2] to compile. I've been trying to follow the instructions here [3]. I'm able to checkout blahtex and to get texvc working, but if I try make or make linux, I get

g++ -O3   -c -o source/main.o source/main.cpp
source/main.cpp: In function ‘void ShowUsage()’:
source/main.cpp:108: error: ‘exit’ was not declared in this scope
make: *** [source/main.o] Error 1