commit d00caf6ed77075e19dee96708bb2897b6ee37fbb
parent a06744e9411a4ae7527bce5f523fb592a5fe8fa6
Author: Emily Eisenberg <xymostech@gmail.com>
Date: Wed, 8 Jul 2015 17:01:08 -0700
Merge pull request #298 from gagern/Bmatrix
Implement Bmatrix environment
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/environments.js b/src/environments.js
@@ -91,12 +91,20 @@ var environmentDefinitions = [
// The matrix environments of amsmath builds on the array environment
// of LaTeX, which is discussed above.
{
- names: ["matrix", "pmatrix", "bmatrix", "vmatrix", "Vmatrix"],
+ names: [
+ "matrix",
+ "pmatrix",
+ "bmatrix",
+ "Bmatrix",
+ "vmatrix",
+ "Vmatrix"
+ ],
handler: function(pos, mode, envName) {
var delimiters = {
"matrix": null,
"pmatrix": ["(", ")"],
"bmatrix": ["[", "]"],
+ "Bmatrix": ["\\{", "\\}"],
"vmatrix": ["|", "|"],
"Vmatrix": ["\\Vert", "\\Vert"]
}[envName];