diff --git a/buildTree.js b/buildTree.js index 2cc8441b6..372283f51 100644 --- a/buildTree.js +++ b/buildTree.js @@ -47,7 +47,7 @@ var groupToType = { textord: "mord", bin: "mbin", rel: "mrel", - amsrel: "mrel", + text: "mord", open: "mopen", close: "mclose", frac: "minner", @@ -55,20 +55,21 @@ var groupToType = { punct: "mpunct", ordgroup: "mord", namedfn: "mop", - katex: "mord", - text: "mord", + katex: "mord" }; var getTypeOfGroup = function(group) { if (group == null) { // Like when typesetting $^3$ - return groupToType.ord; + return groupToType.mathord; } else if (group.type === "supsub") { return getTypeOfGroup(group.value.base); } else if (group.type === "llap" || group.type === "rlap") { return getTypeOfGroup(group.value); } else if (group.type === "color") { return getTypeOfGroup(group.value.value); + } else if (group.type === "sizing") { + return getTypeOfGroup(group.value.value); } else { return groupToType[group.type]; } diff --git a/test/huxley/Huxleyfile b/test/huxley/Huxleyfile index 1d339e613..f486316a1 100644 --- a/test/huxley/Huxleyfile +++ b/test/huxley/Huxleyfile @@ -20,7 +20,7 @@ url=http://localhost:7936/test/huxley/test.html?m=\alpha\beta\gamma\omega url=http://localhost:7936/test/huxley/test.html?m=a+b-c\cdot d/e [Spacing] -url=http://localhost:7936/test/huxley/test.html?m=[-1][1-1]1%%3D1(%%3D1)\lvert a\rvert~b +url=http://localhost:7936/test/huxley/test.html?m=^3+[-1][1-1]1%%3D1(%%3D1)\lvert a\rvert~b [Functions] url=http://localhost:7936/test/huxley/test.html?m=\sin\cos\tan\ln\log diff --git a/test/huxley/Spacing.huxley/screenshot0.png b/test/huxley/Spacing.huxley/screenshot0.png index 27ce66acc..7ff385344 100644 Binary files a/test/huxley/Spacing.huxley/screenshot0.png and b/test/huxley/Spacing.huxley/screenshot0.png differ