katex 0.16.12 → 0.16.14
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 +3 -3
- package/contrib/copy-tex/README.md +2 -2
- package/contrib/mathtex-script-type/README.md +5 -5
- package/contrib/mhchem/README.md +1 -1
- package/dist/README.md +3 -3
- package/dist/katex.css +1 -1
- package/dist/katex.js +13 -5
- package/dist/katex.min.css +1 -1
- package/dist/katex.min.js +1 -1
- package/dist/katex.mjs +13 -5
- package/package.json +1 -1
- package/src/functions/rule.js +2 -0
- package/src/macros.js +7 -1
- package/src/symbols.js +3 -1
package/dist/katex.mjs
CHANGED
|
@@ -5038,9 +5038,10 @@ defineSymbol(math, main, inner, "\u2026", "\\mathellipsis");
|
|
|
5038
5038
|
defineSymbol(text, main, inner, "\u2026", "\\ldots", true);
|
|
5039
5039
|
defineSymbol(math, main, inner, "\u2026", "\\ldots", true);
|
|
5040
5040
|
defineSymbol(math, main, inner, "\u22ef", "\\@cdots", true);
|
|
5041
|
-
defineSymbol(math, main, inner, "\u22f1", "\\ddots", true);
|
|
5042
|
-
defineSymbol(math, main, textord, "\u22ee", "\\varvdots"); // \vdots is a macro
|
|
5041
|
+
defineSymbol(math, main, inner, "\u22f1", "\\ddots", true); // \vdots is a macro that uses one of these two symbols (with made-up names):
|
|
5043
5042
|
|
|
5043
|
+
defineSymbol(math, main, textord, "\u22ee", "\\varvdots");
|
|
5044
|
+
defineSymbol(text, main, textord, "\u22ee", "\\varvdots");
|
|
5044
5045
|
defineSymbol(math, main, accent, "\u02ca", "\\acute");
|
|
5045
5046
|
defineSymbol(math, main, accent, "\u02cb", "\\grave");
|
|
5046
5047
|
defineSymbol(math, main, accent, "\u00a8", "\\ddot");
|
|
@@ -13810,6 +13811,8 @@ defineFunction({
|
|
|
13810
13811
|
props: {
|
|
13811
13812
|
numArgs: 2,
|
|
13812
13813
|
numOptionalArgs: 1,
|
|
13814
|
+
allowedInText: true,
|
|
13815
|
+
allowedInMath: true,
|
|
13813
13816
|
argTypes: ["size", "size", "size"]
|
|
13814
13817
|
},
|
|
13815
13818
|
|
|
@@ -15494,7 +15497,7 @@ defineMacro("\\lrcorner", "\\html@mathml{\\@lrcorner}{\\mathop{\\char\"231f}}");
|
|
|
15494
15497
|
// We'll call \varvdots, which gets a glyph from symbols.js.
|
|
15495
15498
|
// The zero-width rule gets us an equivalent to the vertical 6pt kern.
|
|
15496
15499
|
|
|
15497
|
-
defineMacro("\\vdots", "
|
|
15500
|
+
defineMacro("\\vdots", "{\\varvdots\\rule{0pt}{15pt}}");
|
|
15498
15501
|
defineMacro("\u22ee", "\\vdots"); //////////////////////////////////////////////////////////////////////
|
|
15499
15502
|
// amsmath.sty
|
|
15500
15503
|
// http://mirrors.concertpass.com/tex-archive/macros/latex/required/amsmath/amsmath.pdf
|
|
@@ -15524,7 +15527,12 @@ defineMacro("\\boxed", "\\fbox{$\\displaystyle{#1}$}"); // \def\iff{\DOTSB\;\Lon
|
|
|
15524
15527
|
|
|
15525
15528
|
defineMacro("\\iff", "\\DOTSB\\;\\Longleftrightarrow\\;");
|
|
15526
15529
|
defineMacro("\\implies", "\\DOTSB\\;\\Longrightarrow\\;");
|
|
15527
|
-
defineMacro("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;"); //
|
|
15530
|
+
defineMacro("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;"); // \def\dddot#1{{\mathop{#1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@
|
|
15531
|
+
// \hbox{\normalfont ...}\vss}}}}
|
|
15532
|
+
// We use \overset which avoids the vertical shift of \mathop.
|
|
15533
|
+
|
|
15534
|
+
defineMacro("\\dddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");
|
|
15535
|
+
defineMacro("\\ddddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}"); // AMSMath's automatic \dots, based on \mdots@@ macro.
|
|
15528
15536
|
|
|
15529
15537
|
var dotsByToken = {
|
|
15530
15538
|
',': '\\dotsc',
|
|
@@ -18361,7 +18369,7 @@ var katex = {
|
|
|
18361
18369
|
/**
|
|
18362
18370
|
* Current KaTeX version
|
|
18363
18371
|
*/
|
|
18364
|
-
version: "0.16.
|
|
18372
|
+
version: "0.16.14",
|
|
18365
18373
|
|
|
18366
18374
|
/**
|
|
18367
18375
|
* Renders the given LaTeX into an HTML+MathML combination, and adds
|
package/package.json
CHANGED
package/src/functions/rule.js
CHANGED
package/src/macros.js
CHANGED
|
@@ -341,7 +341,7 @@ defineMacro("\\lrcorner", "\\html@mathml{\\@lrcorner}{\\mathop{\\char\"231f}}");
|
|
|
341
341
|
// \kern6\p@\hbox{.}\hbox{.}\hbox{.}}}
|
|
342
342
|
// We'll call \varvdots, which gets a glyph from symbols.js.
|
|
343
343
|
// The zero-width rule gets us an equivalent to the vertical 6pt kern.
|
|
344
|
-
defineMacro("\\vdots", "
|
|
344
|
+
defineMacro("\\vdots", "{\\varvdots\\rule{0pt}{15pt}}");
|
|
345
345
|
defineMacro("\u22ee", "\\vdots");
|
|
346
346
|
|
|
347
347
|
//////////////////////////////////////////////////////////////////////
|
|
@@ -380,6 +380,12 @@ defineMacro("\\iff", "\\DOTSB\\;\\Longleftrightarrow\\;");
|
|
|
380
380
|
defineMacro("\\implies", "\\DOTSB\\;\\Longrightarrow\\;");
|
|
381
381
|
defineMacro("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;");
|
|
382
382
|
|
|
383
|
+
// \def\dddot#1{{\mathop{#1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@
|
|
384
|
+
// \hbox{\normalfont ...}\vss}}}}
|
|
385
|
+
// We use \overset which avoids the vertical shift of \mathop.
|
|
386
|
+
defineMacro("\\dddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");
|
|
387
|
+
defineMacro("\\ddddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");
|
|
388
|
+
|
|
383
389
|
// AMSMath's automatic \dots, based on \mdots@@ macro.
|
|
384
390
|
const dotsByToken = {
|
|
385
391
|
',': '\\dotsc',
|
package/src/symbols.js
CHANGED
|
@@ -673,7 +673,9 @@ defineSymbol(text, main, inner, "\u2026", "\\ldots", true);
|
|
|
673
673
|
defineSymbol(math, main, inner, "\u2026", "\\ldots", true);
|
|
674
674
|
defineSymbol(math, main, inner, "\u22ef", "\\@cdots", true);
|
|
675
675
|
defineSymbol(math, main, inner, "\u22f1", "\\ddots", true);
|
|
676
|
-
|
|
676
|
+
// \vdots is a macro that uses one of these two symbols (with made-up names):
|
|
677
|
+
defineSymbol(math, main, textord, "\u22ee", "\\varvdots");
|
|
678
|
+
defineSymbol(text, main, textord, "\u22ee", "\\varvdots");
|
|
677
679
|
defineSymbol(math, main, accent, "\u02ca", "\\acute");
|
|
678
680
|
defineSymbol(math, main, accent, "\u02cb", "\\grave");
|
|
679
681
|
defineSymbol(math, main, accent, "\u00a8", "\\ddot");
|