temml 0.13.5 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/temml.cjs +10 -57
- package/dist/temml.js +10 -57
- package/dist/temml.min.js +1 -1
- package/dist/temml.mjs +10 -57
- package/dist/temmlPostProcess.js +1 -1
- package/package.json +2 -2
- package/src/functions/symbolsOp.js +5 -0
- package/src/macros.js +1 -55
- package/src/postProcess.js +1 -1
- package/src/symbols.js +3 -1
package/README.md
CHANGED
package/dist/temml.cjs
CHANGED
|
@@ -1805,9 +1805,11 @@ defineSymbol(math, op, "\u222b", "\\smallint");
|
|
|
1805
1805
|
defineSymbol(text, inner, "\u2026", "\\textellipsis");
|
|
1806
1806
|
defineSymbol(math, inner, "\u2026", "\\mathellipsis");
|
|
1807
1807
|
defineSymbol(text, inner, "\u2026", "\\ldots", true);
|
|
1808
|
+
defineSymbol(math, inner, "\u2026", "\\dotso");
|
|
1809
|
+
defineSymbol(math, inner, "\u2026", "\\dotsc");
|
|
1808
1810
|
defineSymbol(math, inner, "\u2026", "\\ldots", true);
|
|
1809
1811
|
defineSymbol(math, inner, "\u22f0", "\\iddots", true);
|
|
1810
|
-
defineSymbol(math, inner, "\u22ef", "
|
|
1812
|
+
defineSymbol(math, inner, "\u22ef", "\\cdots", true);
|
|
1811
1813
|
defineSymbol(math, inner, "\u22f1", "\\ddots", true);
|
|
1812
1814
|
defineSymbol(math, textord, "\u22ee", "\\varvdots"); // \vdots is a macro
|
|
1813
1815
|
defineSymbol(text, textord, "\u22ee", "\\varvdots");
|
|
@@ -3942,60 +3944,6 @@ defineMacro("\\dots", function(context) {
|
|
|
3942
3944
|
return thedots;
|
|
3943
3945
|
});
|
|
3944
3946
|
|
|
3945
|
-
const spaceAfterDots = {
|
|
3946
|
-
// \rightdelim@ checks for the following:
|
|
3947
|
-
")": true,
|
|
3948
|
-
"]": true,
|
|
3949
|
-
"\\rbrack": true,
|
|
3950
|
-
"\\}": true,
|
|
3951
|
-
"\\rbrace": true,
|
|
3952
|
-
"\\rangle": true,
|
|
3953
|
-
"\\rceil": true,
|
|
3954
|
-
"\\rfloor": true,
|
|
3955
|
-
"\\rgroup": true,
|
|
3956
|
-
"\\rmoustache": true,
|
|
3957
|
-
"\\right": true,
|
|
3958
|
-
"\\bigr": true,
|
|
3959
|
-
"\\biggr": true,
|
|
3960
|
-
"\\Bigr": true,
|
|
3961
|
-
"\\Biggr": true,
|
|
3962
|
-
// \extra@ also tests for the following:
|
|
3963
|
-
$: true,
|
|
3964
|
-
// \extrap@ checks for the following:
|
|
3965
|
-
";": true,
|
|
3966
|
-
".": true,
|
|
3967
|
-
",": true
|
|
3968
|
-
};
|
|
3969
|
-
|
|
3970
|
-
defineMacro("\\dotso", function(context) {
|
|
3971
|
-
const next = context.future().text;
|
|
3972
|
-
if (next in spaceAfterDots) {
|
|
3973
|
-
return "\\ldots\\,";
|
|
3974
|
-
} else {
|
|
3975
|
-
return "\\ldots";
|
|
3976
|
-
}
|
|
3977
|
-
});
|
|
3978
|
-
|
|
3979
|
-
defineMacro("\\dotsc", function(context) {
|
|
3980
|
-
const next = context.future().text;
|
|
3981
|
-
// \dotsc uses \extra@ but not \extrap@, instead specially checking for
|
|
3982
|
-
// ';' and '.', but doesn't check for ','.
|
|
3983
|
-
if (next in spaceAfterDots && next !== ",") {
|
|
3984
|
-
return "\\ldots\\,";
|
|
3985
|
-
} else {
|
|
3986
|
-
return "\\ldots";
|
|
3987
|
-
}
|
|
3988
|
-
});
|
|
3989
|
-
|
|
3990
|
-
defineMacro("\\cdots", function(context) {
|
|
3991
|
-
const next = context.future().text;
|
|
3992
|
-
if (next in spaceAfterDots) {
|
|
3993
|
-
return "\\@cdots\\,";
|
|
3994
|
-
} else {
|
|
3995
|
-
return "\\@cdots";
|
|
3996
|
-
}
|
|
3997
|
-
});
|
|
3998
|
-
|
|
3999
3947
|
defineMacro("\\dotsb", "\\cdots");
|
|
4000
3948
|
defineMacro("\\dotsm", "\\cdots");
|
|
4001
3949
|
defineMacro("\\dotsi", "\\!\\cdots");
|
|
@@ -4125,7 +4073,7 @@ defineMacro("\\colon", `\\mathpunct{\\char"3a}`);
|
|
|
4125
4073
|
//////////////////////////////////////////////////////////////////////
|
|
4126
4074
|
// mathtools.sty
|
|
4127
4075
|
|
|
4128
|
-
defineMacro("\\prescript", "\\pres@cript{
|
|
4076
|
+
defineMacro("\\prescript", "\\pres@cript{^{#1}_{#2}}{}{#3}");
|
|
4129
4077
|
|
|
4130
4078
|
//\providecommand\ordinarycolon{:}
|
|
4131
4079
|
defineMacro("\\ordinarycolon", `\\char"3a`);
|
|
@@ -11483,6 +11431,11 @@ const isArrow = str => {
|
|
|
11483
11431
|
defineFunctionBuilders({
|
|
11484
11432
|
type: "atom",
|
|
11485
11433
|
mathmlBuilder(group, style) {
|
|
11434
|
+
if (group.family === "inner") {
|
|
11435
|
+
// Give \dots ORD spacing, not OP spacing.
|
|
11436
|
+
const tag = group.mode === "text" ? "mtext" : "mi";
|
|
11437
|
+
return new MathNode(tag, [makeText(group.text, group.mode)])
|
|
11438
|
+
}
|
|
11486
11439
|
const node = new MathNode("mo", [makeText(group.text, group.mode)]);
|
|
11487
11440
|
if (group.family === "punct") {
|
|
11488
11441
|
node.setAttribute("separator", "true");
|
|
@@ -14246,7 +14199,7 @@ class Style {
|
|
|
14246
14199
|
* https://mit-license.org/
|
|
14247
14200
|
*/
|
|
14248
14201
|
|
|
14249
|
-
const version = "0.
|
|
14202
|
+
const version = "0.14.0";
|
|
14250
14203
|
|
|
14251
14204
|
function postProcess(block) {
|
|
14252
14205
|
const labelMap = {};
|
package/dist/temml.js
CHANGED
|
@@ -1806,9 +1806,11 @@ var temml = (function () {
|
|
|
1806
1806
|
defineSymbol(text, inner, "\u2026", "\\textellipsis");
|
|
1807
1807
|
defineSymbol(math, inner, "\u2026", "\\mathellipsis");
|
|
1808
1808
|
defineSymbol(text, inner, "\u2026", "\\ldots", true);
|
|
1809
|
+
defineSymbol(math, inner, "\u2026", "\\dotso");
|
|
1810
|
+
defineSymbol(math, inner, "\u2026", "\\dotsc");
|
|
1809
1811
|
defineSymbol(math, inner, "\u2026", "\\ldots", true);
|
|
1810
1812
|
defineSymbol(math, inner, "\u22f0", "\\iddots", true);
|
|
1811
|
-
defineSymbol(math, inner, "\u22ef", "
|
|
1813
|
+
defineSymbol(math, inner, "\u22ef", "\\cdots", true);
|
|
1812
1814
|
defineSymbol(math, inner, "\u22f1", "\\ddots", true);
|
|
1813
1815
|
defineSymbol(math, textord, "\u22ee", "\\varvdots"); // \vdots is a macro
|
|
1814
1816
|
defineSymbol(text, textord, "\u22ee", "\\varvdots");
|
|
@@ -3943,60 +3945,6 @@ var temml = (function () {
|
|
|
3943
3945
|
return thedots;
|
|
3944
3946
|
});
|
|
3945
3947
|
|
|
3946
|
-
const spaceAfterDots = {
|
|
3947
|
-
// \rightdelim@ checks for the following:
|
|
3948
|
-
")": true,
|
|
3949
|
-
"]": true,
|
|
3950
|
-
"\\rbrack": true,
|
|
3951
|
-
"\\}": true,
|
|
3952
|
-
"\\rbrace": true,
|
|
3953
|
-
"\\rangle": true,
|
|
3954
|
-
"\\rceil": true,
|
|
3955
|
-
"\\rfloor": true,
|
|
3956
|
-
"\\rgroup": true,
|
|
3957
|
-
"\\rmoustache": true,
|
|
3958
|
-
"\\right": true,
|
|
3959
|
-
"\\bigr": true,
|
|
3960
|
-
"\\biggr": true,
|
|
3961
|
-
"\\Bigr": true,
|
|
3962
|
-
"\\Biggr": true,
|
|
3963
|
-
// \extra@ also tests for the following:
|
|
3964
|
-
$: true,
|
|
3965
|
-
// \extrap@ checks for the following:
|
|
3966
|
-
";": true,
|
|
3967
|
-
".": true,
|
|
3968
|
-
",": true
|
|
3969
|
-
};
|
|
3970
|
-
|
|
3971
|
-
defineMacro("\\dotso", function(context) {
|
|
3972
|
-
const next = context.future().text;
|
|
3973
|
-
if (next in spaceAfterDots) {
|
|
3974
|
-
return "\\ldots\\,";
|
|
3975
|
-
} else {
|
|
3976
|
-
return "\\ldots";
|
|
3977
|
-
}
|
|
3978
|
-
});
|
|
3979
|
-
|
|
3980
|
-
defineMacro("\\dotsc", function(context) {
|
|
3981
|
-
const next = context.future().text;
|
|
3982
|
-
// \dotsc uses \extra@ but not \extrap@, instead specially checking for
|
|
3983
|
-
// ';' and '.', but doesn't check for ','.
|
|
3984
|
-
if (next in spaceAfterDots && next !== ",") {
|
|
3985
|
-
return "\\ldots\\,";
|
|
3986
|
-
} else {
|
|
3987
|
-
return "\\ldots";
|
|
3988
|
-
}
|
|
3989
|
-
});
|
|
3990
|
-
|
|
3991
|
-
defineMacro("\\cdots", function(context) {
|
|
3992
|
-
const next = context.future().text;
|
|
3993
|
-
if (next in spaceAfterDots) {
|
|
3994
|
-
return "\\@cdots\\,";
|
|
3995
|
-
} else {
|
|
3996
|
-
return "\\@cdots";
|
|
3997
|
-
}
|
|
3998
|
-
});
|
|
3999
|
-
|
|
4000
3948
|
defineMacro("\\dotsb", "\\cdots");
|
|
4001
3949
|
defineMacro("\\dotsm", "\\cdots");
|
|
4002
3950
|
defineMacro("\\dotsi", "\\!\\cdots");
|
|
@@ -4126,7 +4074,7 @@ var temml = (function () {
|
|
|
4126
4074
|
//////////////////////////////////////////////////////////////////////
|
|
4127
4075
|
// mathtools.sty
|
|
4128
4076
|
|
|
4129
|
-
defineMacro("\\prescript", "\\pres@cript{
|
|
4077
|
+
defineMacro("\\prescript", "\\pres@cript{^{#1}_{#2}}{}{#3}");
|
|
4130
4078
|
|
|
4131
4079
|
//\providecommand\ordinarycolon{:}
|
|
4132
4080
|
defineMacro("\\ordinarycolon", `\\char"3a`);
|
|
@@ -9570,6 +9518,11 @@ var temml = (function () {
|
|
|
9570
9518
|
defineFunctionBuilders({
|
|
9571
9519
|
type: "atom",
|
|
9572
9520
|
mathmlBuilder(group, style) {
|
|
9521
|
+
if (group.family === "inner") {
|
|
9522
|
+
// Give \dots ORD spacing, not OP spacing.
|
|
9523
|
+
const tag = group.mode === "text" ? "mtext" : "mi";
|
|
9524
|
+
return new MathNode(tag, [makeText(group.text, group.mode)])
|
|
9525
|
+
}
|
|
9573
9526
|
const node = new MathNode("mo", [makeText(group.text, group.mode)]);
|
|
9574
9527
|
if (group.family === "punct") {
|
|
9575
9528
|
node.setAttribute("separator", "true");
|
|
@@ -12333,7 +12286,7 @@ var temml = (function () {
|
|
|
12333
12286
|
* https://mit-license.org/
|
|
12334
12287
|
*/
|
|
12335
12288
|
|
|
12336
|
-
const version = "0.
|
|
12289
|
+
const version = "0.14.0";
|
|
12337
12290
|
|
|
12338
12291
|
function postProcess(block) {
|
|
12339
12292
|
const labelMap = {};
|