katex 0.16.13 → 0.16.15

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/dist/katex.mjs CHANGED
@@ -5960,6 +5960,10 @@ var fontMap = {
5960
5960
  variant: "italic",
5961
5961
  fontName: "Math-Italic"
5962
5962
  },
5963
+ "mathsfit": {
5964
+ variant: "sans-serif-italic",
5965
+ fontName: "SansSerif-Italic"
5966
+ },
5963
5967
  // "boldsymbol" is missing because they require the use of multiple fonts:
5964
5968
  // Math-BoldItalic and Main-Bold. This is handled by a special case in
5965
5969
  // makeOrd which ends up calling boldsymbol.
@@ -6912,6 +6916,8 @@ var getVariant = function getVariant(group, options) {
6912
6916
  return "bold";
6913
6917
  } else if (font === "mathbb") {
6914
6918
  return "double-struck";
6919
+ } else if (font === "mathsfit") {
6920
+ return "sans-serif-italic";
6915
6921
  } else if (font === "mathfrak") {
6916
6922
  return "fraktur";
6917
6923
  } else if (font === "mathscr" || font === "mathcal") {
@@ -11556,7 +11562,7 @@ var fontAliases = {
11556
11562
  defineFunction({
11557
11563
  type: "font",
11558
11564
  names: [// styles, except \boldsymbol defined below
11559
- "\\mathrm", "\\mathit", "\\mathbf", "\\mathnormal", // families
11565
+ "\\mathrm", "\\mathit", "\\mathbf", "\\mathnormal", "\\mathsfit", // families
11560
11566
  "\\mathbb", "\\mathcal", "\\mathfrak", "\\mathscr", "\\mathsf", "\\mathtt", // aliases, except \bm defined below
11561
11567
  "\\Bbb", "\\bold", "\\frak"],
11562
11568
  props: {
@@ -15527,7 +15533,12 @@ defineMacro("\\boxed", "\\fbox{$\\displaystyle{#1}$}"); // \def\iff{\DOTSB\;\Lon
15527
15533
 
15528
15534
  defineMacro("\\iff", "\\DOTSB\\;\\Longleftrightarrow\\;");
15529
15535
  defineMacro("\\implies", "\\DOTSB\\;\\Longrightarrow\\;");
15530
- defineMacro("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;"); // AMSMath's automatic \dots, based on \mdots@@ macro.
15536
+ defineMacro("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;"); // \def\dddot#1{{\mathop{#1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@
15537
+ // \hbox{\normalfont ...}\vss}}}}
15538
+ // We use \overset which avoids the vertical shift of \mathop.
15539
+
15540
+ defineMacro("\\dddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");
15541
+ defineMacro("\\ddddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}"); // AMSMath's automatic \dots, based on \mdots@@ macro.
15531
15542
 
15532
15543
  var dotsByToken = {
15533
15544
  ',': '\\dotsc',
@@ -18364,7 +18375,7 @@ var katex = {
18364
18375
  /**
18365
18376
  * Current KaTeX version
18366
18377
  */
18367
- version: "0.16.13",
18378
+ version: "0.16.15",
18368
18379
 
18369
18380
  /**
18370
18381
  * Renders the given LaTeX into an HTML+MathML combination, and adds
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "katex",
3
- "version": "0.16.13",
3
+ "version": "0.16.15",
4
4
  "description": "Fast math typesetting for the web.",
5
5
  "main": "dist/katex.js",
6
6
  "exports": {
@@ -700,7 +700,10 @@ const fontMap: {[string]: {| variant: FontVariant, fontName: string |}} = {
700
700
  variant: "italic",
701
701
  fontName: "Math-Italic",
702
702
  },
703
-
703
+ "mathsfit": {
704
+ variant: "sans-serif-italic",
705
+ fontName: "SansSerif-Italic",
706
+ },
704
707
  // "boldsymbol" is missing because they require the use of multiple fonts:
705
708
  // Math-BoldItalic and Main-Bold. This is handled by a special case in
706
709
  // makeOrd which ends up calling boldsymbol.
@@ -98,6 +98,8 @@ export const getVariant = function(
98
98
  return "bold";
99
99
  } else if (font === "mathbb") {
100
100
  return "double-struck";
101
+ } else if (font === "mathsfit") {
102
+ return "sans-serif-italic";
101
103
  } else if (font === "mathfrak") {
102
104
  return "fraktur";
103
105
  } else if (font === "mathscr" || font === "mathcal") {
@@ -33,7 +33,7 @@ defineFunction({
33
33
  type: "font",
34
34
  names: [
35
35
  // styles, except \boldsymbol defined below
36
- "\\mathrm", "\\mathit", "\\mathbf", "\\mathnormal",
36
+ "\\mathrm", "\\mathit", "\\mathbf", "\\mathnormal", "\\mathsfit",
37
37
 
38
38
  // families
39
39
  "\\mathbb", "\\mathcal", "\\mathfrak", "\\mathscr", "\\mathsf",
package/src/macros.js CHANGED
@@ -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',
@@ -158,6 +158,7 @@ $display-margin: 1em 0 !default;
158
158
  font-weight: bold;
159
159
  }
160
160
 
161
+ .mathsfit,
161
162
  .mathitsf,
162
163
  .textitsf {
163
164
  font-family: KaTeX_SansSerif;