@pie-lib/math-input 6.8.4-next.0 → 6.8.5-next.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/horizontal-keypad.js.map +1 -1
  3. package/lib/index.js.map +1 -1
  4. package/lib/keypad/index.js.map +1 -1
  5. package/lib/keypad/keys-layout.js.map +1 -1
  6. package/lib/keys/basic-operators.js.map +1 -1
  7. package/lib/keys/comparison.js.map +1 -1
  8. package/lib/keys/constants.js.map +1 -1
  9. package/lib/keys/digits.js.map +1 -1
  10. package/lib/keys/exponent.js.map +1 -1
  11. package/lib/keys/fractions.js.map +1 -1
  12. package/lib/keys/geometry.js.map +1 -1
  13. package/lib/keys/grades.js.map +1 -1
  14. package/lib/keys/index.js.map +1 -1
  15. package/lib/keys/log.js.map +1 -1
  16. package/lib/keys/logic.js.map +1 -1
  17. package/lib/keys/matrices.js.map +1 -1
  18. package/lib/keys/misc.js.map +1 -1
  19. package/lib/keys/operators.js.map +1 -1
  20. package/lib/keys/statistics.js.map +1 -1
  21. package/lib/keys/sub-sup.js.map +1 -1
  22. package/lib/keys/utils.js.map +1 -1
  23. package/lib/keys/vars.js.map +1 -1
  24. package/lib/math-input.js.map +1 -1
  25. package/lib/mq/custom-elements.js.map +1 -1
  26. package/lib/mq/input.js.map +1 -1
  27. package/lib/mq/static.js +1 -1
  28. package/lib/mq/static.js.map +1 -1
  29. package/package.json +2 -2
  30. package/src/horizontal-keypad.jsx +4 -4
  31. package/src/index.jsx +7 -7
  32. package/src/keypad/index.jsx +66 -97
  33. package/src/keypad/keys-layout.js +1 -1
  34. package/src/keys/basic-operators.js +5 -5
  35. package/src/keys/comparison.js +5 -5
  36. package/src/keys/constants.js +4 -4
  37. package/src/keys/digits.js +5 -5
  38. package/src/keys/exponent.js +4 -4
  39. package/src/keys/fractions.js +3 -3
  40. package/src/keys/geometry.js +24 -24
  41. package/src/keys/grades.js +43 -67
  42. package/src/keys/index.js +1 -1
  43. package/src/keys/log.js +3 -3
  44. package/src/keys/logic.js +2 -2
  45. package/src/keys/matrices.js +2 -2
  46. package/src/keys/misc.js +10 -10
  47. package/src/keys/operators.js +1 -1
  48. package/src/keys/statistics.js +5 -5
  49. package/src/keys/sub-sup.js +2 -2
  50. package/src/keys/utils.js +8 -8
  51. package/src/keys/vars.js +3 -3
  52. package/src/math-input.jsx +14 -14
  53. package/src/mq/custom-elements.js +1 -1
  54. package/src/mq/input.jsx +6 -6
  55. package/src/mq/static.jsx +7 -14
@@ -10,7 +10,7 @@ const digitMap = {
10
10
  6: 'six',
11
11
  7: 'seven',
12
12
  8: 'eight',
13
- 9: 'nine'
13
+ 9: 'nine',
14
14
  };
15
15
 
16
16
  const comma = { name: 'comma', label: ',', write: ',', category: 'digit' };
@@ -19,16 +19,16 @@ const decimalPoint = {
19
19
  name: 'decimal-point',
20
20
  label: '.',
21
21
  write: '.',
22
- category: 'digit'
22
+ category: 'digit',
23
23
  };
24
24
 
25
25
  export default times(10, String)
