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