From 061fe3488b011110485cb6cacc1f4cc01bab4446 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sun, 27 Apr 2014 09:02:01 -0400 Subject: [PATCH] Fix \enclose{}[arrow=1]{} to add updiagonalarrow. --- unpacked/extensions/TeX/enclose.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unpacked/extensions/TeX/enclose.js b/unpacked/extensions/TeX/enclose.js index 2c80489f1..0e6c48311 100644 --- a/unpacked/extensions/TeX/enclose.js +++ b/unpacked/extensions/TeX/enclose.js @@ -74,7 +74,9 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { keyvalue[1] = keyvalue[1].replace(/^"(.*)"$/,"$1"); if (keyvalue[1] === "true") {keyvalue[1] = true} if (keyvalue[1] === "false") {keyvalue[1] = false} - def[keyvalue[0]] = keyvalue[1]; + if (keyvalue[0] === "arrow" && keyvalue[1]) + {def.notation = def.notation + " updiagonalarrow"} else + {def[keyvalue[0]] = keyvalue[1]} } } }