Great! I already found the variable that defines the space to add before an exponent and recompiled and it works great now. It would also be nice if variables were displays in a maths font (or at least in italics). Looks like you've done quite a bit of the rendering work from scratch though so maybe this is more difficult.