Skinning up.

 
 
 
 
 
 
20Mar2004
 
 
 
 
 
 

Well, I've more or less finished munging the old website style into a skin for Drupal, and it's looking pretty good. Still need to check its valid XHTML, but it should not be far off.

As well as recreating the old style, I've made a number of new editions - perhaps the funkiest of which is the integration of the ASCIIMathML JavaScript library, which allows me to type in LaTeX-style maths such as this:

'sum_(i=1)^n i=(n(n+1))/2'

and get your browser to translate it into MathML like this:

`sum_(i=1)^n i=(n(n+1))/2`

If it didn't work, read on to find out how to fix it.

Note that to render the MathML correctly you need a browser that can cope with it, such as Firefox, Mozilla/Netscape 7, or if you are stuck with aging technology, Internet Explorer 6 plus MathPlayer. The transformation occurs just after the document has loaded, so if you look closely you'll see the LaTeX-to-MathML transformation occuring.

 
 
 
 
 
 
 
 
 
 
 
 
 
 

Except...

andy's picture

The only problem is that it uses the \$ as the delimiter, which messes thing up when it's being used to mean Dollars. May have to hack the script.

andy – Thu, 15/04/2004 – 1:03pm
 
 
 
 
 
 
 
 
 
 
 
 

Fixed it!

andy's picture

Now uses \$\$ instead of $ as the delimeter, and no annoying popups on older browsers.

andy – Tue, 25/05/2004 – 12:05pm