Merge branch 'issue743' into develop. Issue #743.
This commit is contained in:
commit
e66df30f25
|
@ -592,6 +592,14 @@ MathJax.Hub.Config({
|
||||||
//
|
//
|
||||||
fixphi: true,
|
fixphi: true,
|
||||||
|
|
||||||
|
//
|
||||||
|
// Determines whether the MathML should be marked so that the HTML-CSS
|
||||||
|
// and SVG output jax will use MathML spacing rules rather than TeX
|
||||||
|
// spacing rules. Since AsciiMath was designed for MathML output, the
|
||||||
|
// MathML rules are used by default.
|
||||||
|
//
|
||||||
|
useMathMLspacing: true,
|
||||||
|
|
||||||
//
|
//
|
||||||
// Determines whether limits are placed above and below operators,
|
// Determines whether limits are placed above and below operators,
|
||||||
// or next to them. (AsciiMath doesn't have separate in-line and
|
// or next to them. (AsciiMath doesn't have separate in-line and
|
||||||
|
|
|
@ -36,6 +36,7 @@ MathJax.InputJax.AsciiMath = MathJax.InputJax({
|
||||||
|
|
||||||
config: {
|
config: {
|
||||||
fixphi: true, // switch phi and varphi unicode values
|
fixphi: true, // switch phi and varphi unicode values
|
||||||
|
useMathMLspacing: true, // use MathML spacing rather than TeX spacing?
|
||||||
displaystyle: true, // put limits above and below operators
|
displaystyle: true, // put limits above and below operators
|
||||||
decimalsign: "." // can change to "," but watch out for "(1,2)"
|
decimalsign: "." // can change to "," but watch out for "(1,2)"
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,7 +160,11 @@
|
||||||
//
|
//
|
||||||
var document = {
|
var document = {
|
||||||
getElementById: true,
|
getElementById: true,
|
||||||
createElementNS: function (ns,type) {return MML[type]()},
|
createElementNS: function (ns,type) {
|
||||||
|
var node = MML[type]();
|
||||||
|
if (type === "mo" && ASCIIMATH.config.useMathMLspacing) {node.useMMLspacing = 0x80}
|
||||||
|
return node;
|
||||||
|
},
|
||||||
createTextNode: function (text) {return MML.chars(text).With({nodeValue:text})},
|
createTextNode: function (text) {return MML.chars(text).With({nodeValue:text})},
|
||||||
createDocumentFragment: function () {return DOCFRAG()}
|
createDocumentFragment: function () {return DOCFRAG()}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user