www

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

commit ec3cbb86567bc489068e4dc46ccb1f20b0b1b4d9
parent a06744e9411a4ae7527bce5f523fb592a5fe8fa6
Author: Martin von Gagern <gagern@ma.tum.de>
Date:   Wed,  8 Jul 2015 22:47:22 +0200

Implement Bmatrix environment

Diffstat:
Msrc/environments.js | 10+++++++++-
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];