temml 0.11.11 → 0.12.2

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.
Files changed (62) hide show
  1. package/README.md +1 -1
  2. package/dist/Temml-Asana.css +28 -0
  3. package/dist/Temml-Latin-Modern.css +29 -1
  4. package/dist/Temml-Libertinus.css +28 -0
  5. package/dist/Temml-Local.css +28 -0
  6. package/dist/Temml-NotoSans.css +28 -0
  7. package/dist/Temml-STIX2.css +28 -0
  8. package/dist/temml.cjs +305 -253
  9. package/dist/temml.d.ts +2 -2
  10. package/dist/temml.js +305 -253
  11. package/dist/temml.min.js +1 -1
  12. package/dist/temml.mjs +305 -253
  13. package/dist/temmlPostProcess.js +1 -1
  14. package/package.json +1 -1
  15. package/src/Settings.js +3 -3
  16. package/src/buildMathML.js +1 -1
  17. package/src/canceltoArrow.svg +15 -0
  18. package/src/domTree.js +1 -1
  19. package/src/environments/array.js +7 -7
  20. package/src/environments/cd.js +1 -1
  21. package/src/functions/accent.js +3 -4
  22. package/src/functions/accentunder.js +2 -2
  23. package/src/functions/arrow.js +2 -2
  24. package/src/functions/cancelto.js +56 -16
  25. package/src/functions/color.js +1 -1
  26. package/src/functions/cr.js +1 -1
  27. package/src/functions/delimsizing.js +1 -1
  28. package/src/functions/enclose.js +8 -10
  29. package/src/functions/envTag.js +1 -1
  30. package/src/functions/font.js +1 -1
  31. package/src/functions/genfrac.js +1 -1
  32. package/src/functions/{horizBrace.js → horizBracket.js} +6 -6
  33. package/src/functions/includegraphics.js +1 -1
  34. package/src/functions/kern.js +1 -1
  35. package/src/functions/label.js +1 -1
  36. package/src/functions/lap.js +1 -1
  37. package/src/functions/mclass.js +2 -2
  38. package/src/functions/multiscript.js +1 -1
  39. package/src/functions/not.js +1 -1
  40. package/src/functions/op.js +2 -1
  41. package/src/functions/operatorname.js +1 -1
  42. package/src/functions/phantom.js +1 -1
  43. package/src/functions/raise.js +1 -1
  44. package/src/functions/rule.js +1 -1
  45. package/src/functions/sfrac.js +1 -1
  46. package/src/functions/smash.js +1 -1
  47. package/src/functions/sqrt.js +1 -1
  48. package/src/functions/supsub.js +6 -6
  49. package/src/functions/symbolsOp.js +1 -1
  50. package/src/functions/symbolsOrd.js +1 -1
  51. package/src/functions/symbolsSpacing.js +1 -1
  52. package/src/functions/tip.js +1 -1
  53. package/src/functions/toggle.js +1 -1
  54. package/src/functions/vcenter.js +1 -1
  55. package/src/functions/verb.js +1 -1
  56. package/src/functions.js +2 -2
  57. package/src/linebreaking.js +1 -1
  58. package/src/mathMLTree.js +1 -7
  59. package/src/postProcess.js +1 -1
  60. package/src/stretchy.js +5 -8
  61. package/src/units.js +1 -1
  62. package/src/utils.js +8 -15
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  | Library | Minified JavaScript + CSS |
4
4
  |:--------------|:-------------------------:|
5
- | Temml | 171 KB |
5
+ | Temml | 170 KB |
6
6
  | MathJax 2.7.5 | 338 KB |
7
7
  | KaTeX | 280 KB |
8
8
  | TeXZilla | 168 KB |
@@ -43,11 +43,39 @@ math.tml-display {
43
43
  width: 100%;
44
44
  }
45
45
 
46
+ /* Cramped superscripts in WebKit */
47
+ mfrac > :nth-child(2),
48
+ msqrt,
49
+ mover > :first-child {
50
+ math-shift: compact
51
+ }
52
+
53
+ .menclose {
54
+ display: inline-block;
55
+ position: relative;
56
+ padding: 0.5ex 0ex;
57
+ }
58
+ .tml-cancelto {
59
+ display: inline-block;
60
+ position: absolute;
61
+ top: 0;
62
+ left: 0;
63
+ padding: 0.5ex 0ex;
64
+ background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><defs><marker id='a' markerHeight='5' markerUnits='strokeWidth' markerWidth='7' orient='auto' refX='7' refY='2.5'><path fill='currentColor' d='m0 0 7 2.5L0 5z'/></marker></defs><line x2='100%' y1='100%' stroke='currentColor' stroke-width='.06em' marker-end='url(%23a)' vector-effect='non-scaling-stroke'/></svg>");
65
+ }
66
+
46
67
  @supports (-moz-appearance: none) {
47
68
  /* \vec w/o italic correction for Firefox */
48
69
  .tml-vec {
49
70
  transform: scale(0.75)
50
71
  }
72
+ /* Fix \cancelto in Firefox */
73
+ .ff-narrow {
74
+ width: 0em;
75
+ }
76
+ .ff-nudge-left {
77
+ margin-left: -0.2em;
78
+ }
51
79
  }
