www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 549c2bf858cd9c20e760991b04a72db214e258dd
parent 6357a348283cd1d1f1054fe9dbff7d94600c7f0a
Author: Kevin Barabash <kevinb7@gmail.com>
Date:   Fri, 10 Jul 2015 09:52:49 -0600

Merge pull request #293 from gagern/matrices

Matrices should be of type ord
Diffstat:
Msrc/buildHTML.js | 7++++---
Msrc/symbols.js | 1+
Atest/screenshotter/images/ArrayType-firefox.png | 0
Mtest/screenshotter/ss_data.json | 1+
4 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/buildHTML.js b/src/buildHTML.js @@ -32,7 +32,8 @@ var buildExpression = function(expression, options, prev) { return groups; }; -// List of types used by getTypeOfGroup +// List of types used by getTypeOfGroup, +// see https://github.com/Khan/KaTeX/wiki/Examining-TeX#group-types var groupToType = { mathord: "mord", textord: "mord", @@ -43,7 +44,7 @@ var groupToType = { close: "mclose", inner: "minner", genfrac: "mord", - array: "minner", + array: "mord", spacing: "mord", punct: "mpunct", ordgroup: "mord", @@ -615,7 +616,7 @@ var groupTypes = { } } body = makeSpan(["mtable"], cols); - return makeSpan(["minner"], [body], options.getColor()); + return makeSpan(["mord"], [body], options.getColor()); }, spacing: function(group, options, prev) { diff --git a/src/symbols.js b/src/symbols.js @@ -7,6 +7,7 @@ normal font), or "ams" (the ams fonts). * - group (required): the ParseNode group type the symbol should have (i.e. "textord", "mathord", etc). + See https://github.com/Khan/KaTeX/wiki/Examining-TeX#group-types * - replace (optional): the character that this symbol or function should be * replaced with (i.e. "\phi" has a replace value of "\u03d5", the phi * character in the main font). diff --git a/test/screenshotter/images/ArrayType-firefox.png b/test/screenshotter/images/ArrayType-firefox.png Binary files differ. diff --git a/test/screenshotter/ss_data.json b/test/screenshotter/ss_data.json @@ -1,6 +1,7 @@ { "Accents": "http://localhost:7936/test/screenshotter/test.html?m=\\vec{A}\\vec{x}\\vec x^2\\vec{x}_2^2\\vec{A}^2\\vec{xA}^2", "Arrays": "http://localhost:7936/test/screenshotter/test.html?m=\\left(\\begin{array}{rlc}1%262%263\\\\1+1%262+1%263+1\\cr1\\over2%26\\scriptstyle 1/2%26\\frac12\\\\[1ex]\\begin{pmatrix}x\\\\y\\end{pmatrix}%260%26\\begin{vmatrix}a%26b\\\\c%26d\\end{vmatrix}\\end{array}\\right]", + "ArrayType": "http://localhost:7936/test/screenshotter/test.html?m=1\\begin{array}{c}2\\\\3\\end{array}4", "Baseline": "http://localhost:7936/test/screenshotter/test.html?m=a+b-c\\cdot d/e", "BasicTest": "http://localhost:7936/test/screenshotter/test.html?m=a", "BinomTest": "http://localhost:7936/test/screenshotter/test.html?m=\\dbinom{a}{b}\\tbinom{a}{b}^{\\binom{a}{b}+17}",