diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-01-19 15:05:19 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2018-01-19 15:05:19 +0100 |
commit | 35a569ef13b42755e7469cf93d3e4982e12252d6 (patch) | |
tree | 3560ae2eea74dccb3122b9d8c52de8b49629a97a /tex/context/modules/mkiv/m-matrix.mkiv | |
parent | 84591a31c39887dbf582df5d535f1de1a115fd62 (diff) | |
download | context-35a569ef13b42755e7469cf93d3e4982e12252d6.tar.gz |
2018-01-19 13:51:00
Diffstat (limited to 'tex/context/modules/mkiv/m-matrix.mkiv')
-rw-r--r-- | tex/context/modules/mkiv/m-matrix.mkiv | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tex/context/modules/mkiv/m-matrix.mkiv b/tex/context/modules/mkiv/m-matrix.mkiv index c5ace0b33..9cac69672 100644 --- a/tex/context/modules/mkiv/m-matrix.mkiv +++ b/tex/context/modules/mkiv/m-matrix.mkiv @@ -70,10 +70,16 @@ end -- todo: define a matrix at the tex end so that we have more control +-- local fences = { +-- parentheses = { left = "\\left(\\,", right = "\\,\\right)" }, +-- brackets = { left = "\\left[\\,", right = "\\,\\right]" }, +-- bars = { left = "\\left|\\,", right = "\\,\\right|" }, +-- } + local fences = { - parentheses = { left = "\\left(\\,", right = "\\,\\right)" }, - brackets = { left = "\\left[\\,", right = "\\,\\right]" }, - bars = { left = "\\left|\\,", right = "\\,\\right|" }, + parentheses = { "matrix:parentheses" }, + brackets = { "matrix:brackets" }, + bars = { "matrix:bars" }, } -- one can add more fences @@ -104,7 +110,7 @@ function matrix.typeset(m,options) elseif tonumber(template) then template = "%0." .. template .. "F" end - context.startmatrix(whatever) + context.startnamedmatrix(whatever) if type(m[1]) ~= "table" then m = { copy(m) } end @@ -121,7 +127,7 @@ function matrix.typeset(m,options) end context.NR() end - context.stopmatrix() + context.stopnamedmatrix() elseif m then context(m) end |