52
80
 
53
81
  @supports (not (-moz-appearance: none)) {
@@ -57,11 +57,39 @@ math {
57
57
  font-family: "Temml";
58
58
  }
59
59
 
60
+ /* Cramped superscripts in WebKit */
61
+ mfrac > :nth-child(2),
62
+ msqrt,
63
+ mover > :first-child {
64
+ math-shift: compact
65
+ }
66
+
67
+ .menclose {
68
+ display: inline-block;
69
+ position: relative;
70
+ padding: 0.5ex 0ex;
71
+ }
72
+ .tml-cancelto {
73
+ display: inline-block;
74
+ position: absolute;
75
+ top: 0;
76
+ left: 0;
77
+ padding: 0.5ex 0ex;
78
+ background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><defs><marker id='a' markerHeight='5' markerUnits='strokeWidth' markerWidth='7' orient='auto' refX='7' refY='2.5'><path fill='currentColor' d='m0 0 7 2.5L0 5z'/></marker></defs><line x2='100%' y1='100%' stroke='currentColor' stroke-width='.06em' marker-end='url(%23a)' vector-effect='non-scaling-stroke'/></svg>");
79
+ }
80
+
60
81
  @supports (-moz-appearance: none) {
61
82
  /* \vec w/o italic correction for Firefox */
62
83
  .tml-vec {
63
84
  transform: scale(0.75)
64
85
  }
86
+ /* Fix \cancelto in Firefox */
87
+ .ff-narrow {
88
+ width: 0em;
89
+ }
90
+ .ff-nudge-left {
91
+ margin-left: -0.2em;
92
+ }
65
93
  }
66
94
 
67
95
  @supports (not (-moz-appearance: none)) {
@@ -166,7 +194,7 @@ menclose {
166
194
  padding: 0.5ex 0ex;
167
195
  }
168
196
 
169
- .tml-overline {
197
+ .tml-overline {
170
198
  padding: 0.1em 0 0 0;
171
199
  border-top: 0.065em solid;
172
200
  }
@@ -59,11 +59,39 @@ mo.tml-prime {
59
59
  font-feature-settings: 'ssty';
60
60
  }
61
61
 
62
+ /* Cramped superscripts in WebKit */
63
+ mfrac > :nth-child(2),
64
+ msqrt,
65
+ mover > :first-child {
66
+ math-shift: compact
67
+ }
68
+
69
+ .menclose {
70
+ display: inline-block;
71
+ position: relative;
72
+ padding: 0.5ex 0ex;
73
+ }
74
+ .tml-cancelto {
75
+ display: inline-block;
76
+ position: absolute;
77
+ top: 0;
78
+ left: 0;
79
+ padding: 0.5ex 0ex;
80
+ background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><defs><marker id='a' markerHeight='5' markerUnits='strokeWidth' markerWidth='7' orient='auto' refX='7' refY='2.5'><path fill='currentColor' d='m0 0 7 2.5L0 5z'/></marker></defs><line x2='100%' y1='100%' stroke='currentColor' stroke-width='.06em' marker-end='url(%23a)' vector-effect='non-scaling-stroke'/></svg>");
81
+ }
82
+
62
83
  @supports (-moz-appearance: none) {
63
84
  /* \vec w/o italic correction for Firefox */
64
85
  .tml-vec {
65
86
  transform: scale(0.75)
66
87
  }
88
+ /* Fix \cancelto in Firefox */
89
+ .ff-narrow {
90
+ width: 0em;
91
+ }
92
+ .ff-nudge-left {
93
+ margin-left: -0.2em;
94
+ }
67
95
  }
68
96
 
69
97
  @supports (not (-moz-appearance: none)) {
@@ -50,11 +50,39 @@ mo.tml-prime {
50
50
  font-family: Temml;
51
51
  }
52
52
 
53
+ /* Cramped superscripts in WebKit */
54
+ mfrac > :nth-child(2),
55
+ msqrt,
56
+ mover > :first-child {
57
+ math-shift: compact
58
+ }
59
+
60
+ .menclose {
61
+ display: inline-block;
62
+ position: relative;
63
+ padding: 0.5ex 0ex;
64
+ }
65
+ .tml-cancelto {
66
+ display: inline-block;
67
+ position: absolute;
68
+ top: 0;
69
+ left: 0;
70
+ padding: 0.5ex 0ex;
71
+ background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><defs><marker id='a' markerHeight='5' markerUnits='strokeWidth' markerWidth='7' orient='auto' refX='7' refY='2.5'><path fill='currentColor' d='m0 0 7 2.5L0 5z'/></marker></defs><line x2='100%' y1='100%' stroke='currentColor' stroke-width='.06em' marker-end='url(%23a)' vector-effect='non-scaling-stroke'/></svg>");
72
+ }
73
+
53
74
  @supports (-moz-appearance: none) {
54
75
  /* \vec w/o italic correction for Firefox */
55
76
  .tml-vec {
56
77
  transform: scale(0.75)
57
78
  }
79
+ /* Fix \cancelto in Firefox */
80
+ .ff-narrow {
81
+ width: 0em;
82
+ }
83
+ .ff-nudge-left {
84
+ margin-left: -0.2em;
85
+ }
58
86
  }
59
87
 
60
88
  @supports (not (-moz-appearance: none)) {
@@ -52,11 +52,39 @@ mo.tml-prime {
52
52
  font-feature-settings: 'ssty';
53
53
  }
54
54
 
55
+ /* Cramped superscripts in WebKit */
56
+ mfrac > :nth-child(2),
57
+ msqrt,
58
+ mover > :first-child {
59
+ math-shift: compact
60
+ }
61
+
62
+ .menclose {
63
+ display: inline-block;
64
+ position: relative;
65
+ padding: 0.5ex 0ex;
66
+ }
67
+ .tml-cancelto {
68
+ display: inline-block;
69
+ position: absolute;
70
+ top: 0;
71
+ left: 0;
72
+ padding: 0.5ex 0ex;
73
+ background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><defs><marker id='a' markerHeight='5' markerUnits='strokeWidth' markerWidth='7' orient='auto' refX='7' refY='2.5'><path fill='currentColor' d='m0 0 7 2.5L0 5z'/></marker></defs><line x2='100%' y1='100%' stroke='currentColor' stroke-width='.06em' marker-end='url(%23a)' vector-effect='non-scaling-stroke'/></svg>");
74
+ }
75
+
55
76
  @supports (-moz-appearance: none) {
56
77
  /* \vec w/o italic correction for Firefox */
57
78
  .tml-vec {
58
79
  transform: scale(0.75)
59
80
  }
81
+ /* Fix \cancelto in Firefox */
82
+ .ff-narrow {
83
+ width: 0em;
84
+ }
85
+ .ff-nudge-left {
86
+ margin-left: -0.2em;
87
+ }
60
88
  }
61
89
 
62
90
  @supports (not (-moz-appearance: none)) {
@@ -49,11 +49,39 @@ mo.tml-prime {
49
49
  font-feature-settings: 'ss04';
50
50
  }
51
51
 
52
+ /* Cramped superscripts in WebKit */
53
+ mfrac > :nth-child(2),
54
+ msqrt,
55
+ mover > :first-child {
56
+ math-shift: compact
57
+ }
58
+
59
+ .menclose {
60
+ display: inline-block;
61
+ position: relative;
62
+ padding: 0.5ex 0ex;
63
+ }
64
+ .tml-cancelto {
65
+ display: inline-block;
66
+ position: absolute;
67
+ top: 0;
68
+ left: 0;
69
+ padding: 0.5ex 0ex;
70
+ background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><defs><marker id='a' markerHeight='5' markerUnits='strokeWidth' markerWidth='7' orient='auto' refX='7' refY='2.5'><path fill='currentColor' d='m0 0 7 2.5L0 5z'/></marker></defs><line x2='100%' y1='100%' stroke='currentColor' stroke-width='.06em' marker-end='url(%23a)' vector-effect='non-scaling-stroke'/></svg>");
71
+ }
72
+
52
73
  @supports (-moz-appearance: none) {
53
74
  /* \vec w/o italic correction for Firefox */
54
75
  .tml-vec {
55
76
  transform: scale(0.75)
56
77
  }
78
+ /* Fix \cancelto in Firefox */
79
+ .ff-narrow {
80
+ width: 0em;
81
+ }
82
+ .ff-nudge-left {
83
+ margin-left: -0.2em;
84
+ }
57
85
  }
58
86
 
59
87
  @supports (not (-moz-appearance: none)) {