26
- .map(n => {
26
+ .map((n) => {
27
27
  return {
28
28
  name: digitMap[n],
29
29
  write: n,
30
30
  label: n,
31
- category: 'digit'
31
+ category: 'digit',
32
32
  };
33
33
  })
34
34
  .reduce(
@@ -36,5 +36,5 @@ export default times(10, String)
36
36
  acc[o.name] = o;
37
37
  return acc;
38
38
  },
39
- { comma, decimalPoint }
39
+ { comma, decimalPoint },
40
40
  );
@@ -5,23 +5,23 @@ const set = mkSet('exponent');
5
5
  export const squared = set({
6
6
  name: 'Squared',
7
7
  latex: 'x^2',
8
- write: '^2'
8
+ write: '^2',
9
9
  });
10
10
 
11
11
  export const xToPowerOfN = set({
12
12
  name: 'X to the power of n',
13
13
  latex: 'x^{}',
14
- command: '^'
14
+ command: '^',
15
15
  });
16
16
 
17
17
  export const squareRoot = set({
18
18
  name: 'Square root',
19
19
  latex: '\\sqrt{}',
20
- command: '\\sqrt'
20
+ command: '\\sqrt',
21
21
  });
22
22
 
23
23
  export const nthRoot = set({
24
24
  name: 'Nth root',
25
25
  latex: '\\sqrt[{}]{}',
26
- command: '\\nthroot'
26
+ command: '\\nthroot',
27
27
  });
@@ -5,19 +5,19 @@ const set = mkSet('fractions');
5
5
  export const blankOverBlank = set({
6
6
  name: 'blank/blank',
7
7
  latex: '\\frac{}{}',
8
- command: '\\frac'
8
+ command: '\\frac',
9
9
  });
10
10
 
11
11
  export const xOverBlank = set({
12
12
  latex: '\\frac{x}{ }',
13
13
  name: 'X/blank',
14
14
  label: 'x/[]',
15
- command: '/'
15
+ command: '/',
16
16
  });
17
17
 
18
18
  export const xBlankBlank = set({
19
19
  name: 'X (blank/blank)',
20
20
  latex: 'x\\frac{}{}',
21
21
  label: 'x([]/[])',
22
- command: '\\frac'
22
+ command: '\\frac',
23
23
  });
@@ -1,110 +1,110 @@
1
- const set = o => ({ ...o, category: 'geometry' });
1
+ const set = (o) => ({ ...o, category: 'geometry' });
2
2
 
3
3
  export const overline = set({
4
4
  name: 'Overline',
5
5
  latex: '\\overline{}',
6
- command: '\\overline'
6
+ command: '\\overline',
7
7
  });
8
8
 
9
9
  export const overRightArrow = set({
10
10
  name: 'Overline',
11
11
  latex: '\\overrightarrow{}',
12
- command: '\\overrightarrow'
12
+ command: '\\overrightarrow',
13
13
  });
14
14
 
15
15
  export const overLeftRightArrow = set({
16
16
  name: 'Overline',
17
17
  latex: '\\overleftrightarrow{\\overline{}}', // used this notation to display the pink box
18
18
  symbol: 'AB',
19
- command: '\\overleftrightarrow'
19
+ command: '\\overleftrightarrow',
20
20
  });
21
21
 
22
22
  export const segment = set({
23
23
  name: 'Segment',
24
24
  latex: '\\overleftrightarrow{AB}',
25
25
  write: '\\overleftrightarrow{AB}',
26
- label: 'AB'
26
+ label: 'AB',
27
27
  });
28
28
 
29
29
  export const parallel = set({
30
30
  name: 'Parallel',
31
31
  latex: '\\parallel',
32
- command: '\\parallel'
32
+ command: '\\parallel',
33
33
  });
34
34
 
35
35
  export const notParallel = set({
36
36
  name: 'Not Parallel',
37
37
  latex: '\\nparallel',
38
- command: '\\nparallel'
38
+ command: '\\nparallel',
39
39
  });
40
40
 
41
41
  export const perpindicular = set({
42
42
  name: 'Perpendicular',
43
43
  latex: '\\perp',
44
- command: '\\perpendicular'
44
+ command: '\\perpendicular',
45
45
  });
46
46
 
47
47
  export const angle = set({
48
48
  name: 'Angle',
49
49
  latex: '\\angle',
50
- command: '\\angle'
50
+ command: '\\angle',
51
51
  });
52
52
  export const overArc = set({
53
53
  name: 'Over arc',
54
54
  latex: '\\overarc{\\overline{}}', // used this notation to display the pink box
55
- command: '\\overarc'
55
+ command: '\\overarc',
56
56
  });
57
57
  export const measureOfAngle = set({
58
58
  name: 'Measure Of Angle',
59
59
  latex: '\\measuredangle',
60
- command: ['m', '\\angle']
60
+ command: ['m', '\\angle'],
61
61
  });
62
62
 
63
63
  export const triangle = set({
64
64
  name: 'Triangle',
65
65
  latex: '\\triangle',
66
- command: '\\triangle'
66
+ command: '\\triangle',
67
67
  });
68
68
 
69
69
  export const square = set({
70
70
  name: 'Square',
71
71
  latex: '\\square',
72
- command: '\\square'
72
+ command: '\\square',
73
73
  });
74
74
 
75
75
  export const parallelogram = set({
76
76
  name: 'Parallelogram',
77
77
  latex: '\\parallelogram',
78
- command: '\\parallelogram'
78
+ command: '\\parallelogram',
79
79
  });
80
80
 
81
81
  export const circledDot = set({
82
82
  name: 'Circled Dot',
83
83
  latex: '\\odot',
84
- command: '\\odot'
84
+ command: '\\odot',
85
85
  });
86
86
 
87
87
  export const degree = set({
88
88
  name: 'Degree',
89
89
  latex: '\\degree',
90
- command: '\\degree'
90
+ command: '\\degree',
91
91
  });
92
92
 
93
93
  export const similarTo = set({
94
94
  name: 'Similar To',
95
95
  command: '\\sim',
96
- latex: '\\sim'
96
+ latex: '\\sim',
97
97
  });
98
98
 
99
99
  export const congruentTo = set({
100
100
  name: 'Congruent To',
101
101
  command: '\\cong',
102
- latex: '\\cong'
102
+ latex: '\\cong',
103
103
  });
104
104
  export const notCongruentTo = set({
105
105
  name: 'Not Congruent To',
106
106
  command: '\\ncong',
107
- latex: '\\ncong'
107
+ latex: '\\ncong',
108
108
  });
109
109
 
110
110
  export const primeArcminute = set({
@@ -113,28 +113,28 @@ export const primeArcminute = set({
113
113
  // eslint-disable-next-line
114
114
  latex: "'",
115
115
  // eslint-disable-next-line
116
- write: "'"
116
+ write: "'",
117
117
  });
118
118
  export const doublePrimeArcSecond = set({
119
119
  name: 'Double Prime/Arcsecond',
120
120
  latex: '"',
121
- write: '"'
121
+ write: '"',
122
122
  });
123
123
 
124
124
  export const leftArrow = set({
125
125
  name: 'Left Arrow',
126
126
  latex: '\\leftarrow',
127
- command: '\\leftarrow'
127
+ command: '\\leftarrow',
128
128
  });
129
129
 
130
130
  export const rightArrow = set({
131
131
  name: 'Right Arrow',
132
132
  latex: '\\rightarrow',
133
- command: '\\rightarrow'
133
+ command: '\\rightarrow',
134
134
  });
135
135
 
136
136
  export const leftrightArrow = set({
137
137
  name: 'Left Right Arrow',
138
138
  latex: '\\leftrightarrow',
139
- command: '\\leftrightarrow'
139
+ command: '\\leftrightarrow',
140
140
  });
@@ -20,19 +20,13 @@ import * as edit from './edit';
20
20
  const hs = [
21
21
  [fractions.blankOverBlank, misc.percentage, vars.x, exponent.squared, exponent.squareRoot],
22
22
  [operators.circleDot, vars.y, subSup.subscript, exponent.xToPowerOfN, exponent.nthRoot],
23
- [
24
- misc.plusMinus,
25
- comparison.lessThan,
26
- comparison.greaterThan,
27
- comparison.lessThanEqual,
28
- comparison.greaterThanEqual
29
- ],
23
+ [misc.plusMinus, comparison.lessThan, comparison.greaterThan, comparison.lessThanEqual, comparison.greaterThanEqual],
30
24
  [constants.pi, vars.theta, misc.parenthesis, misc.brackets, misc.absValue],
31
- [misc.notEqual, trigonometry.sin, trigonometry.cos, trigonometry.tan, geometry.degree]
25
+ [misc.notEqual, trigonometry.sin, trigonometry.cos, trigonometry.tan, geometry.degree],
32
26
  ];
33
27
 
34
28
  const advancedAlgebra = (() => {
35
- const out = [...hs.map(arr => [...arr])];
29
+ const out = [...hs.map((arr) => [...arr])];
36
30
 
37
31
  out[0].push({ name: 'i', latex: 'i', write: 'i' });
38
32
  out[1].push(log.log);
@@ -43,7 +37,7 @@ const advancedAlgebra = (() => {
43
37
  })();
44
38
 
45
39
  const statisticsSet = (() => {
46
- const out = [...hs.map(arr => [...arr])];
40
+ const out = [...hs.map((arr) => [...arr])];
47
41
  out[0].push(statistics.mu);
48
42
  out[1].push(statistics.xBar);
49
43
  out[2].push(statistics.yBar);
@@ -54,26 +48,26 @@ const statisticsSet = (() => {
54
48
 
55
49
  export const gradeSets = [
56
50
  {
57
- predicate: n => n >= 3 && n <= 5,
51
+ predicate: (n) => n >= 3 && n <= 5,
58
52
  set: [
59
53
  [comparison.lessThan, comparison.greaterThan],
60
54
  [fractions.xOverBlank, fractions.xBlankBlank],
61
- [vars.x, logic.longDivision]
62
- ]
55
+ [vars.x, logic.longDivision],
56
+ ],
63
57
  },
64
58
  {
65
- predicate: n => n >= 6 && n <= 7,
59
+ predicate: (n) => n >= 6 && n <= 7,
66
60
  set: [
67
61
  [geometry.degree, comparison.lessThan, comparison.greaterThan],
68
62
  [operators.circleDot, comparison.lessThanEqual, comparison.greaterThanEqual],
69
63
  [vars.x, vars.y, exponent.squared, exponent.xToPowerOfN],
70
64
  [misc.plusMinus, fractions.xOverBlank, fractions.xBlankBlank, exponent.squareRoot],
71
- [constants.pi, misc.parenthesis, misc.absValue, exponent.nthRoot]
72
- ]
65
+ [constants.pi, misc.parenthesis, misc.absValue, exponent.nthRoot],
66
+ ],
73
67
  },
74
68
  {
75
- predicate: n => n >= 8 || n === 'HS',
76
- set: hs
69
+ predicate: (n) => n >= 8 || n === 'HS',
70
+ set: hs,
77
71
  },
78
72
  {
79
73
  predicate: 'non-negative-integers',
@@ -82,8 +76,8 @@ export const gradeSets = [
82
76
  [digits.four, digits.five, digits.six],
83
77
  [digits.one, digits.two, digits.three],
84
78
  [digits.zero, { name: '', latex: '', write: '' }, { name: '', latex: '', write: '' }],
85
- [nav.left, nav.right, edit.del]
86
- ]
79
+ [nav.left, nav.right, edit.del],
80
+ ],
87
81
  },
88
82
  {
89
83
  predicate: 'integers',
@@ -92,8 +86,8 @@ export const gradeSets = [
92
86
  [digits.four, digits.five, digits.six],
93
87
  [digits.one, digits.two, digits.three],
94
88
  [digits.zero, { name: '', latex: '', write: '' }, basicOperators.minus],
95
- [nav.left, nav.right, edit.del]
96
- ]
89
+ [nav.left, nav.right, edit.del],
90
+ ],
97
91
  },
98
92
  {
99
93
  predicate: 'decimals',
@@ -102,8 +96,8 @@ export const gradeSets = [
102
96
  [digits.four, digits.five, digits.six],
103
97
  [digits.one, digits.two, digits.three],
104
98
  [digits.zero, digits.decimalPoint, basicOperators.minus],
105
- [nav.left, nav.right, edit.del]
106
- ]
99
+ [nav.left, nav.right, edit.del],
100
+ ],
107
101
  },
108
102
  {
109
103
  predicate: 'fractions',
@@ -112,8 +106,8 @@ export const gradeSets = [
112
106
  [digits.four, digits.five, digits.six],
113
107
  [digits.one, digits.two, digits.three],
114
108
  [digits.zero, fractions.blankOverBlank, basicOperators.minus],
115
- [nav.left, nav.right, edit.del]
116
- ]
109
+ [nav.left, nav.right, edit.del],
110
+ ],
117
111
  },
118
112
  {
119
113
  predicate: 'geometry',
@@ -124,7 +118,7 @@ export const gradeSets = [
124
118
  geometry.primeArcminute,
125
119
  geometry.doublePrimeArcSecond,
126
120
  geometry.congruentTo,
127
- geometry.similarTo
121
+ geometry.similarTo,
128
122
  ],
129
123
  [
130
124
  operators.circleDot,
@@ -132,33 +126,19 @@ export const gradeSets = [
132
126
  geometry.measureOfAngle,
133
127
  geometry.triangle,
134
128
  geometry.notCongruentTo,
135
- misc.notSimilar
136
- ],
137
- [
138
- trigonometry.sin,
139
- trigonometry.cos,
140
- trigonometry.tan,
141
- constants.pi,
142
- exponent.squareRoot,
143
- exponent.nthRoot
144
- ],
145
- [
146
- trigonometry.csc,
147
- trigonometry.sec,
148
- trigonometry.cot,
149
- vars.theta,
150
- subSup.subscript,
151
- exponent.xToPowerOfN
129
+ misc.notSimilar,
152
130
  ],
131
+ [trigonometry.sin, trigonometry.cos, trigonometry.tan, constants.pi, exponent.squareRoot, exponent.nthRoot],
132
+ [trigonometry.csc, trigonometry.sec, trigonometry.cot, vars.theta, subSup.subscript, exponent.xToPowerOfN],
153
133
  [
154
134
  geometry.overline,
155
135
  geometry.overRightArrow,
156
136
  geometry.overLeftRightArrow,
157
137
  geometry.overArc,
158
138
  geometry.perpindicular,
159
- geometry.parallel
160
- ]
161
- ]
139
+ geometry.parallel,
140
+ ],
141
+ ],
162
142
  },
163
143
  // {
164
144
  // predicate: 'miscellaneous',
@@ -252,11 +232,11 @@ export const gradeSets = [
252
232
  // },
253
233
  {
254
234
  predicate: 'advanced-algebra',
255
- set: advancedAlgebra
235
+ set: advancedAlgebra,
256
236
  },
257
237
  {
258
238
  predicate: 'statistics',
259
- set: statisticsSet
239
+ set: statisticsSet,
260
240
  },
261
241
  {
262
242
  predicate: 'item-authoring',
@@ -271,7 +251,7 @@ export const gradeSets = [
271
251
  geometry.overline,
272
252
  geometry.overRightArrow,
273
253
  geometry.overLeftRightArrow,
274
- log.log
254
+ log.log,
275
255
  ],
276
256
  [
277
257
  basicOperators.multiply,
@@ -283,7 +263,7 @@ export const gradeSets = [
283
263
  geometry.perpindicular,
284
264
  geometry.parallel,
285
265
  geometry.overArc,
286
- log.logSubscript
266
+ log.logSubscript,
287
267
  ],
288
268
  [
289
269
  misc.plusMinus,
@@ -295,7 +275,7 @@ export const gradeSets = [
295
275
  geometry.rightArrow,
296
276
  geometry.triangle,
297
277
  geometry.square,
298
- log.ln
278
+ log.ln,
299
279
  ],
300
280
  [
301
281
  misc.notEqual,
@@ -307,7 +287,7 @@ export const gradeSets = [
307
287
  geometry.leftrightArrow,
308
288
  trigonometry.sin,
309
289
  trigonometry.cos,
310
- trigonometry.tan
290
+ trigonometry.tan,
311
291
  ],
312
292
  [
313
293
  comparison.lessThanEqual,
@@ -319,20 +299,20 @@ export const gradeSets = [
319
299
  { name: '', latex: '', write: '' },
320
300
  trigonometry.csc,
321
301
  trigonometry.sec,
322
- trigonometry.cot
323
- ]
324
- ]
325
- }
302
+ trigonometry.cot,
303
+ ],
304
+ ],
305
+ },
326
306
  ];
327
307
 
328
- export const keysForGrade = n => {
308
+ export const keysForGrade = (n) => {
329
309
  const number = parseInt(n, 10);
330
310
  n = isNaN(number) ? n : number;
331
311
  if (!n) {
332
312
  return [];
333
313
  }
334
314
 
335
- const match = gradeSets.find(gs => {
315
+ const match = gradeSets.find((gs) => {
336
316
  if (typeof gs.predicate === 'string') {
337
317
  return gs.predicate === n;
338
318
  } else {
@@ -360,18 +340,14 @@ const ALL_KEYS = [
360
340
  ...Object.values(statistics),
361
341
  ...Object.values(subSup),
362
342
  ...Object.values(trigonometry),
363
- ...Object.values(vars)
343
+ ...Object.values(vars),
364
344
  ];
365
345
 
366
- export const normalizeAdditionalKeys = additionalKeys => {
367
- return (additionalKeys || []).map(additionalkey => {
346
+ export const normalizeAdditionalKeys = (additionalKeys) => {
347
+ return (additionalKeys || []).map((additionalkey) => {
368
348
  const { latex } = additionalkey;
369
349
  const predefinedKey = (ALL_KEYS || []).find(
370
- key =>
371
- latex === key.latex ||
372
- latex === key.write ||
373
- latex === key.command ||
374
- latex === key.otherNotation
350
+ (key) => latex === key.latex || latex === key.write || latex === key.command || latex === key.otherNotation,
375
351
  );
376
352
 
377
353
  return !latex ? additionalkey : predefinedKey || additionalkey;
package/src/keys/index.js CHANGED
@@ -10,7 +10,7 @@ export const baseSet = [
10
10
  [four, five, six, multiply],
11
11
  [one, two, three, minus],
12
12
  [zero, decimalPoint, comma, plus],
13
- [nav.left, nav.right, edit.del, equals]
13
+ [nav.left, nav.right, edit.del, equals],
14
14
  ];
15
15
 
16
16
  import * as comparison from './comparison';
package/src/keys/log.js CHANGED
@@ -6,17 +6,17 @@ export const log = set({
6
6
  name: 'Log',
7
7
  label: 'log',
8
8
  command: '\\log',
9
- latex: '\\log'
9
+ latex: '\\log',
10
10
  });
11
11
  export const logSubscript = set({
12
12
  name: 'Log with subscript',
13
13
  label: 'log s',
14
14
  latex: '\\log_{}',
15
- command: ['\\log', '_', ' ']
15
+ command: ['\\log', '_', ' '],
16
16
  });
17
17
  export const ln = set({
18
18
  name: 'Ln',
19
19
  label: 'ln',
20
20
  command: '\\ln',
21
- latex: '\\ln'
21
+ latex: '\\ln',
22
22
  });
package/src/keys/logic.js CHANGED
@@ -5,11 +5,11 @@ const set = mkSet('logic');
5
5
  export const therefore = set({
6
6
  name: 'Therefore',
7
7
  label: '∴',
8
- write: '∴'
8
+ write: '∴',
9
9
  });
10
10
 
11
11
  export const longDivision = set({
12
12
  name: 'Long division',
13
13
  latex: '\\longdiv{}',
14
- command: '\\longdiv'
14
+ command: '\\longdiv',
15
15
  });
@@ -5,11 +5,11 @@ const set = mkSet('matrices');
5
5
  export const singleCellMatrix = set({
6
6
  name: 'Single Cell Matrix',
7
7
  label: '[ ]',
8
- write: '\\begin{pmatrix}\\end{pmatrix}'
8
+ write: '\\begin{pmatrix}\\end{pmatrix}',
9
9
  });
10
10
 
11
11
  export const doubleCellMatrix = set({
12
12
  name: 'Double Cell Matrix',
13
13
  label: '[ ] [ ] \\\\newline [ ] [ ]',
14
- write: '\\begin{bmatrix}&\\\\&\\end{bmatrix}'
14
+ write: '\\begin{bmatrix}&\\\\&\\end{bmatrix}',
15
15
  });
package/src/keys/misc.js CHANGED
@@ -5,56 +5,56 @@ const set = mkSet('misc');
5
5
  export const plusMinus = set({
6
6
  name: 'Plus/Minus',
7
7
  latex: '\\pm',
8
- write: '\\pm'
8
+ write: '\\pm',
9
9
  });
10
10
 
11
11
  export const absValue = set({
12
12
  name: 'Absolute Value',
13
13
  latex: '\\abs{}',
14
14
  symbol: '| |',
15
- command: '|'
15
+ command: '|',
16
16
  });
17
17
 
18
18
  export const parenthesis = set({
19
19
  name: 'Parenthesis',
20
20
  latex: '\\left(\\right)',
21
21
  symbol: '( )',
22
- command: '('
22
+ command: '(',
23
23
  });
24
24
 
25
25
  export const brackets = set({
26
26
  name: 'Brackets',
27
27
  latex: '\\left[\\right]',
28
28
  symbol: '[ ]',
29
- command: '['
29
+ command: '[',
30
30
  });
31
31
 
32
32
  export const percentage = set({
33
33
  name: 'Percentage',
34
34
  latex: '%',
35
- command: '%'
35
+ command: '%',
36
36
  });
37
37
 
38
38
  export const approx = set({
39
39
  latex: '\\approx',
40
- command: '\\approx'
40
+ command: '\\approx',
41
41
  });
42
42
 
43
43
  export const nApprox = set({
44
44
  latex: '\\napprox',
45
- command: '\\napprox'
45
+ command: '\\napprox',
46
46
  });
47
47
 
48
48
  export const notEqual = set({
49
49
  latex: '\\neq',
50
- command: '\\neq'
50
+ command: '\\neq',
51
51
  });
52
52
 
53
53
  export const similar = set({
54
54
  latex: '\\sim',
55
- command: '\\sim'
55
+ command: '\\sim',
56
56
  });
57
57
  export const notSimilar = set({
58
58
  latex: '\\nsim',
59
- command: '\\nsim'
59
+ command: '\\nsim',
60
60
  });
@@ -5,5 +5,5 @@ const set = mkSet('operators');
5
5
  export const circleDot = set({
6
6
  name: 'CircleDot',
7
7
  label: '⋅',
8
- write: '\\cdot'
8
+ write: '\\cdot',
9
9
  });
@@ -5,32 +5,32 @@ export const xBar = set({
5
5
  name: 'X Bar',
6
6
  label: 'x̄',
7
7
  latex: '\\overline{x}',
8
- write: '\\overline{x}'
8
+ write: '\\overline{x}',
9
9
  });
10
10
 
11
11
  export const yBar = set({
12
12
  name: 'Y Bar',
13
13
  latex: '\\overline{y}',
14
- write: '\\overline{y}'
14
+ write: '\\overline{y}',
15
15
  });
16
16
 
17
17
  export const mu = set({
18
18
  name: 'mu',
19
19
  label: 'mu',
20
20
  latex: '\\mu',
21
- write: '\\mu'
21
+ write: '\\mu',
22
22
  });
23
23
 
24
24
  export const sigma = set({
25
25
  name: 'Sigma',
26
26
  label: '\\Sigma',
27
27
  latex: '\\Sigma',
28
- write: '\\Sigma'
28
+ write: '\\Sigma',
29
29
  });
30
30
 
31
31
  export const smallSigma = set({
32
32
  name: 'sigma',
33
33
  label: '\\sigma',
34
34
  latex: '\\sigma',
35
- write: '\\sigma'
35
+ write: '\\sigma',
36
36
  });