Reindent environments

Since the previous commit deliberately avoided reindenting, this one here
does just that: reindenting the existing code.
This commit is contained in:
Martin von Gagern 2015-09-10 11:18:11 +02:00
parent 2a31a719ec
commit dae3a14744

View File

@ -81,11 +81,11 @@ function defineEnvironment(names, props, handler) {
} }
} }
// Arrays are part of LaTeX, defined in lttab.dtx so its documentation // Arrays are part of LaTeX, defined in lttab.dtx so its documentation
// is part of the source2e.pdf file of LaTeX2e source documentation. // is part of the source2e.pdf file of LaTeX2e source documentation.
defineEnvironment("array", { defineEnvironment("array", {
numArgs: 1 numArgs: 1
}, function(pos, mode, envName, colalign, positions) { }, function(pos, mode, envName, colalign, positions) {
var parser = this; var parser = this;
colalign = colalign.value.map ? colalign.value : [colalign]; colalign = colalign.value.map ? colalign.value : [colalign];
var cols = colalign.map(function(node) { var cols = colalign.map(function(node) {
@ -112,19 +112,19 @@ function defineEnvironment(names, props, handler) {
}; };
res = parseArray(parser, pos, mode, res); res = parseArray(parser, pos, mode, res);
return res; return res;
}); });
// The matrix environments of amsmath builds on the array environment // The matrix environments of amsmath builds on the array environment
// of LaTeX, which is discussed above. // of LaTeX, which is discussed above.
defineEnvironment([ defineEnvironment([
"matrix", "matrix",
"pmatrix", "pmatrix",
"bmatrix", "bmatrix",
"Bmatrix", "Bmatrix",
"vmatrix", "vmatrix",
"Vmatrix" "Vmatrix"
], { ], {
}, function(pos, mode, envName) { }, function(pos, mode, envName) {
var delimiters = { var delimiters = {
"matrix": null, "matrix": null,
"pmatrix": ["(", ")"], "pmatrix": ["(", ")"],
@ -146,13 +146,13 @@ function defineEnvironment(names, props, handler) {
}, mode); }, mode);
} }
return res; return res;
}); });
// A cases environment (in amsmath.sty) is almost equivalent to // A cases environment (in amsmath.sty) is almost equivalent to
// \def\arraystretch{1.2}% // \def\arraystretch{1.2}%
// \left\{\begin{array}{@{}l@{\quad}l@{}} … \end{array}\right. // \left\{\begin{array}{@{}l@{\quad}l@{}} … \end{array}\right.
defineEnvironment("cases", { defineEnvironment("cases", {
}, function(pos, mode, envName) { }, function(pos, mode, envName) {
var res = { var res = {
type: "array", type: "array",
arraystretch: 1.2, arraystretch: 1.2,
@ -175,4 +175,4 @@ function defineEnvironment(names, props, handler) {
right: "." right: "."
}, mode); }, mode);
return res; return res;
}); });