diff --git a/package-lock.json b/package-lock.json index 073ea3be..1d852aa8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "idb-keyval": "^6.2.0", "mathjax": "^3.2.2", "mathjs": "^11.8.2", - "mathlive": "github:mgreminger/mathlive#23492aab778bf75b87b6b6f40c9fbe694757ec7e", + "mathlive": "github:mgreminger/mathlive#29b14918088a7f0ad9f8204f982447a7dbc6c8df", "plotly.js-basic-dist": "github:mgreminger/plotly.js#dist-basic-for-ep", "quick-lru": "^6.1.1", "quill": "^1.3.7", @@ -5274,8 +5274,8 @@ }, "node_modules/mathlive": { "version": "0.98.6", - "resolved": "git+ssh://git@github.com/mgreminger/mathlive.git#23492aab778bf75b87b6b6f40c9fbe694757ec7e", - "integrity": "sha512-pBQTdGt+L0UsSggnrDGzY1lvroNPYtS0BsXIzsHXzfSa09JVchruq6ob6MIU2FDbtz9aoDk12MfzDFEmv0y0SQ==", + "resolved": "git+ssh://git@github.com/mgreminger/mathlive.git#29b14918088a7f0ad9f8204f982447a7dbc6c8df", + "integrity": "sha512-TWC1iRy9bi9VQPk/5eRAPwm39SvvETm01KAY/wj+Nnzf7agSUbclRMRI530Mc3Gaz2ehbNZEzVmIsVhJQk/aZg==", "license": "MIT", "dependencies": { "@cortex-js/compute-engine": "0.23.1" @@ -11720,9 +11720,9 @@ } }, "mathlive": { - "version": "git+ssh://git@github.com/mgreminger/mathlive.git#23492aab778bf75b87b6b6f40c9fbe694757ec7e", - "integrity": "sha512-pBQTdGt+L0UsSggnrDGzY1lvroNPYtS0BsXIzsHXzfSa09JVchruq6ob6MIU2FDbtz9aoDk12MfzDFEmv0y0SQ==", - "from": "mathlive@github:mgreminger/mathlive#23492aab778bf75b87b6b6f40c9fbe694757ec7e", + "version": "git+ssh://git@github.com/mgreminger/mathlive.git#29b14918088a7f0ad9f8204f982447a7dbc6c8df", + "integrity": "sha512-TWC1iRy9bi9VQPk/5eRAPwm39SvvETm01KAY/wj+Nnzf7agSUbclRMRI530Mc3Gaz2ehbNZEzVmIsVhJQk/aZg==", + "from": "mathlive@github:mgreminger/mathlive#29b14918088a7f0ad9f8204f982447a7dbc6c8df", "requires": { "@cortex-js/compute-engine": "0.23.1" } diff --git a/package.json b/package.json index 24a7fe4b..a6c4608e 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "idb-keyval": "^6.2.0", "mathjax": "^3.2.2", "mathjs": "^11.8.2", - "mathlive": "github:mgreminger/mathlive#23492aab778bf75b87b6b6f40c9fbe694757ec7e", + "mathlive": "github:mgreminger/mathlive#29b14918088a7f0ad9f8204f982447a7dbc6c8df", "plotly.js-basic-dist": "github:mgreminger/plotly.js#dist-basic-for-ep", "quick-lru": "^6.1.1", "quill": "^1.3.7", diff --git a/src/App.svelte b/src/App.svelte index 4de08b1b..7a3baac1 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -90,7 +90,7 @@ const apiUrl = window.location.origin; - const currentVersion = 20240406; + const currentVersion = 20240418; const tutorialHash = "fFjTsnFoSQMLwcvteVoNtL"; const termsVersion = 20240110; diff --git a/src/CustomMatrixModal.svelte b/src/CustomMatrixModal.svelte index 8cf6a78a..e1b3bad7 100644 --- a/src/CustomMatrixModal.svelte +++ b/src/CustomMatrixModal.svelte @@ -1,5 +1,6 @@ @@ -44,7 +44,6 @@
+ The maximum number of columns allowed in a matrix has been increased to 50. + The previous limit was 10. The number of rows allowed is unlimited, however, + performance may become sluggish with large matrices. +
+ +
diff --git a/src/constants.ts b/src/constants.ts
index 32ec9ba2..ed8898fc 100644
--- a/src/constants.ts
+++ b/src/constants.ts
@@ -10,4 +10,6 @@ export const INLINE_SHORTCUTS = {
'$doubleprime': '\\frac{\\mathrm{d}^{2}}{\\mathrm{d}\\left(#?\\right)^{2}}\\left(#?\\right)',
'$tripleprime': '\\frac{\\mathrm{d}^{3}}{\\mathrm{d}\\left(#?\\right)^{3}}\\left(#?\\right)',
'log_': '\\log_{#?}(#?)',
-};
\ No newline at end of file
+};
+
+export const MAX_MATRIX_COLS = 50;
diff --git a/src/parser/LatexToSympy.ts b/src/parser/LatexToSympy.ts
index 858705b9..3b84901d 100644
--- a/src/parser/LatexToSympy.ts
+++ b/src/parser/LatexToSympy.ts
@@ -13,6 +13,7 @@ import type { FieldTypes, Statement, QueryStatement, RangeQueryStatement, UserFu
ScatterXValuesQueryStatement, ScatterYValuesQueryStatement} from "./types";
import { RESERVED, GREEK_CHARS, UNASSIGNABLE, COMPARISON_MAP,
UNITS_WITH_OFFSET, TYPE_PARSING_ERRORS, BUILTIN_FUNCTION_MAP } from "./constants.js";
+import { MAX_MATRIX_COLS } from "../constants";
import {
type GuessContext, type Guess_listContext, IdContext, type Id_listContext,
type StatementContext, type QueryContext, type AssignContext, type EqualityContext, type PiExprContext,
@@ -1733,6 +1734,7 @@ export class LatexToSympy extends LatexParserVisitor