From e6c04bfecb493c04ef27518120c201201f46ae25 Mon Sep 17 00:00:00 2001 From: zorkow Date: Fri, 9 Oct 2020 14:48:47 +0100 Subject: [PATCH 1/8] Removes legacy tests. --- tests/legacy-tests/legacy-tests.sh | 127 - tests/legacy-tests/package-lock.json | 600 -- tests/legacy-tests/package.json | 20 - tests/legacy-tests/parser-action-tests.js | 167 - tests/legacy-tests/parser-ams-tests.js | 3546 -------- tests/legacy-tests/parser-amscd-tests.js | 5810 ------------- tests/legacy-tests/parser-amscomplex-tests.js | 3095 ------- tests/legacy-tests/parser-amsenv-tests.js | 3670 -------- tests/legacy-tests/parser-amserror-tests.js | 204 - tests/legacy-tests/parser-array-tests.js | 3590 -------- tests/legacy-tests/parser-base-tests.js | 6906 --------------- tests/legacy-tests/parser-bbox-tests.js | 544 -- tests/legacy-tests/parser-boldsymbol-tests.js | 384 - tests/legacy-tests/parser-braket-tests.js | 3755 -------- .../parser-bussproofs-reginf-tests.js | 103 - .../parser-bussproofs-regproofs-tests.js | 67 - tests/legacy-tests/parser-cancel-tests.js | 445 - tests/legacy-tests/parser-colorv2-tests.js | 236 - tests/legacy-tests/parser-complex-tests.js | 4122 --------- .../parser-digits-european-tests.js | 213 - tests/legacy-tests/parser-digits-tests.js | 259 - tests/legacy-tests/parser-enclose-tests.js | 289 - tests/legacy-tests/parser-error-tests.js | 2677 ------ tests/legacy-tests/parser-extpfeil-tests.js | 705 -- tests/legacy-tests/parser-fenced-tests.js | 1259 --- tests/legacy-tests/parser-html-tests.js | 501 -- .../parser-internal-math-tests.js | 723 -- tests/legacy-tests/parser-macros-tests.js | 289 - tests/legacy-tests/parser-mathchoice-tests.js | 3958 --------- tests/legacy-tests/parser-matrix-tests.js | 1061 --- tests/legacy-tests/parser-mhchem-0-tests.js | 3764 -------- tests/legacy-tests/parser-mhchem-1-tests.js | 4031 --------- tests/legacy-tests/parser-mhchem-2-tests.js | 4058 --------- tests/legacy-tests/parser-mhchem-3-tests.js | 3715 -------- tests/legacy-tests/parser-mhchem-4-tests.js | 4521 ---------- tests/legacy-tests/parser-mhchem-5-tests.js | 3480 -------- tests/legacy-tests/parser-mhchem-6-tests.js | 5499 ------------ tests/legacy-tests/parser-mhchem-7-tests.js | 3022 ------- tests/legacy-tests/parser-mhchem-8-tests.js | 4516 ---------- tests/legacy-tests/parser-mhchem-9-tests.js | 3851 --------- tests/legacy-tests/parser-movlim-tests.js | 1549 ---- tests/legacy-tests/parser-multirel-tests.js | 2024 ----- .../parser-multline-shove-tests.js | 1429 ---- tests/legacy-tests/parser-ncerror-tests.js | 687 -- tests/legacy-tests/parser-newcommand-tests.js | 4295 ---------- tests/legacy-tests/parser-noerror-tests.js | 2623 ------ .../legacy-tests/parser-noundefined-tests.js | 96 - tests/legacy-tests/parser-other-tests.js | 711 -- .../legacy-tests/parser-physics-1-0-tests.js | 803 -- .../legacy-tests/parser-physics-1-1-tests.js | 1239 --- .../legacy-tests/parser-physics-1-2-tests.js | 1178 --- .../legacy-tests/parser-physics-1-3-tests.js | 614 -- .../legacy-tests/parser-physics-1-4-tests.js | 2222 ----- .../legacy-tests/parser-physics-1-5-tests.js | 610 -- .../legacy-tests/parser-physics-1-6-tests.js | 691 -- .../legacy-tests/parser-physics-1-7-tests.js | 865 -- .../legacy-tests/parser-physics-2-0-tests.js | 446 - .../legacy-tests/parser-physics-2-1-tests.js | 744 -- .../legacy-tests/parser-physics-2-2-tests.js | 1034 --- .../legacy-tests/parser-physics-2-3-tests.js | 1034 --- .../legacy-tests/parser-physics-2-4-tests.js | 631 -- .../legacy-tests/parser-physics-2-5-tests.js | 620 -- .../legacy-tests/parser-physics-2-6-tests.js | 354 - .../legacy-tests/parser-physics-2-7-tests.js | 387 - .../legacy-tests/parser-physics-3-0-tests.js | 1071 --- .../legacy-tests/parser-physics-3-1-tests.js | 1071 --- .../legacy-tests/parser-physics-3-2-tests.js | 1275 --- .../legacy-tests/parser-physics-3-3-tests.js | 1275 --- .../legacy-tests/parser-physics-3-4-tests.js | 1464 ---- .../legacy-tests/parser-physics-3-5-tests.js | 1790 ---- .../legacy-tests/parser-physics-3-6-tests.js | 1761 ---- .../legacy-tests/parser-physics-3-7-tests.js | 1825 ---- .../legacy-tests/parser-physics-4-0-tests.js | 751 -- .../legacy-tests/parser-physics-5-0-tests.js | 2677 ------ .../legacy-tests/parser-physics-5-1-tests.js | 2509 ------ .../legacy-tests/parser-physics-5-2-tests.js | 2695 ------ .../legacy-tests/parser-physics-5-3-tests.js | 1265 --- .../legacy-tests/parser-physics-5-4-tests.js | 1042 --- .../legacy-tests/parser-physics-5-5-tests.js | 1644 ---- .../legacy-tests/parser-physics-6-0-tests.js | 2346 ----- .../legacy-tests/parser-physics-6-1-tests.js | 1982 ----- .../legacy-tests/parser-physics-6-2-tests.js | 3544 -------- .../legacy-tests/parser-physics-6-3-tests.js | 2984 ------- .../legacy-tests/parser-physics-6-4-tests.js | 1636 ---- .../legacy-tests/parser-physics-7-0-tests.js | 2118 ----- .../legacy-tests/parser-physics-7-1-tests.js | 1519 ---- .../legacy-tests/parser-physics-7-10-tests.js | 2668 ------ .../legacy-tests/parser-physics-7-11-tests.js | 7550 ----------------- .../legacy-tests/parser-physics-7-2-tests.js | 2234 ----- .../legacy-tests/parser-physics-7-3-tests.js | 1855 ---- .../legacy-tests/parser-physics-7-4-tests.js | 983 --- .../legacy-tests/parser-physics-7-5-tests.js | 1792 ---- .../legacy-tests/parser-physics-7-6-tests.js | 4195 --------- .../legacy-tests/parser-physics-7-7-tests.js | 1707 ---- .../legacy-tests/parser-physics-7-8-tests.js | 1359 --- .../legacy-tests/parser-physics-7-9-tests.js | 3270 ------- tests/legacy-tests/parser-tag-all-tests.js | 3177 ------- tests/legacy-tests/parser-tag-ams-tests.js | 3181 ------- tests/legacy-tests/parser-tag-none-tests.js | 2854 ------- tests/legacy-tests/parser-test.js | 138 - tests/legacy-tests/parser-unicode-tests.js | 440 - tests/legacy-tests/parser-verb-tests.js | 343 - tests/legacy-tests/test.js | 121 - tests/legacy-tests/tex-keyval-tests.js | 234 - 104 files changed, 195013 deletions(-) delete mode 100755 tests/legacy-tests/legacy-tests.sh delete mode 100644 tests/legacy-tests/package-lock.json delete mode 100644 tests/legacy-tests/package.json delete mode 100644 tests/legacy-tests/parser-action-tests.js delete mode 100644 tests/legacy-tests/parser-ams-tests.js delete mode 100644 tests/legacy-tests/parser-amscd-tests.js delete mode 100644 tests/legacy-tests/parser-amscomplex-tests.js delete mode 100644 tests/legacy-tests/parser-amsenv-tests.js delete mode 100644 tests/legacy-tests/parser-amserror-tests.js delete mode 100644 tests/legacy-tests/parser-array-tests.js delete mode 100644 tests/legacy-tests/parser-base-tests.js delete mode 100644 tests/legacy-tests/parser-bbox-tests.js delete mode 100644 tests/legacy-tests/parser-boldsymbol-tests.js delete mode 100644 tests/legacy-tests/parser-braket-tests.js delete mode 100644 tests/legacy-tests/parser-bussproofs-reginf-tests.js delete mode 100644 tests/legacy-tests/parser-bussproofs-regproofs-tests.js delete mode 100644 tests/legacy-tests/parser-cancel-tests.js delete mode 100644 tests/legacy-tests/parser-colorv2-tests.js delete mode 100644 tests/legacy-tests/parser-complex-tests.js delete mode 100644 tests/legacy-tests/parser-digits-european-tests.js delete mode 100644 tests/legacy-tests/parser-digits-tests.js delete mode 100644 tests/legacy-tests/parser-enclose-tests.js delete mode 100644 tests/legacy-tests/parser-error-tests.js delete mode 100644 tests/legacy-tests/parser-extpfeil-tests.js delete mode 100644 tests/legacy-tests/parser-fenced-tests.js delete mode 100644 tests/legacy-tests/parser-html-tests.js delete mode 100644 tests/legacy-tests/parser-internal-math-tests.js delete mode 100644 tests/legacy-tests/parser-macros-tests.js delete mode 100644 tests/legacy-tests/parser-mathchoice-tests.js delete mode 100644 tests/legacy-tests/parser-matrix-tests.js delete mode 100644 tests/legacy-tests/parser-mhchem-0-tests.js delete mode 100644 tests/legacy-tests/parser-mhchem-1-tests.js delete mode 100644 tests/legacy-tests/parser-mhchem-2-tests.js delete mode 100644 tests/legacy-tests/parser-mhchem-3-tests.js delete mode 100644 tests/legacy-tests/parser-mhchem-4-tests.js delete mode 100644 tests/legacy-tests/parser-mhchem-5-tests.js delete mode 100644 tests/legacy-tests/parser-mhchem-6-tests.js delete mode 100644 tests/legacy-tests/parser-mhchem-7-tests.js delete mode 100644 tests/legacy-tests/parser-mhchem-8-tests.js delete mode 100644 tests/legacy-tests/parser-mhchem-9-tests.js delete mode 100644 tests/legacy-tests/parser-movlim-tests.js delete mode 100644 tests/legacy-tests/parser-multirel-tests.js delete mode 100644 tests/legacy-tests/parser-multline-shove-tests.js delete mode 100644 tests/legacy-tests/parser-ncerror-tests.js delete mode 100644 tests/legacy-tests/parser-newcommand-tests.js delete mode 100644 tests/legacy-tests/parser-noerror-tests.js delete mode 100644 tests/legacy-tests/parser-noundefined-tests.js delete mode 100644 tests/legacy-tests/parser-other-tests.js delete mode 100644 tests/legacy-tests/parser-physics-1-0-tests.js delete mode 100644 tests/legacy-tests/parser-physics-1-1-tests.js delete mode 100644 tests/legacy-tests/parser-physics-1-2-tests.js delete mode 100644 tests/legacy-tests/parser-physics-1-3-tests.js delete mode 100644 tests/legacy-tests/parser-physics-1-4-tests.js delete mode 100644 tests/legacy-tests/parser-physics-1-5-tests.js delete mode 100644 tests/legacy-tests/parser-physics-1-6-tests.js delete mode 100644 tests/legacy-tests/parser-physics-1-7-tests.js delete mode 100644 tests/legacy-tests/parser-physics-2-0-tests.js delete mode 100644 tests/legacy-tests/parser-physics-2-1-tests.js delete mode 100644 tests/legacy-tests/parser-physics-2-2-tests.js delete mode 100644 tests/legacy-tests/parser-physics-2-3-tests.js delete mode 100644 tests/legacy-tests/parser-physics-2-4-tests.js delete mode 100644 tests/legacy-tests/parser-physics-2-5-tests.js delete mode 100644 tests/legacy-tests/parser-physics-2-6-tests.js delete mode 100644 tests/legacy-tests/parser-physics-2-7-tests.js delete mode 100644 tests/legacy-tests/parser-physics-3-0-tests.js delete mode 100644 tests/legacy-tests/parser-physics-3-1-tests.js delete mode 100644 tests/legacy-tests/parser-physics-3-2-tests.js delete mode 100644 tests/legacy-tests/parser-physics-3-3-tests.js delete mode 100644 tests/legacy-tests/parser-physics-3-4-tests.js delete mode 100644 tests/legacy-tests/parser-physics-3-5-tests.js delete mode 100644 tests/legacy-tests/parser-physics-3-6-tests.js delete mode 100644 tests/legacy-tests/parser-physics-3-7-tests.js delete mode 100644 tests/legacy-tests/parser-physics-4-0-tests.js delete mode 100644 tests/legacy-tests/parser-physics-5-0-tests.js delete mode 100644 tests/legacy-tests/parser-physics-5-1-tests.js delete mode 100644 tests/legacy-tests/parser-physics-5-2-tests.js delete mode 100644 tests/legacy-tests/parser-physics-5-3-tests.js delete mode 100644 tests/legacy-tests/parser-physics-5-4-tests.js delete mode 100644 tests/legacy-tests/parser-physics-5-5-tests.js delete mode 100644 tests/legacy-tests/parser-physics-6-0-tests.js delete mode 100644 tests/legacy-tests/parser-physics-6-1-tests.js delete mode 100644 tests/legacy-tests/parser-physics-6-2-tests.js delete mode 100644 tests/legacy-tests/parser-physics-6-3-tests.js delete mode 100644 tests/legacy-tests/parser-physics-6-4-tests.js delete mode 100644 tests/legacy-tests/parser-physics-7-0-tests.js delete mode 100644 tests/legacy-tests/parser-physics-7-1-tests.js delete mode 100644 tests/legacy-tests/parser-physics-7-10-tests.js delete mode 100644 tests/legacy-tests/parser-physics-7-11-tests.js delete mode 100644 tests/legacy-tests/parser-physics-7-2-tests.js delete mode 100644 tests/legacy-tests/parser-physics-7-3-tests.js delete mode 100644 tests/legacy-tests/parser-physics-7-4-tests.js delete mode 100644 tests/legacy-tests/parser-physics-7-5-tests.js delete mode 100644 tests/legacy-tests/parser-physics-7-6-tests.js delete mode 100644 tests/legacy-tests/parser-physics-7-7-tests.js delete mode 100644 tests/legacy-tests/parser-physics-7-8-tests.js delete mode 100644 tests/legacy-tests/parser-physics-7-9-tests.js delete mode 100644 tests/legacy-tests/parser-tag-all-tests.js delete mode 100644 tests/legacy-tests/parser-tag-ams-tests.js delete mode 100644 tests/legacy-tests/parser-tag-none-tests.js delete mode 100644 tests/legacy-tests/parser-test.js delete mode 100644 tests/legacy-tests/parser-unicode-tests.js delete mode 100644 tests/legacy-tests/parser-verb-tests.js delete mode 100644 tests/legacy-tests/test.js delete mode 100644 tests/legacy-tests/tex-keyval-tests.js diff --git a/tests/legacy-tests/legacy-tests.sh b/tests/legacy-tests/legacy-tests.sh deleted file mode 100755 index 65fb617..0000000 --- a/tests/legacy-tests/legacy-tests.sh +++ /dev/null @@ -1,127 +0,0 @@ -#!/bin/bash - -## Legacy tests for saving in tag. -## run npm install followed by ./legacy-tests.sh - -NODE="node -r esm" -DIR=`dirname $0` - -if [ $# -eq 0 ]; then - - $NODE $DIR/tex-keyval-tests.js - - $NODE $DIR/parser-action-tests.js - $NODE $DIR/parser-ams-tests.js - $NODE $DIR/parser-amscd-tests.js - $NODE $DIR/parser-amscomplex-tests.js - $NODE $DIR/parser-amsenv-tests.js - $NODE $DIR/parser-amserror-tests.js - $NODE $DIR/parser-array-tests.js - $NODE $DIR/parser-base-tests.js - $NODE $DIR/parser-bbox-tests.js - $NODE $DIR/parser-boldsymbol-tests.js - $NODE $DIR/parser-braket-tests.js - $NODE $DIR/parser-bussproofs-reginf-tests.js - $NODE $DIR/parser-bussproofs-regproofs-tests.js - $NODE $DIR/parser-cancel-tests.js - $NODE $DIR/parser-colorv2-tests.js - $NODE $DIR/parser-complex-tests.js - $NODE $DIR/parser-digits-european-tests.js - $NODE $DIR/parser-digits-tests.js - $NODE $DIR/parser-enclose-tests.js - $NODE $DIR/parser-error-tests.js - $NODE $DIR/parser-extpfeil-tests.js - $NODE $DIR/parser-fenced-tests.js - $NODE $DIR/parser-html-tests.js - $NODE $DIR/parser-internal-math-tests.js - $NODE $DIR/parser-macros-tests.js - $NODE $DIR/parser-mathchoice-tests.js - $NODE $DIR/parser-matrix-tests.js - $NODE $DIR/parser-mhchem-0-tests.js - $NODE $DIR/parser-mhchem-1-tests.js - $NODE $DIR/parser-mhchem-2-tests.js - $NODE $DIR/parser-mhchem-3-tests.js - $NODE $DIR/parser-mhchem-4-tests.js - $NODE $DIR/parser-mhchem-5-tests.js - $NODE $DIR/parser-mhchem-6-tests.js - $NODE $DIR/parser-mhchem-7-tests.js - $NODE $DIR/parser-mhchem-8-tests.js - $NODE $DIR/parser-mhchem-9-tests.js - $NODE $DIR/parser-movlim-tests.js - $NODE $DIR/parser-multirel-tests.js - $NODE $DIR/parser-multline-shove-tests.js - $NODE $DIR/parser-ncerror-tests.js - $NODE $DIR/parser-newcommand-tests.js - $NODE $DIR/parser-noerror-tests.js - $NODE $DIR/parser-noundefined-tests.js - $NODE $DIR/parser-other-tests.js - $NODE $DIR/parser-physics-1-0-tests.js - $NODE $DIR/parser-physics-1-1-tests.js - $NODE $DIR/parser-physics-1-2-tests.js - $NODE $DIR/parser-physics-1-3-tests.js - $NODE $DIR/parser-physics-1-4-tests.js - $NODE $DIR/parser-physics-1-5-tests.js - $NODE $DIR/parser-physics-1-6-tests.js - $NODE $DIR/parser-physics-1-7-tests.js - $NODE $DIR/parser-physics-2-0-tests.js - $NODE $DIR/parser-physics-2-1-tests.js - $NODE $DIR/parser-physics-2-2-tests.js - $NODE $DIR/parser-physics-2-3-tests.js - $NODE $DIR/parser-physics-2-4-tests.js - $NODE $DIR/parser-physics-2-5-tests.js - $NODE $DIR/parser-physics-2-6-tests.js - $NODE $DIR/parser-physics-2-7-tests.js - $NODE $DIR/parser-physics-3-0-tests.js - $NODE $DIR/parser-physics-3-1-tests.js - $NODE $DIR/parser-physics-3-2-tests.js - $NODE $DIR/parser-physics-3-3-tests.js - $NODE $DIR/parser-physics-3-4-tests.js - $NODE $DIR/parser-physics-3-5-tests.js - $NODE $DIR/parser-physics-3-6-tests.js - $NODE $DIR/parser-physics-3-7-tests.js - $NODE $DIR/parser-physics-4-0-tests.js - $NODE $DIR/parser-physics-5-0-tests.js - $NODE $DIR/parser-physics-5-1-tests.js - $NODE $DIR/parser-physics-5-2-tests.js - $NODE $DIR/parser-physics-5-3-tests.js - $NODE $DIR/parser-physics-5-4-tests.js - $NODE $DIR/parser-physics-5-5-tests.js - $NODE $DIR/parser-physics-6-0-tests.js - $NODE $DIR/parser-physics-6-1-tests.js - $NODE $DIR/parser-physics-6-2-tests.js - $NODE $DIR/parser-physics-6-3-tests.js - $NODE $DIR/parser-physics-6-4-tests.js - $NODE $DIR/parser-physics-7-0-tests.js - $NODE $DIR/parser-physics-7-1-tests.js - $NODE $DIR/parser-physics-7-10-tests.js - $NODE $DIR/parser-physics-7-11-tests.js - $NODE $DIR/parser-physics-7-2-tests.js - $NODE $DIR/parser-physics-7-3-tests.js - $NODE $DIR/parser-physics-7-4-tests.js - $NODE $DIR/parser-physics-7-5-tests.js - $NODE $DIR/parser-physics-7-6-tests.js - $NODE $DIR/parser-physics-7-7-tests.js - $NODE $DIR/parser-physics-7-8-tests.js - $NODE $DIR/parser-physics-7-9-tests.js - $NODE $DIR/parser-tag-all-tests.js - $NODE $DIR/parser-tag-ams-tests.js - $NODE $DIR/parser-tag-none-tests.js - $NODE $DIR/parser-unicode-tests.js - $NODE $DIR/parser-verb-tests.js - - exit 0 -else - repeat=$1 -fi - -i=0 -sum=0 -while [ $i -lt $repeat ] -do - sum=$(( $sum + `$NODE $DIR/parser-tests.js | tail -1 | awk -Fm '{print $1}'`)) - i=$(( $i + 1 )) -done - -echo 'Total: ' $sum -average=`bc -l <<< "($sum / $repeat)"` -echo 'Average: ' $average diff --git a/tests/legacy-tests/package-lock.json b/tests/legacy-tests/package-lock.json deleted file mode 100644 index 0ae968c..0000000 --- a/tests/legacy-tests/package-lock.json +++ /dev/null @@ -1,600 +0,0 @@ -{ - "name": "MathJax-tex-tests", - "version": "0.2.0", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "array-filter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-1.0.0.tgz", - "integrity": "sha1-uveeYubvTCpMC4MSMtr/7CUfnYM=" - }, - "available-typed-arrays": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.2.tgz", - "integrity": "sha512-XWX3OX8Onv97LMk/ftVyBibpGwY5a8SmuxZPzeOxqmuEqUCOM9ZE+uIaD1VNJ5QnvU2UQusvmKbuM1FR8QWGfQ==", - "requires": { - "array-filter": "^1.0.0" - } - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "commander": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-6.1.0.tgz", - "integrity": "sha512-wl7PNrYWd2y5mp1OK/LhTlv8Ff4kQJQRXXAvF+uU/TPNiVJUxZLRYGj/B0y/lPGAVcSbJqH2Za/cvHmrPMC8mA==" - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - }, - "deep-equal": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.0.3.tgz", - "integrity": "sha512-Spqdl4H+ky45I9ByyJtXteOm9CaIrPmnIPmOhrkKGNYWeDgCvJ8jNYVCTjChxW4FqGuZnLHADc8EKRMX6+CgvA==", - "requires": { - "es-abstract": "^1.17.5", - "es-get-iterator": "^1.1.0", - "is-arguments": "^1.0.4", - "is-date-object": "^1.0.2", - "is-regex": "^1.0.5", - "isarray": "^2.0.5", - "object-is": "^1.1.2", - "object-keys": "^1.1.1", - "object.assign": "^4.1.0", - "regexp.prototype.flags": "^1.3.0", - "side-channel": "^1.0.2", - "which-boxed-primitive": "^1.0.1", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.2" - } - }, - "define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "requires": { - "object-keys": "^1.0.12" - } - }, - "defined": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", - "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=" - }, - "dotignore": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/dotignore/-/dotignore-0.1.2.tgz", - "integrity": "sha512-UGGGWfSauusaVJC+8fgV+NVvBXkCTmVv7sk6nojDZZvuOUNGUy0Zk4UpHQD6EDjS0jpBwcACvH4eofvyzBcRDw==", - "requires": { - "minimatch": "^3.0.4" - } - }, - "es-abstract": { - "version": "1.17.7", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.7.tgz", - "integrity": "sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g==", - "requires": { - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.2.2", - "is-regex": "^1.1.1", - "object-inspect": "^1.8.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.1", - "string.prototype.trimend": "^1.0.1", - "string.prototype.trimstart": "^1.0.1" - } - }, - "es-get-iterator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.0.tgz", - "integrity": "sha512-UfrmHuWQlNMTs35e1ypnvikg6jCz3SK8v8ImvmDsh36fCVUR1MqoFDiyn0/k52C8NqO3YsO8Oe0azeesNuqSsQ==", - "requires": { - "es-abstract": "^1.17.4", - "has-symbols": "^1.0.1", - "is-arguments": "^1.0.4", - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-string": "^1.0.5", - "isarray": "^2.0.5" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "esm": { - "version": "3.2.25", - "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", - "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==" - }, - "for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "requires": { - "is-callable": "^1.1.3" - } - }, - "foreach": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", - "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=" - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-symbols": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", - "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==" - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "is-arguments": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.0.4.tgz", - "integrity": "sha512-xPh0Rmt8NE65sNzvyUmWgI1tz3mKq74lGA0mL8LYZcoIzKOzDh6HmrYm3d18k60nHerC8A9Km8kYu87zfSFnLA==" - }, - "is-bigint": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.0.tgz", - "integrity": "sha512-t5mGUXC/xRheCK431ylNiSkGGpBp8bHENBcENTkDT6ppwPzEVxNGZRvgvmOEfbWkFhA7D2GEuE2mmQTr78sl2g==" - }, - "is-boolean-object": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.0.1.tgz", - "integrity": "sha512-TqZuVwa/sppcrhUCAYkGBk7w0yxfQQnxq28fjkO53tnK9FQXmdwz2JS5+GjsWQ6RByES1K40nI+yDic5c9/aAQ==" - }, - "is-callable": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.2.tgz", - "integrity": "sha512-dnMqspv5nU3LoewK2N/y7KLtxtakvTuaCsU9FU50/QDmdbHNy/4/JuRtMHqRU22o3q+W89YQndQEeCVwK+3qrA==" - }, - "is-date-object": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", - "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==" - }, - "is-map": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.1.tgz", - "integrity": "sha512-T/S49scO8plUiAOA2DBTBG3JHpn1yiw0kRp6dgiZ0v2/6twi5eiB0rHtHFH9ZIrvlWc6+4O+m4zg5+Z833aXgw==" - }, - "is-negative-zero": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.0.tgz", - "integrity": "sha1-lVOxIbD6wohp2p7UWeIMdUN4hGE=" - }, - "is-number-object": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.4.tgz", - "integrity": "sha512-zohwelOAur+5uXtk8O3GPQ1eAcu4ZX3UwxQhUlfFFMNpUd83gXgjbhJh6HmB6LUNV/ieOLQuDwJO3dWJosUeMw==" - }, - "is-regex": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz", - "integrity": "sha512-1+QkEcxiLlB7VEyFtyBg94e08OAsvq7FUBgApTq/w2ymCLyKJgDPsybBENVtA7XCQEgEXxKPonG+mvYRxh/LIg==", - "requires": { - "has-symbols": "^1.0.1" - } - }, - "is-set": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.1.tgz", - "integrity": "sha512-eJEzOtVyenDs1TMzSQ3kU3K+E0GUS9sno+F0OBT97xsgcJsF9nXMBtkT9/kut5JEpM7oL7X/0qxR17K3mcwIAA==" - }, - "is-string": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz", - "integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==" - }, - "is-symbol": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", - "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", - "requires": { - "has-symbols": "^1.0.1" - } - }, - "is-typed-array": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.3.tgz", - "integrity": "sha512-BSYUBOK/HJibQ30wWkWold5txYwMUXQct9YHAQJr8fSwvZoiglcqB0pd7vEN23+Tsi9IUEjztdOSzl4qLVYGTQ==", - "requires": { - "available-typed-arrays": "^1.0.0", - "es-abstract": "^1.17.4", - "foreach": "^2.0.5", - "has-symbols": "^1.0.1" - } - }, - "is-weakmap": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", - "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==" - }, - "is-weakset": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.1.tgz", - "integrity": "sha512-pi4vhbhVHGLxohUw7PhGsueT4vRGFoXhP7+RGN0jKIv9+8PWYCQTqtADngrxOm2g46hoH0+g8uZZBzMrvVGDmw==" - }, - "isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" - }, - "mathjax-full": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/mathjax-full/-/mathjax-full-3.1.2.tgz", - "integrity": "sha512-jFCwRFdFwIOa8J7r6VZT0AIv9ZwbLQ9aPc9YZp695NTvv7XKU2NunJodA+zDWzElIFJ7mTsImyfe5R3QyRNZjw==", - "requires": { - "esm": "^3.2.25", - "mj-context-menu": "^0.6.1", - "speech-rule-engine": "^3.1.1" - } - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" - }, - "mj-context-menu": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/mj-context-menu/-/mj-context-menu-0.6.1.tgz", - "integrity": "sha512-7NO5s6n10TIV96d4g2uDpG7ZDpIhMh0QNfGdJw/W47JswFcosz457wqz/b5sAKvl12sxINGFCn80NZHKwxQEXA==" - }, - "object-inspect": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.8.0.tgz", - "integrity": "sha512-jLdtEOB112fORuypAyl/50VRVIBIdVQOSUUGQHzJ4xBSbit81zRarz7GThkEFZy1RceYrWYcPcBFPQwHyAc1gA==" - }, - "object-is": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.3.tgz", - "integrity": "sha512-teyqLvFWzLkq5B9ki8FVWA902UER2qkxmdA4nLf+wjOLAWgxzCWZNCxpDq9MvE8MmhWNr+I8w3BN49Vx36Y6Xg==", - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.1" - }, - "dependencies": { - "es-abstract": { - "version": "1.18.0-next.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0-next.1.tgz", - "integrity": "sha512-I4UGspA0wpZXWENrdA0uHbnhte683t3qT/1VFH9aX2dA5PPSf6QW5HHXf5HImaqPmjXaVeVk4RGWnaylmV7uAA==", - "requires": { - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.2.2", - "is-negative-zero": "^2.0.0", - "is-regex": "^1.1.1", - "object-inspect": "^1.8.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.1", - "string.prototype.trimend": "^1.0.1", - "string.prototype.trimstart": "^1.0.1" - } - } - } - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" - }, - "object.assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.1.tgz", - "integrity": "sha512-VT/cxmx5yaoHSOTSyrCygIDFco+RsibY2NM0a4RdEeY/4KgqezwFtK1yr3U67xYhqJSlASm2pKhLVzPj2lr4bA==", - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.0", - "has-symbols": "^1.0.1", - "object-keys": "^1.1.1" - }, - "dependencies": { - "es-abstract": { - "version": "1.18.0-next.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0-next.1.tgz", - "integrity": "sha512-I4UGspA0wpZXWENrdA0uHbnhte683t3qT/1VFH9aX2dA5PPSf6QW5HHXf5HImaqPmjXaVeVk4RGWnaylmV7uAA==", - "requires": { - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.2.2", - "is-negative-zero": "^2.0.0", - "is-regex": "^1.1.1", - "object-inspect": "^1.8.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.1", - "string.prototype.trimend": "^1.0.1", - "string.prototype.trimstart": "^1.0.1" - } - } - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { - "wrappy": "1" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" - }, - "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" - }, - "regexp.prototype.flags": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.0.tgz", - "integrity": "sha512-2+Q0C5g951OlYlJz6yu5/M33IcsESLlLfsyIaLJaG4FA2r4yP8MvVMJUUP/fVBkSpbbbZlS5gynbEWLipiiXiQ==", - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.0-next.1" - } - }, - "resolve": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", - "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", - "requires": { - "path-parse": "^1.0.6" - } - }, - "resumer": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/resumer/-/resumer-0.0.0.tgz", - "integrity": "sha1-8ej0YeQGS6Oegq883CqMiT0HZ1k=", - "requires": { - "through": "~2.3.4" - } - }, - "side-channel": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.3.tgz", - "integrity": "sha512-A6+ByhlLkksFoUepsGxfj5x1gTSrs+OydsRptUxeNCabQpCFUvcwIczgOigI8vhY/OJCnPnyE9rGiwgvr9cS1g==", - "requires": { - "es-abstract": "^1.18.0-next.0", - "object-inspect": "^1.8.0" - }, - "dependencies": { - "es-abstract": { - "version": "1.18.0-next.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0-next.1.tgz", - "integrity": "sha512-I4UGspA0wpZXWENrdA0uHbnhte683t3qT/1VFH9aX2dA5PPSf6QW5HHXf5HImaqPmjXaVeVk4RGWnaylmV7uAA==", - "requires": { - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.2.2", - "is-negative-zero": "^2.0.0", - "is-regex": "^1.1.1", - "object-inspect": "^1.8.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.1", - "string.prototype.trimend": "^1.0.1", - "string.prototype.trimstart": "^1.0.1" - } - } - } - }, - "speech-rule-engine": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/speech-rule-engine/-/speech-rule-engine-3.1.1.tgz", - "integrity": "sha512-FGX8B44yI3yGhmcw8nZ/by2ffUlZG6m5b/O3RULXsSiwhL/evL+jwQ6BXQxV3gGtOYptOFalTVCAFknAJgBKAg==", - "requires": { - "commander": "^6.0.0", - "wicked-good-xpath": "^1.3.0", - "xmldom-sre": "^0.1.31" - } - }, - "string.prototype.trim": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.2.tgz", - "integrity": "sha512-b5yrbl3BXIjHau9Prk7U0RRYcUYdN4wGSVaqoBQS50CCE3KBuYU0TYRNPFCP7aVoNMX87HKThdMRVIP3giclKg==", - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.0" - }, - "dependencies": { - "es-abstract": { - "version": "1.18.0-next.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0-next.1.tgz", - "integrity": "sha512-I4UGspA0wpZXWENrdA0uHbnhte683t3qT/1VFH9aX2dA5PPSf6QW5HHXf5HImaqPmjXaVeVk4RGWnaylmV7uAA==", - "requires": { - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.2.2", - "is-negative-zero": "^2.0.0", - "is-regex": "^1.1.1", - "object-inspect": "^1.8.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.1", - "string.prototype.trimend": "^1.0.1", - "string.prototype.trimstart": "^1.0.1" - } - } - } - }, - "string.prototype.trimend": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz", - "integrity": "sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g==", - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5" - } - }, - "string.prototype.trimstart": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz", - "integrity": "sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw==", - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5" - } - }, - "tape": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/tape/-/tape-5.0.1.tgz", - "integrity": "sha512-wVsOl2shKPcjdJdc8a+PwacvrOdJZJ57cLUXlxW4TQ2R6aihXwG0m0bKm4mA4wjtQNTaLMCrYNEb4f9fjHKUYQ==", - "requires": { - "deep-equal": "^2.0.3", - "defined": "^1.0.0", - "dotignore": "^0.1.2", - "for-each": "^0.3.3", - "function-bind": "^1.1.1", - "glob": "^7.1.6", - "has": "^1.0.3", - "inherits": "^2.0.4", - "is-regex": "^1.0.5", - "minimist": "^1.2.5", - "object-inspect": "^1.7.0", - "object-is": "^1.1.2", - "object.assign": "^4.1.0", - "resolve": "^1.17.0", - "resumer": "^0.0.0", - "string.prototype.trim": "^1.2.1", - "through": "^2.3.8" - } - }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" - }, - "which-boxed-primitive": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.1.tgz", - "integrity": "sha512-7BT4TwISdDGBgaemWU0N0OU7FeAEJ9Oo2P1PHRm/FCWoEi2VLWC9b6xvxAA3C/NMpxg3HXVgi0sMmGbNUbNepQ==", - "requires": { - "is-bigint": "^1.0.0", - "is-boolean-object": "^1.0.0", - "is-number-object": "^1.0.3", - "is-string": "^1.0.4", - "is-symbol": "^1.0.2" - } - }, - "which-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", - "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", - "requires": { - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-weakmap": "^2.0.1", - "is-weakset": "^2.0.1" - } - }, - "which-typed-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.2.tgz", - "integrity": "sha512-KT6okrd1tE6JdZAy3o2VhMoYPh3+J6EMZLyrxBQsZflI1QCZIxMrIYLkosd8Twf+YfknVIHmYQPgJt238p8dnQ==", - "requires": { - "available-typed-arrays": "^1.0.2", - "es-abstract": "^1.17.5", - "foreach": "^2.0.5", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.1", - "is-typed-array": "^1.1.3" - } - }, - "wicked-good-xpath": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/wicked-good-xpath/-/wicked-good-xpath-1.3.0.tgz", - "integrity": "sha1-gbDpXoZQ5JyUsiKY//hoa1VTz2w=" - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - }, - "xmldom-sre": { - "version": "0.1.31", - "resolved": "https://registry.npmjs.org/xmldom-sre/-/xmldom-sre-0.1.31.tgz", - "integrity": "sha512-f9s+fUkX04BxQf+7mMWAp5zk61pciie+fFLC9hX9UVvCeJQfNHRHXpeo5MPcR0EUf57PYLdt+ZO4f3Ipk2oZUw==" - } - } -} diff --git a/tests/legacy-tests/package.json b/tests/legacy-tests/package.json deleted file mode 100644 index 2c846d6..0000000 --- a/tests/legacy-tests/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "MathJax-tex-tests", - "version": "0.2.0", - "description": "Test framework for MathJax v3 TeX parser.", - "scripts": { - "test": "./tests.sh" - }, - "maintainers": [ - "Volker Sorge (http://mathjax.org)" - ], - "bugs": { - "email": "V.Sorge@mathjax.org", - "url": "https://github.com/MathJax/MathJax-dev/issues" - }, - "license": "Apache-2.0", - "dependencies": { - "mathjax-full": "^3.1.2", - "tape": "^5.0.1" - } -} diff --git a/tests/legacy-tests/parser-action-tests.js b/tests/legacy-tests/parser-action-tests.js deleted file mode 100644 index ec24a51..0000000 --- a/tests/legacy-tests/parser-action-tests.js +++ /dev/null @@ -1,167 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/action/ActionConfiguration.js'; - -class ParserActionTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'action']; - } - -} - -let parserTest = new ParserActionTest(); - - -parserTest.runTest( - 'TextTip', '\\texttip{A}{B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "maction", - "texClass": 0, - "attributes": {"actiontype": "tooltip"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}], - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'MathTip', '\\mathtip{A}{B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "maction", - "texClass": 0, - "attributes": {"actiontype": "tooltip"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Toggle', '\\toggle A B C \\endtoggle', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "maction", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-ams-tests.js b/tests/legacy-tests/parser-ams-tests.js deleted file mode 100644 index b105fe6..0000000 --- a/tests/legacy-tests/parser-ams-tests.js +++ /dev/null @@ -1,3546 +0,0 @@ -import {ParserTest} from './parser-test.js'; - -class ParserAmsTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserAmsTest(); - -parserTest.runTest( - 'Symbol', '\\digamma', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ϝ"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Operator', '\\dotplus', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∔"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - -parserTest.runTest( - 'Delimiter', '\\ulcorner', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⌜"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Delimiter-left-right', '\\left\\ulcorner A \\right\\urcorner', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⌜", - "close": "⌝", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⌜"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⌝"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Macro', 'A\\implies B', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thickmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟹"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thickmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'AMS-math-mo', '\\iiiint', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "⨌"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - -parserTest.runTest( - 'AMS-math-macro', '\\ddddot{1}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⃜"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Normal Fraction', '\\frac{n}{k}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Text Fraction', '\\tfrac{n}{k}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": null, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Display Fraction', '\\dfrac{n}{k}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": null, - "attributes": {"displaystyle": true, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Normal Sub Fraction', 'a_\\frac{n}{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Text Sub Fraction', 'a_\\tfrac{n}{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": null, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Display Sub Fraction', 'a_\\dfrac{n}{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": null, - "attributes": {"displaystyle": true, - "scriptlevel": 0}, - "inherited": {}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Normal Binomial', '\\binom{n}{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 0}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": "0"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"withDelims": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Text Binomial', '\\tbinom{n}{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 0}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": "0"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"withDelims": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Display Binomial', '\\dbinom{n}{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": true, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 0}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": "0"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"withDelims": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Normal Sub Binomial', 'a_\\binom{n}{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"open": "(", - "close": ")", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": "0"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Text Sub Binomial', 'a_\\tbinom{n}{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": "0"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Display Sub Binomial', 'a_\\dbinom{n}{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": true, - "scriptlevel": 0}, - "inherited": {}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": "0"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Center Fraction', '\\cfrac{a}{bbb}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"width": 0, - "height": "8.6pt", - "depth": "3pt"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"width": 0, - "height": "8.6pt", - "depth": "3pt"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Left Fraction', '\\cfrac[l]{a}{bbb}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {"numalign": "left", - "denomalign": "left"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"width": 0, - "height": "8.6pt", - "depth": "3pt"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"width": 0, - "height": "8.6pt", - "depth": "3pt"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Right Fraction', '\\cfrac[r]{a}{bbb}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {"numalign": "right", - "denomalign": "right"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"width": 0, - "height": "8.6pt", - "depth": "3pt"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"width": 0, - "height": "8.6pt", - "depth": "3pt"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Above Left Arrow', '\\xleftarrow{abcd}', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "←"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.556em", - "lspace": "0.389em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - -parserTest.runTest( - 'Above Below Left Arrow', '\\xleftarrow[xyz]{abcd}', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munderover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "←"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.556em", - "lspace": "0.389em", - "voffset": "-.24em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.556em", - "lspace": "0.389em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - -parserTest.runTest( - 'Above Left Arrow in Context', 'A\\xleftarrow{abcd}B', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "←"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.556em", - "lspace": "0.389em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Above Right Arrow', '\\xrightarrow{abcd}', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - -parserTest.runTest( - 'Above Below Right Arrow', '\\xrightarrow[xyz]{abcd}', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munderover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": "-.24em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - -parserTest.runTest( - 'Above Right Arrow in Context', 'A\\xrightarrow{abcd}B', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Genfrac', '\\genfrac{[}{]}{0pt}{3}{a}{b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 2}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"open": "[", - "close": "]", - "texClass": 0}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": "0pt"}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"withDelims": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MultiInt', '\\idotsint', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋯"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'MultiInt in Context', 'a \\idotsint b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋯"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'MultiInt with Command', '\\idotsint\\sin x', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋯"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'MultiInt with Limits', '\\idotsint\\limits_a^b+3', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "munderover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movablelimits": false, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "⋯"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'DeclareMathOp', '\\DeclareMathOperator{\\R}{R}a\\R b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texClass": 1, - "movablelimits": false, - "movesupsub": false, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-amscd-tests.js b/tests/legacy-tests/parser-amscd-tests.js deleted file mode 100644 index a821a0a..0000000 --- a/tests/legacy-tests/parser-amscd-tests.js +++ /dev/null @@ -1,5810 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/amscd/AmsCdConfiguration.js'; - -class ParserAmsCDTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'amscd']; - } - -} - -let parserTest = new ParserAmsCDTest(); - - -parserTest.runTest( - 'AmsCD-1', '\\begin{CD}' + - 'A @>a>> B\\\\' + - '@VVbV @VVcV\\\\' + - 'C @>d>> D' + - '\\end{CD}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "5pt", - "rowspacing": "5pt", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 1}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 1}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "D"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'AmsCD-2', '\\begin{CD}' + - 'A @<<< B @>>> C\\\\' + - '@. @| @AAA\\\\' + - '@. D @= E' + - '\\end{CD}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "5pt", - "rowspacing": "5pt", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "←"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2.75em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2.75em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "stretchy": true, - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↑"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "D"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em", - "stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "E"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'AmsCD-3', '\\begin{CD}' + - 'A @>a>b> B\\\\' + - '@VlVrV @AlArA\\\\' + - 'C @>> B@>\\text{very long label}>>C\\\\' + - '@VVV @VVV @VVV\\\\' + - 'D @>>> E@>>> F' + - '\\end{CD}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "5pt", - "rowspacing": "5pt", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2.75em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "very long label"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "D"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2.75em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "E"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2.75em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'AmsCD-5', '\\begin{CD}' + - 'A @>>> B @>{\\text{very long label}}>> C \\\\' + - '@VVV @VVV @VVV \\\\' + - 'D @>>> E @>{\\phantom{\\text{very long label}}}>> F' + - '\\end{CD}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "5pt", - "rowspacing": "5pt", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2.75em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "very long label"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "D"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2.75em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "E"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "very long label"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'AmsCD-6', '\\begin{CD}' + - 'A @>>> B @>{\\text{very long label}}>> C \\\\' + - '@VVV @VVV @VVV \\\\' + - 'D @>>> E @>{\\rlap{\\scriptstyle{\\ \\ \\ \\text{shorter}}}\\phantom{\\text{very long label}}}>> F' + - '\\end{CD}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "5pt", - "rowspacing": "5pt", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2.75em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "very long label"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "D"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2.75em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "E"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 1}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "shorter"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "very long label"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'AmsCD-width', '\\minCDarrowwidth{5cm}\\begin{CD}A @>a>> B\\\\@VVbV @VVcV\\\\C @>d>> D\\end{CD}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "5pt", - "rowspacing": "5pt", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "5cm"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 1}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "1.75em", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 1}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "5cm"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "D"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'AmsCD-height', '\\minCDarrowheight{4cm}\\begin{CD}A @>a>> B\\\\@VVbV @VVcV\\\\C @>d>> D\\end{CD}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "5pt", - "rowspacing": "5pt", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "4cm", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 1}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "4cm", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 1}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.75em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "D"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'AmsCD-both', '\\minCDarrowheight{4cm}\\minCDarrowwidth{5cm}\\begin{CD}A @>a>> B\\\\@VVbV @VVcV\\\\C @>d>> D\\end{CD}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "5pt", - "rowspacing": "5pt", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "5cm"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "4cm", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 1}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "4cm", - "symmetric": true, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 1}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": "8.5pt", - "depth": "2pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "5cm"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": ".67em", - "lspace": ".33em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "D"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-amscomplex-tests.js b/tests/legacy-tests/parser-amscomplex-tests.js deleted file mode 100644 index bed78a9..0000000 --- a/tests/legacy-tests/parser-amscomplex-tests.js +++ /dev/null @@ -1,3095 +0,0 @@ -// Testing some real world examples with AMS environments without labelling. -import {ParserTest} from './parser-test.js'; -import {TagsFactory} from './node_modules/mathjax-full/js/input/tex/Tags.js'; - -class ParserAmsComplexTest extends ParserTest { - - constructor() { - super(); - this.tags = 'none'; - } - -} - -let parserTest = new ParserAmsComplexTest(); - -parserTest.runTest( - 'The Lorenz Equations', '\\begin{align}' + - '\\dot{x} & = \\sigma(y-x) \\\\' + - '\\dot{y} & = \\rho x - y - xz \\\\' + - '\\dot{z} & = -\\beta z + xy' + - '\\end{align}', - - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "˙"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "σ"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "˙"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ρ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "˙"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "β"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Maxwell\'s Equations', '\\begin{align} ' + - '\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, ' + - '\\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} &' + - ' = \\frac{4\\pi}{c}\\vec{\\mathbf{j}} \\\\' + - ' \\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\' + - ' \\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, ' + - '\\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} &' + - ' = \\vec{\\mathbf{0}} \\\\' + - ' \\nabla \\cdot \\vec{\\mathbf{B}} & = 0' + - ' \\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"displaystyle": true, - "columnalign": "right left right left right left right left right left right left", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "rowspacing": "3pt"}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "×"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "E"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "t"}]}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "π"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "j"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "E"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "π"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ρ"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "×"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "E"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "t"}]}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Cubic Binomial', - '{\\begin{eqnarray}(x+y)^{3}&=&(x+y)(x+y)(x+y)\\\\&' + - '=&xxx+xxy+xyx+{\\underline {xyy}}+yxx+{\\underline {yxy}}' + - '+{\\underline {yyx}}+yyy\\\\&=&x^{3}+3x^{2}y+' + - '{\\underline {3xy^{2}}}+y^{3}.\\end{eqnarray}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right center left", - "rowspacing": "3pt", - "columnspacing": "0 thickmathspace", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right center left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "msup", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right center left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munder", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accentunder": true}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "_"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munder", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accentunder": true}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "_"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munder", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accentunder": true}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "_"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right center left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munder", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accentunder": true}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "_"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "."}], - "isEmbellished": true}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-amsenv-tests.js b/tests/legacy-tests/parser-amsenv-tests.js deleted file mode 100644 index 01fbcfa..0000000 --- a/tests/legacy-tests/parser-amsenv-tests.js +++ /dev/null @@ -1,3670 +0,0 @@ -// Testing environments with AMS labelling to contrast regular and starred -// environments. -import {ParserTest} from './parser-test.js'; -import {TagsFactory} from './node_modules/mathjax-full/js/input/tex/Tags.js'; - -class ParserAmsenvTest extends ParserTest { - - constructor() { - super(); - this.settings = {tags: 'ams'}; - } - -} - -let parserTest = new ParserAmsenvTest(); - -parserTest.runTest( - 'Subarray', '\\begin{subarray}{c}a\\end{subarray}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "0.1em", - "columnspacing": "0em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Small Matrix', '\\begin{smallmatrix}a\\end{smallmatrix}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": ".2em", - "columnspacing": "0.333em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Align', '\\begin{align} a&=b \\\\ c&=d \\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-2"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(2)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Align Star', '\\begin{align*} a&=b \\\\ c&=d \\end{align*}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Multline', '\\begin{multline} a\\\\ b \\\\ c \\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Multline Star', '\\begin{multline*} a\\\\ b \\\\ c \\end{multline*}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Split', '\\begin{align*} a&=b \\begin{split} r&=s\\\\ & =t \\end{split} \\\\ c&=d \\end{align*}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left", - "rowspacing": "3pt", - "columnspacing": "0em", - "displaystyle": true}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "t"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Gather', '\\begin{gather} a=b \\\\ c=d \\end{gather}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "3pt", - "columnspacing": "1em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-2"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(2)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Gather Star', '\\begin{gather*} a=b \\\\ c=d \\end{gather*}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "3pt", - "columnspacing": "1em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Alignat', '\\begin{alignat}{2} a&=b \\\\ c&=d \\end{alignat}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 0em 0em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-2"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(2)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Alignat Star', '\\begin{alignat*}{2} a&=b \\\\ c&=d \\end{alignat*}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 0em 0em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Alignedat', '\\begin{align*} a&=b \\begin{alignedat}{2} r&=s\\\\ & =t \\end{alignedat} \\\\ c&=d \\end{align*}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 0em 0em 0em", - "displaystyle": true}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "t"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Aligned', '\\begin{align*} a&=b \\begin{aligned} r&=s\\\\ & =t \\end{aligned} \\\\ c&=d \\end{align*}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "t"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Gathered', '\\begin{align*} a&=b \\begin{gathered} r=s\\\\ =t \\end{gathered} \\\\ c&=d \\end{align*}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "3pt", - "columnalign": "center", - "columnspacing": "1em", - "displaystyle": true}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "t"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Equation', '\\begin{equation} a \\end{equation}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Equation Star', '\\begin{equation*} a \\end{equation*}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Eqnarray', '\\begin{eqnarray} a & = & b\\\\ c & = & d \\end{eqnarray}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right center left", - "rowspacing": "3pt", - "columnspacing": "0 thickmathspace", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right center left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right center left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-2"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(2)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Eqnarray Star', '\\begin{eqnarray*} a & = & b\\\\ c & = & d \\end{eqnarray*}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right center left", - "rowspacing": "3pt", - "columnspacing": "0 thickmathspace", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right center left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right center left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-amserror-tests.js b/tests/legacy-tests/parser-amserror-tests.js deleted file mode 100644 index ffec7c5..0000000 --- a/tests/legacy-tests/parser-amserror-tests.js +++ /dev/null @@ -1,204 +0,0 @@ -import {ParserTest} from './parser-test.js'; - -class ParserAmserrorTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserAmserrorTest(); - -parserTest.runTest( - 'Center Fraction Error', '\\cfrac[c]{a}{b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Illegal alignment specified in \\cfrac" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Illegal alignment specified in \\cfrac"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Genfrac Error', '\\genfrac{[}{]}{0pt}{4}{a}{b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Bad math style for \\genfrac" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Bad math style for \\genfrac"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'PositiveIntegerArg', '\\begin{align*} a&=b \\begin{alignedat}{-2} r&=s \\end{alignedat} \\\\ c&=d \\end{align*}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Argument to \\begin{alignedat} must me a positive integer" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Argument to \\begin{alignedat} must me a positive integer"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MultlineRowsOneCol', '\\begin{multline}a\\\\b&c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"The rows within the multline environment must have exactly one column" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "The rows within the multline environment must have exactly one column"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-array-tests.js b/tests/legacy-tests/parser-array-tests.js deleted file mode 100644 index 7930126..0000000 --- a/tests/legacy-tests/parser-array-tests.js +++ /dev/null @@ -1,3590 +0,0 @@ -import {ParserTest} from './parser-test.js'; - - -class ParserArrayTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserArrayTest(); - -parserTest.runTest( - 'Array Single', '\\begin{array}{c}a\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclosed left right', '\\begin{array}{|c|}a\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "left right", - "isFrame":true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em", - "columnlines": ""}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclosed left', '\\begin{array}{|c}a\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "left", - "isFrame":true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em", - "columnlines": ""}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclosed right', '\\begin{array}{c|}a\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "right", - "isFrame":true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em", - "columnlines": ""}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclosed top', '\\begin{array}{c}\\hline a\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "top", - "isFrame":true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclosed bottom', '\\begin{array}{c} a\\\\\\hline\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "bottom", - "isFrame":true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em", - "rowlines": ""}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclosed top bottom', '\\begin{array}{c}\\hline a\\\\\\hline\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "top bottom", - "isFrame":true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em", - "rowlines": ""}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclosed frame solid', '\\begin{array}{|c|}\\hline a\\\\\\hline\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em", - "rowlines": "", - "columnlines": "", - "frame": "solid"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclosed frame dashed', '\\begin{array}{:c:}\\hline a\\\\\\hline\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em", - "rowlines": "", - "columnlines": "", - "frame": "dashed"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Array dashed column', - '\\begin{array}{c:c}a&c\\\\b&d\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "center center", - "rowspacing": "4pt", - "columnspacing": "1em", - "columnlines": "dashed"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Array solid column', - '\\begin{array}{c|c}a&c\\\\b&d\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "center center", - "rowspacing": "4pt", - "columnspacing": "1em", - "columnlines": "solid"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Array dashed row', - '\\begin{array}{c}a\\\\\\hdashline b\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em", - "rowlines": "dashed"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Array solid row', - '\\begin{array}{c}a\\\\\\hline b\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em", - "rowlines": "solid"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclosed dashed row', - '\\begin{array}{|c|}a\\\\\\hdashline b\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "left right", - "isFrame":true, - "padding":0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em", - "rowlines": "dashed", - "columnlines": ""}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclosed solid row', - '\\begin{array}{|c|}a\\\\\\hline b\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "left right", - "isFrame":true, - "padding":0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em", - "rowlines": "solid", - "columnlines": ""}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclosed dashed column', - '\\begin{array}{|c:c|}a&c\\\\b&d\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "left right", - "isFrame":true, - "padding":0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "center center", - "rowspacing": "4pt", - "columnspacing": "1em", - "columnlines": "dashed"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclosed solid column', - '\\begin{array}{|c|c|}a&c\\\\b&d\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "left right", - "isFrame":true, - "padding":0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "center center", - "rowspacing": "4pt", - "columnspacing": "1em", - "columnlines": "solid"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Label', - '\\eqalignno{a & & {\\hbox{(3)}}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left", - "rowspacing": ".5em", - "columnspacing": "thickmathspace", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(3)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Columnlines Solid None', - '\\begin{array}{c|cc}a&b&c\\\\d&e&f\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "center center center", - "rowspacing": "4pt", - "columnspacing": "1em", - "columnlines": "solid none"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Rowlines Solid None', - '\\begin{array}{ccc}a&b&c\\\\\\hline d&e&f\\\\ g&h&i \\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "center center center", - "rowspacing": "4pt", - "columnspacing": "1em", - "rowlines": "solid none"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "h"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Column+Rowlines Solid None', - '\\begin{array}{c|cc}a&b&c\\\\\\hline d&e&f\\\\ g&h&i \\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "center center center", - "rowspacing": "4pt", - "columnspacing": "1em", - "rowlines": "solid none", - "columnlines": "solid none"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "h"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Column+Rowlines Solid Dashed None', - '\\begin{array}{c|c:cc}0&a&b&c\\\\\\hline 1&d&e&f\\\\\\hdashline' + - ' 2&g&h&i\\\\ 3&j&k&l \\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "center center center center", - "rowspacing": "4pt", - "columnspacing": "1em", - "rowlines": "solid dashed none", - "columnlines": "solid dashed none"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "h"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "j"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Matrix Test', '\\left( \\begin{array}{ccc}a & b & c \\\\d & e & f \\\\g & h & i \\end{array} \\right)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "center center center", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center center center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "h"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-base-tests.js b/tests/legacy-tests/parser-base-tests.js deleted file mode 100644 index ad4cdad..0000000 --- a/tests/legacy-tests/parser-base-tests.js +++ /dev/null @@ -1,6906 +0,0 @@ -import {ParserTest} from './parser-test.js'; - - -class ParserBaseTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserBaseTest(); - -parserTest.runTest( - 'Identifier', 'x', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"x"}]}], - "isInferred":true}]} - -); - - -parserTest.runTest( - 'Identifier Font', '\\mathbf{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Two Identifiers', 'xy', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"x"}]}, - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"y"}]}], - "isInferred":true}]} - -); - - -parserTest.runTest( - 'Prime', 'x\'', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"msup", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"x"}]}, - {"kind":"mo", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":false, - "scriptlevel":1, - "form":"infix"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"′"}], - "isEmbellished":true}]}], - "isInferred":true}]} - -); - -parserTest.runTest( - 'PrimeSup', 'x^{\'}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "′"}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Double Prime', 'x\'\'', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"msup", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"x"}]}, - {"kind":"mo", - "texClass":6, - "attributes":{}, - "inherited":{ - "displaystyle":false, - "scriptlevel":1, - "form":"infix"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"″"}], - "isEmbellished":true}]}], - "isInferred":true}]} - -); - - -parserTest.runTest( - 'PrePrime', '\'x', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"msup", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[]}, - {"kind":"mo", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":false, - "scriptlevel":1, - "form":"infix"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"′"}], - "isEmbellished":true}]}, - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"x"}]}], - "isInferred":true}]} - -); - - -parserTest.runTest( - 'Prime with subscript', 'x^\'_{3}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing open brace for superscript" - }, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing open brace for superscript"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Prime on Sub', 'x^{\'_{a}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": []}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u2032"}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Prime on Sup', 'x^{a^{\'}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 3, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u2032"}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Sup on Prime', 'x^{\'^{a}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": []}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2, - "form": "prefix"}, - "properties": {"variantForm": true}, - "childNodes": [ - {"kind": "text", - "text": "\u2032"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Prime on Prime', 'x^{\'^{\'}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": []}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2, - "form": "prefix"}, - "properties": {"variantForm": true}, - "childNodes": [ - {"kind": "text", - "text": "\u2032"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 3, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u2032"}], - "isEmbellished": true}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Over', '1 \\over 2', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Above', 'a \\above 1pt b', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": "1pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Style', '\\scriptscriptstyle a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 2}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -// parserTest.runTest( -// 'Vertical Padding', '\\fbox{t}', -// {} -// ); - - -parserTest.runTest( - 'Named Function', '\\sin x', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Named Function Arg', '\\sin(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Fn Pos Space', '\\sin\\quad x', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Fn Neg Space', '\\sin\\! x', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Fn Stretchy', '\\sin \\left(\\right)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Fn Operator', '\\sin +', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Square Root', '\\sqrt{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msqrt", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Nth Root', '\\sqrt[n]{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mroot", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Explicit Root', '\\root 4 \\of x', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mroot", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Tweaked Root', '\\sqrt[\\leftroot{-2}\\uproot{2}\\beta]{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mroot", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mpadded", - "texClass": null, - "attributes": {"width": "-0.13333333333333333em", - "height": "+0.13333333333333333em", - "voffset": "+0.13333333333333333em"}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u03b2"}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Negation Simple', 'a \\not= b', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"a"}]}, - {"kind":"mo", - "texClass":3, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "form":"infix"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"≠"}], - "isEmbellished":true}, - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"b"}]}], - "isInferred":true}]} - -); - -parserTest.runTest( - 'Negation Complex', 'a \\not= b \\not\\rightarrow c \\not\\leq d', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"a"}]}, - {"kind":"mo", - "texClass":3, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "form":"infix"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"≠"}], - "isEmbellished":true}, - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"b"}]}, - {"kind":"mo", - "texClass":3, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "form":"infix", - "accent":true}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"↛"}], - "isEmbellished":true}, - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"c"}]}, - {"kind":"mo", - "texClass":3, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "form":"infix"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"≰"}], - "isEmbellished":true}, - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"d"}]}], - "isInferred":true}]} - -); - - -parserTest.runTest( - 'Negation Explicit', ' \\not\\longrightarrow', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟶"}, - {"kind": "text", - "text": "̸"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Negation Large', ' \\not3', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⧸"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Negation Left Paren', '\\not\\left(\\right.', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⧸"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Greek', '\\alpha', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Large Set', '\\bigcup', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true}, - "childNodes": [ - {"kind": "text", - "text": "⋃"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'MathChar0 Operator', '\\Rightarrow', - {"kind":"math", - "texClass":3, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":3, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mo", - "texClass":3, - "attributes":{"stretchy":false}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "form":"infix", - "accent":true, - "stretchy":true}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"⇒"}], - "isEmbellished":true} - ], - "isInferred":true, - "isEmbellished":true}], - "isEmbellished":true} -); - - -// Tests for mathchar7. -parserTest.runTest( - 'MathChar7 Single', '\\Upsilon', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u03a5"}]}], - "isInferred": true}]} -); - -// Tests for mathchar7. -parserTest.runTest( - 'MathChar7 Single Font', '\\mathbf{\\Upsilon}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u03a5"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MathChar7 Operator', '\\And', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "&"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MathChar7 Multi', '\\Lambda \\& \\Gamma \\Rightarrow \\Omega\\And\\Upsilon', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{"mathvariant":"normal"}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"Λ"}]}, - {"kind":"mi", - "texClass":0, - "attributes":{"mathvariant":"normal"}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"&"}]}, - {"kind":"mi", - "texClass":0, - "attributes":{"mathvariant":"normal"}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"Γ"}]}, - {"kind":"mo", - "texClass":3, - "attributes":{"stretchy":false}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "form":"infix", - "accent":true, - "stretchy":true}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"⇒"}], - "isEmbellished":true}, - {"kind":"mi", - "texClass":0, - "attributes":{"mathvariant":"normal"}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"Ω"}]}, - {"kind":"mi", - "texClass":0, - "attributes":{"mathvariant":"normal"}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"&"}]}, - {"kind":"mi", - "texClass":0, - "attributes":{"mathvariant":"normal"}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"Υ"}]}], - "isInferred":true}]} -); - -parserTest.runTest( - 'Tilde', '~', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u00a0"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - -parserTest.runTest( - 'Tilde2', 'a~b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u00a0"}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - -// Superscript cases: -parserTest.runTest( - 'Empty base', '^2', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ""}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Empty base2', '{}^2', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Square', 'x^2', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"msup", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"x"}]}, - {"kind":"mn", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":false, - "scriptlevel":1}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"2"}]}]}], - "isInferred":true}]} - -); - - -parserTest.runTest( - 'Cube', 'x^3', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"msup", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"x"}]}, - {"kind":"mn", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":false, - "scriptlevel":1}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"3"}]}]}], - "isInferred":true}]} - -); - -parserTest.runTest( - 'Large Operator', '\\sum^2_1', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munderover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - -parserTest.runTest( - 'Move Superscript', - '\\left( \\sum_1^n \\right)^{2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "munderover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Empty Base Index', '_3', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ""}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Empty Base Index2', '{}_3', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Index', 'x_3', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"msub", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"x"}]}, - {"kind":"mn", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":false, - "scriptlevel":1}, - "properties":{"texprimestyle":true}, - "childNodes":[ - {"kind":"text", - "text":"3"}]}]}], - "isInferred":true}]} - -); - - -parserTest.runTest( - 'SubSup', 'x^a_3', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"msubsup", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"x"}]}, - {"kind":"mn", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":false, - "scriptlevel":1}, - "properties":{"texprimestyle":true}, - "childNodes":[ - {"kind":"text", - "text":"3"}]}, - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":false, - "scriptlevel":1, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"a"}]}]}], - "isInferred":true}]} -); - - -parserTest.runTest( - 'Positive Spacing', 'a\\quad b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Negative Spacing', 'a\\!\\!b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Limit', '\\lim', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {"movablelimits": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"movablelimits": true, - "movesupsub": true, - "texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "lim"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Frac', '\\frac{a}{b}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Raise', '\\raise 1em {x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+1em", - "depth": "-1em", - "voffset": "+1em"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Lower', '\\lower 1em {x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "-1em", - "depth": "+1em", - "voffset": "-1em"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operator Dots', '+\\dots+', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 7, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u22ef"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operatorname', 'a\\operatorname{xyz}b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movablelimits": false, - "movesupsub": false, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "xyz"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Mathop', '\\mathop{\\rm a} b', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texClass": 1, - "movablelimits": true, - "movesupsub": true, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Mathop Super', '\\mathop{\\rm a}^b', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texClass": 1, - "movablelimits": true, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Mathop Sub', '\\mathop{\\rm a}_b', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munder", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texClass": 1, - "movablelimits": true, - "movesupsub": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Mathop Sub Super', '\\mathop{\\rm a}_b^c', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munderover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texClass": 1, - "movablelimits": true, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Mathop Cal', '\\mathop{\\cal a}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movablelimits": true, - "movesupsub": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Mathrel', '\\mathrel{R}', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Vector', '\\vec{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u2192"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Vector Multi', '\\vec{\\vec{a}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector Font', '\\mathrm{\\vec{a}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u2192"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Overset', '\\overset{a}{b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Underset', '\\underset{a}{b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munder", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Strut', '\\strut{x}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"width": 0, - "height": "8.6pt", - "depth": "3pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Fbox', '\\fbox{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "box"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Hbox', '\\hbox{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - - -parserTest.runTest( - 'Phantom', 'x\\phantom{y}z', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vertical Phantom', 'x\\vphantom{y}z', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Horizontal Phantom', 'x\\hphantom{y}z', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Smash', '\\smash{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Smash Bottom', '\\smash[b]{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"depth": 0}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Smash Top', '\\smash[t]{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Llap', '\\llap{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Rlap', '\\rlap{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Rlap 2', 'a\\mathrel{\\rlap{\\,/}{=}}b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Llap 2', 'a\\mathrel{{=}\\llap{/\\,}}b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Raise In Line', 'x\\raise{2pt}{y}z', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+2pt", - "depth": "-2pt", - "voffset": "+2pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Lower 2', 'x\\lower{2pt}{y}z', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "-2pt", - "depth": "+2pt", - "voffset": "-2pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Raise Negative', 'x\\raise{-2pt}{y}z', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "-2pt", - "depth": "+2pt", - "voffset": "-2pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Lower Negative', 'x\\lower{-2pt}{y}z', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+2pt", - "depth": "-2pt", - "voffset": "+2pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Move Left', 'x\\moveleft{2pt}{y}z', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Move Right', 'x\\moveright{2pt}{y}z', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Move Left Negative', 'x\\moveleft{-2pt}{y}z', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Move Right Negative', 'x\\moveright{-2pt}{y}z', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2pt"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Rule 2D', '\\rule{2cm}{1cm}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"mathbackground": "black", - "width": "2cm", - "height": "1cm"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - - -parserTest.runTest( - 'Rule 3D', '\\Rule{2cm}{2cm}{1cm}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"mathbackground": "black", - "width": "2cm", - "height": "2cm", - "depth": "1cm"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - - -parserTest.runTest( - 'Space 3D', '\\Space{2cm}{2cm}{1cm}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "2cm", - "height": "2cm", - "depth": "1cm"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - - -parserTest.runTest( - 'BuildRel', '\\buildrel{a}\\over b', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BuildRel Expression', 'x\\buildrel{a}\\over b y', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Linebreak', 'a\\\\b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"linebreak": "newline"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Custom Linebreak', 'a\\\\[2ex]b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"depth": "2ex"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"linebreak": "newline"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Custom Linebreak European', 'a\\\\[1,5cm]b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"depth": "1.5cm"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"linebreak": "newline"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Cr Linebreak', '\\array{a\\cr b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Array Custom Linebreak', '\\array{a\\\\[1cm] b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "3.235em 0.4em", - "columnspacing": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -// This is not AMS dependent. -parserTest.runTest( - 'spaces', 'A\\,B\\!C', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Hfill', '\\begin{array}{c}a\\hfill b\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-bbox-tests.js b/tests/legacy-tests/parser-bbox-tests.js deleted file mode 100644 index d00b448..0000000 --- a/tests/legacy-tests/parser-bbox-tests.js +++ /dev/null @@ -1,544 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/bbox/BboxConfiguration.js'; - - -class ParserBboxTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'bbox']; - } - -} - -let parserTest = new ParserBboxTest(); - - -parserTest.runTest( - 'Bbox-Background', '\\bbox[yellow]{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathbackground": "yellow"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathbackground": "yellow", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"mathbackground": "yellow", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Bbox-Padding', '\\bbox[5px]{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+5px", - "depth": "+5px", - "lspace": "5px", - "width": "+10px"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Bbox-Frame', '\\bbox[border:5px solid red]{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"style": "border:5px solid red"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Bbox-Background-Padding', '\\bbox[yellow,5px]{a}', - {"kind":"math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathbackground": "yellow"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathbackground": "yellow", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+5px", - "depth": "+5px", - "lspace": "5px", - "width": "+10px"}, - "inherited": {"mathbackground": "yellow", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathbackground": "yellow", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"mathbackground": "yellow", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Bbox-Padding-Frame', '\\bbox[5px,border:2px solid red]{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"style": "border:2px solid red"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+5px", - "depth": "+5px", - "lspace": "5px", - "width": "+10px"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Bbox-Background-Padding-Frame', '\\bbox[yellow,5px,border:2px solid red]{a}', - {"kind":"math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathbackground": "yellow", - "style": "border:2px solid red"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathbackground": "yellow", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+5px", - "depth": "+5px", - "lspace": "5px", - "width": "+10px"}, - "inherited": {"mathbackground": "yellow", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathbackground": "yellow", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"mathbackground": "yellow", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Bbox-Background-Error', '\\bbox[yellow,green]{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Background specified twice in \\bbox" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Background specified twice in \\bbox"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Bbox-Padding-Error', '\\bbox[5px,6px]{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Padding specified twice in \\bbox" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Padding specified twice in \\bbox"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Bbox-Frame-Error', '\\bbox[border:2px solid red,border:2px solid green]{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Style specified twice in \\bbox" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Style specified twice in \\bbox"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Bbox-General-Error', '\\bbox[22-11=color]{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\"22-11=color\" doesn't look like a color, a padding dimension, or a style" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\"22-11=color\" doesn't look like a color, a padding dimension, or a style"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-boldsymbol-tests.js b/tests/legacy-tests/parser-boldsymbol-tests.js deleted file mode 100644 index 66b014a..0000000 --- a/tests/legacy-tests/parser-boldsymbol-tests.js +++ /dev/null @@ -1,384 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/boldsymbol/BoldsymbolConfiguration.js'; - -class ParserBoldsymbolTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'boldsymbol']; - } - -} - -let parserTest = new ParserBoldsymbolTest(); - -parserTest.runTest( - 'Boldsymbol Single', '\\boldsymbol{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Boldsymbol Context', 'b\\boldsymbol{a}c', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Boldsymbol Operator', '\\boldsymbol{a+b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Boldsymbol Fraction', '\\boldsymbol{\\frac{a}{b}}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Boldsymbol Recursive', '\\boldsymbol{a+b\\mbox{ w \$c+\\boldsymbol{d+e}\$ w } q-} -q', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " w "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " w "}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-braket-tests.js b/tests/legacy-tests/parser-braket-tests.js deleted file mode 100644 index 900700c..0000000 --- a/tests/legacy-tests/parser-braket-tests.js +++ /dev/null @@ -1,3755 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/braket/BraketConfiguration.js'; - - -class ParserBraketTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'braket']; - } - -} - -let parserTest = new ParserBraketTest(); - -parserTest.runTest( - 'Braket-bra', '\\bra{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-bra-large', '\\bra{\\frac{x}{y}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-Bra', '\\Bra{\\frac{x}{y}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-ket', '\\ket{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-ket-large', '\\ket{\\frac{x}{y}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-Ket', '\\Ket{\\frac{x}{y}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-braket', '\\braket{x}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-braket-large', '\\braket{\\frac{x}{y}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-Braket', '\\Braket{\\frac{x}{y}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-ketbra', '\\ketbra{x}{y}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-ketbra-large', '\\ketbra{\\frac{x}{y}}{z}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-Ketbra', '\\Ketbra{\\frac{x}{y}}{z}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-Set', '\\Set{x}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-Set-large', '\\Set{\\frac{x}{y}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-Set-Bar', '\\Set{x|\\frac{x}{y}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-bar-small', '\\braket{x|y}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-bar-large', '\\braket{\\frac{x}{y}|z}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Braket-Bar', '\\Braket{\\frac{x}{y}|z}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Braket-Bar1', '\\Braket{\\frac{x}{y}||z||y}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": true, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": true, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Braket-Bar2', '\\Braket{\\frac{x}{y}\\||z||y}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": true, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": true, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Braket-Bar3', '\\Braket{\\frac{x}{y}|||z||y}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": true, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": true, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Braket-Bar4', '\\Braket{\\frac{x}{y}|||z|||y}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": true, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": true, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Braket-Bar-Set', '\\Set{\\frac{x}{y}||y||z}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": true, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Braket-Bar-Set2', '\\Set{\\frac{x}{y}\\||y\\||z}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": true, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Braket-Space', '\\braket {a|b}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Braket-No-Braces-Simple', '\\braket a|b', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Braket-No-Braces-Complex', '\\braket \\frac{a}{c}|b', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Braket-Nested', '\\braket {\\braket{a|b}c}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false, - "braketbar": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-bussproofs-reginf-tests.js b/tests/legacy-tests/parser-bussproofs-reginf-tests.js deleted file mode 100644 index c7507b3..0000000 --- a/tests/legacy-tests/parser-bussproofs-reginf-tests.js +++ /dev/null @@ -1,103 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/bussproofs/BussproofsConfiguration.js'; - -class ParserBussproofsRegInfTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'bussproofs']; - } - -} - -let parserTest = new ParserBussproofsRegInfTest(); - -// Regular inferences -parserTest.runTest( - 'Single Axiom', '\\begin{prooftree}\\AxiomC{A}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_axiom":true,"bspr_proof":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true} -); - -parserTest.runTest( - 'Unary Inference', '\\begin{prooftree}\\AxiomC{A}\\UnaryInfC{B}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down;bspr_inference:1;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down","bspr_inference":1,"bspr_proof":true},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]} -); - -parserTest.runTest( - 'Binary Inference', '\\begin{prooftree}\\AxiomC{A}\\AxiomC{B}\\BinaryInfC{C}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down;bspr_inference:2;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down","bspr_inference":2,"bspr_proof":true},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"C"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]} -); - -parserTest.runTest( - 'Trinary Inference', '\\begin{prooftree}\\AxiomC{A}\\AxiomC{B}\\AxiomC{C}\\TrinaryInfC{D}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down;bspr_inference:3;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down","bspr_inference":3,"bspr_proof":true},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"C"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"D"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]} -); - -parserTest.runTest( - 'Quaternary Inference', '\\begin{prooftree}\\AxiomC{A}\\AxiomC{B}\\AxiomC{C}\\AxiomC{D}\\QuaternaryInfC{E}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down;bspr_inference:4;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down","bspr_inference":4,"bspr_proof":true},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"C"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"D"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"E"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]} -); - -parserTest.runTest( - 'Quinary Inference', '\\begin{prooftree}\\AxiomC{A}\\AxiomC{B}\\AxiomC{C}\\AxiomC{D}\\AxiomC{E}\\QuinaryInfC{F}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down;bspr_inference:5;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down","bspr_inference":5,"bspr_proof":true},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"C"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"D"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"E"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"F"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]} -); - - -parserTest.runTest( - 'Label Left', '\\begin{prooftree}\\AxiomC{A}\\LeftLabel{L}\\UnaryInfC{B}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_labelledRule:left;bspr_inference:1;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_labelledRule":"left","bspr_inference":1,"bspr_proof":true},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"L"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}]}],"isInferred":true}]} -); - - -parserTest.runTest( - 'Label Right', '\\begin{prooftree}\\AxiomC{A}\\RightLabel{R}\\UnaryInfC{B}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_labelledRule:right;bspr_inference:1;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_labelledRule":"right","bspr_inference":1,"bspr_proof":true},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"R"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]}],"isInferred":true}]} -); - - -parserTest.runTest( - 'Label Both', '\\begin{prooftree}\\AxiomC{A}\\LeftLabel{L}\\RightLabel{R}\\UnaryInfC{B}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_labelledRule:both;bspr_inference:1;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_labelledRule":"both","bspr_inference":1,"bspr_proof":true},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"L"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"R"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]}],"isInferred":true}]} -); - - -// Abbreviations -parserTest.runTest( - 'Single Axiom Abbr', '\\begin{prooftree}\\AXC{A}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_axiom":true,"bspr_proof":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true} -); - -parserTest.runTest( - 'Unary Inference Abbr', '\\begin{prooftree}\\AXC{A}\\UIC{B}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down;bspr_inference:1;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down","bspr_inference":1,"bspr_proof":true},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]} -); - -parserTest.runTest( - 'Binary Inference Abbr', '\\begin{prooftree}\\AXC{A}\\AXC{B}\\BIC{C}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down;bspr_inference:2;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down","bspr_inference":2,"bspr_proof":true},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"C"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]} -); - -parserTest.runTest( - 'Trinary Inference Abbr', '\\begin{prooftree}\\AXC{A}\\AXC{B}\\AXC{C}\\TIC{D}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down;bspr_inference:3;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down","bspr_inference":3,"bspr_proof":true},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"C"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"D"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]} -); - -parserTest.runTest( - 'Label Left Abbr', '\\begin{prooftree}\\AXC{A}\\LeftLabel{L}\\UIC{B}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_labelledRule:left;bspr_inference:1;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_labelledRule":"left","bspr_inference":1,"bspr_proof":true},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"L"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}]}],"isInferred":true}]} -); - - -parserTest.runTest( - 'Label Right Abbr', '\\begin{prooftree}\\AXC{A}\\RightLabel{R}\\UIC{B}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_labelledRule:right;bspr_inference:1;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_labelledRule":"right","bspr_inference":1,"bspr_proof":true},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"R"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]}],"isInferred":true}]} -); - - -parserTest.runTest( - 'Label Both Abbr', '\\begin{prooftree}\\AXC{A}\\LeftLabel{L}\\RightLabel{R}\\UIC{B}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_labelledRule:both;bspr_inference:1;bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_labelledRule":"both","bspr_inference":1,"bspr_proof":true},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"L"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"R"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]}],"isInferred":true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-bussproofs-regproofs-tests.js b/tests/legacy-tests/parser-bussproofs-regproofs-tests.js deleted file mode 100644 index 8ae37dc..0000000 --- a/tests/legacy-tests/parser-bussproofs-regproofs-tests.js +++ /dev/null @@ -1,67 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/bussproofs/BussproofsConfiguration.js'; - -class ParserBussproofsRegProofsTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'bussproofs']; - } - -} - -let parserTest = new ParserBussproofsRegProofsTest(); - -// Regular proofs -parserTest.runTest( - 'Simple Proof', '\\begin{prooftree}\\AxiomC{D}\\AxiomC{A}\\AxiomC{B}\\AxiomC{R}\\BinaryInfC{$C \\rightarrow D \\rightarrow Q$}\\BinaryInfC{E}\\BinaryInfC{F}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_proof:true"},"inherited":{},"properties":{"bspr_inference":2,"bspr_proof":true,"bspr_maxAdjust":0},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"D"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2"},"inherited":{},"properties":{"bspr_inference":2},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2"},"inherited":{},"properties":{"bspr_inference":2},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"R"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"C"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"D"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"0em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"E"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-3.795em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"F"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"3.795em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}); - - -parserTest.runTest( - 'Simple Proof Noise', '\\begin{prooftree}\\AxiomC{D}\\AxiomC{A}\\AxiomC{B}\\AxiomC{R}$\\alpha$\\BinaryInfC{$C \\rightarrow D \\rightarrow Q$}\\BinaryInfC{E}\\BinaryInfC{F}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_proof:true"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_proof":true},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mo","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0,"form":"prefix"},"properties":{},"childNodes":[{"kind":"text","text":"$"}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"α"}]},{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mo","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0,"form":"postfix"},"properties":{},"childNodes":[{"kind":"text","text":"$"}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down;bspr_inference:2"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down","bspr_inference":2,"bspr_maxAdjust":0},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"D"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2"},"inherited":{},"properties":{"bspr_inference":2},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2"},"inherited":{},"properties":{"bspr_inference":2},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"R"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"C"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"D"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"0em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"E"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-3.795em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"F"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"3.795em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}); - - -parserTest.runTest( - 'Simple Proof Large', '\\begin{prooftree}\\AxiomC{D}\\AxiomC{A1}\\AxiomC{A2}\\TrinaryInfC{Q}\\AxiomC{A}\\AxiomC{B}\\AxiomC{R}\\BinaryInfC{$C \\rightarrow D \\rightarrow Q$}\\BinaryInfC{E}\\BinaryInfC{F}\\AxiomC{M}\\BinaryInfC{$N \\rightarrow R$}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_proof:true"},"inherited":{},"properties":{"bspr_inference":2,"bspr_proof":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"8.227em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2"},"inherited":{},"properties":{"bspr_inference":2,"bspr_maxAdjust":0},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-4.953em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:3"},"inherited":{},"properties":{"bspr_inference":3},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-3.274em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"D"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A1"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A2"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"Q"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2"},"inherited":{},"properties":{"bspr_inference":2},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2"},"inherited":{},"properties":{"bspr_inference":2},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"R"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"C"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"D"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"0em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"E"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-3.795em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"F"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"3.795055555555555em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"M"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"N"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}]}],"isInferred":true}]}); - - -parserTest.runTest( - 'Simple Proofs Right Labels', '\\begin{prooftree}\\AxiomC{D}\\AxiomC{A1}\\AxiomC{A2}\\TrinaryInfC{Q}\\RightLabel{AAAA}\\AxiomC{A}\\AxiomC{B}\\AxiomC{R}\\BinaryInfC{$C \\rightarrow D \\rightarrow Q$}\\RightLabel{BBB}\\BinaryInfC{E}\\RightLabel{CCCCC}\\BinaryInfC{F}\\RightLabel{QERE}\\AxiomC{M}\\BinaryInfC{$N \\rightarrow R$}\\RightLabel{Nowhere}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_proof:true;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_proof":true,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"8.227em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_maxAdjust":3.5,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-8.227em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"3.274em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:3"},"inherited":{},"properties":{"bspr_inference":3},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-3.274em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"D"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A1"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A2"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"Q"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"R"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"C"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"D"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"AAAA"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-3.5em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"E"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"BBB"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-6.419em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"F"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"CCCCC"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"2.309055555555555em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"M"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"N"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"QERE"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]}]}],"isInferred":true}]}); - - -parserTest.runTest( - 'Simple Proofs Left Labels', '\\begin{prooftree}\\AxiomC{D}\\AxiomC{A1}\\AxiomC{A2}\\TrinaryInfC{Q}\\LeftLabel{AAAA}\\AxiomC{A}\\AxiomC{B}\\AxiomC{R}\\BinaryInfC{$C \\rightarrow D \\rightarrow Q$}\\LeftLabel{BBB}\\BinaryInfC{E}\\LeftLabel{CCCCC}\\BinaryInfC{F}\\LeftLabel{QERE}\\AxiomC{M}\\BinaryInfC{$N \\rightarrow R$}\\LeftLabel{Nowhere}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_proof:true;bspr_labelledRule:left"},"inherited":{},"properties":{"bspr_inference":2,"bspr_proof":true,"bspr_labelledRule":"left"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"7.038em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"QERE"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:left"},"inherited":{},"properties":{"bspr_inference":2,"bspr_maxAdjust":0,"bspr_labelledRule":"left"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-10.414em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-0.836em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"CCCCC"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:3"},"inherited":{},"properties":{"bspr_inference":3},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-3.274em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"D"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A1"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A2"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"Q"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:left"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"BBB"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:left"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"AAAA"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"R"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"C"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"D"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"0em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"E"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-5.545em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"F"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}]}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"5.545055555555556em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"M"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"N"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}]}]}],"isInferred":true}]}); - - -parserTest.runTest( - 'Simple Proofs Mixed Labels', '\\begin{prooftree}\\AxiomC{D}\\AxiomC{A1}\\AxiomC{A2}\\TrinaryInfC{Q}\\RightLabel{AAAA}\\AxiomC{A}\\AxiomC{B}\\AxiomC{R}\\BinaryInfC{$C \\rightarrow D \\rightarrow Q$}\\LeftLabel{BBB}\\BinaryInfC{E}\\LeftLabel{CCCCC}\\BinaryInfC{F}\\RightLabel{QERE}\\LeftLabel{DD}\\AxiomC{M}\\BinaryInfC{$N \\rightarrow R$}\\LeftLabel{Nowhere}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_proof:true;bspr_labelledRule:both"},"inherited":{},"properties":{"bspr_inference":2,"bspr_proof":true,"bspr_labelledRule":"both"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"7.511em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"DD"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:left"},"inherited":{},"properties":{"bspr_inference":2,"bspr_maxAdjust":3.5,"bspr_labelledRule":"left"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-9.539em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-0.836em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"CCCCC"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:3"},"inherited":{},"properties":{"bspr_inference":3},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-3.274em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"D"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A1"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A2"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"Q"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:left"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"BBB"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"R"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"C"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"D"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"AAAA"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-3.5em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"E"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-3.795em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"F"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}]}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"3.795055555555555em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"M"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"N"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"QERE"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]}]}],"isInferred":true}]}); - - -parserTest.runTest( - 'Proof Very Right Label', '\\begin{prooftree}\\AxiomC{D}\\AxiomC{A1}\\AxiomC{A2}\\RightLabel{AAAA}\\TrinaryInfC{Q}\\RightLabel{Nowhere}\\AxiomC{A}\\AxiomC{B}\\AxiomC{R}\\BinaryInfC{$C \\rightarrow D \\rightarrow Q$}\\RightLabel{BBB}\\BinaryInfC{E}\\RightLabel{CCCCC}\\BinaryInfC{F}\\RightLabel{QERE}\\AxiomC{M}\\UnaryInfC{More and more}\\UnaryInfC{More and more}\\UnaryInfC{More and more}\\BinaryInfC{$N \\rightarrow R$}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_proof:true"},"inherited":{},"properties":{"bspr_inference":2,"bspr_proof":true,"bspr_maxAdjust":8.881784197001252e-16},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"9.977em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_maxAdjust":4.308,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-9.977em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"3.274em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:3;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":3,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-3.274em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"D"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A1"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A2"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"Q"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"AAAA"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"R"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"C"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"D"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"Nowhere"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-4.308em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"E"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"BBB"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-6.419em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"F"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"CCCCC"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"2.309055555555555em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:1"},"inherited":{},"properties":{"bspr_inference":1,"bspr_maxAdjust":3.3760000000000003},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"0em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:1"},"inherited":{},"properties":{"bspr_inference":1},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"0em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:1;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":1,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"M"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"More and more"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"QERE"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-3.376em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"More and more"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"0em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"More and more"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"0em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"N"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"0em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}); - - -// Somehow emacs can't space that out. -parserTest.runTest( - 'Proof Complex', '\\begin{prooftree}\\AXC{}\\RL{$Hyp^{1}$}\\UIC{$P$}\\AXC{$P\\rightarrow Q$}\\RL{$\\rightarrow_E$}\\solidLine\\BIC{$Q^2$}\\AXC{$Q\\rightarrow R$} \\RL{$\\rightarrow_E$} \\BIC{$R$} \\AXC{$Q$}\\RL{Rit$^2$} \\UIC{$Q$}\\RL{$\\wedge_I$}\\BIC{$Q\\wedge R$}\\RL{${\\rightarrow_I}^1$}\\UIC{$P\\rightarrow Q\\wedge R$}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:1;bspr_proof:true;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":1,"bspr_proof":true,"bspr_maxAdjust":2.306553390593274,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"13.787em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-13.787em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"9.433em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-9.433em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"3.735em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-3.735em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_labelledRule:right;bspr_inference:0"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_labelledRule":"right","bspr_inference":0},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"P"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"H"}]},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"y"}]},{"kind":"msup","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"p"}]},{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1},"properties":{},"childNodes":[{"kind":"mn","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1},"properties":{},"childNodes":[{"kind":"text","text":"1"}]}],"isInferred":true}]}]}],"isInferred":true}]}],"isInferred":true}]}],"isInferred":true}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"P"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msup","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]},{"kind":"mn","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1},"properties":{},"childNodes":[{"kind":"text","text":"2"}]}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":3,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msub","texClass":3,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1,"mathvariant":"italic"},"properties":{"texprimestyle":true},"childNodes":[{"kind":"text","text":"E"}]}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":3,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msub","texClass":3,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1,"mathvariant":"italic"},"properties":{"texprimestyle":true},"childNodes":[{"kind":"text","text":"E"}]}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}]}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:1;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":1,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"Rit"}],"isSpacelike":true},{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msup","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":""}]},{"kind":"mn","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1},"properties":{},"childNodes":[{"kind":"text","text":"2"}]}]}],"isInferred":true}]}],"isInferred":true}]}],"isInferred":true}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-2.307em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]},{"kind":"mo","texClass":2,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix"},"properties":{},"childNodes":[{"kind":"text","text":"∧"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msub","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mo","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix"},"properties":{},"childNodes":[{"kind":"text","text":"∧"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1,"mathvariant":"italic"},"properties":{"texprimestyle":true},"childNodes":[{"kind":"text","text":"I"}]}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-5.927em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"P"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]},{"kind":"mo","texClass":2,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix"},"properties":{},"childNodes":[{"kind":"text","text":"∧"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msup","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":3,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msub","texClass":3,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1,"mathvariant":"italic"},"properties":{"texprimestyle":true},"childNodes":[{"kind":"text","text":"I"}]}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true},{"kind":"mn","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1},"properties":{},"childNodes":[{"kind":"text","text":"1"}]}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"3.618em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}); - - -parserTest.runTest( - 'Proof Mixing Order', '\\begin{prooftree}\\alwaysRootAtTop\\AXC{}\\RL{$Hyp^{1}$}\\UIC{$P$}\\AXC{$P\\rightarrow Q$}\\RL{$\\rightarrow_E$}\\solidLine\\BIC{$Q^2$}\\alwaysRootAtBottom\\AXC{$Q\\rightarrow R$} \\RL{$\\rightarrow_E$} \\BIC{$R$} \\AXC{$Q$}\\RL{Rit$^2$} \\UIC{$Q$}\\RL{$\\wedge_I$}\\BIC{$Q\\wedge R$}\\RL{${\\rightarrow_I}^1$}\\UIC{$P\\rightarrow Q\\wedge R$}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:1;bspr_proof:true;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":1,"bspr_proof":true,"bspr_maxAdjust":2.306553390593274,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"13.787em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-13.787em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"9.433em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-9.433em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"3.735em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-3.735em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:up"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"up"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msup","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]},{"kind":"mn","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1},"properties":{},"childNodes":[{"kind":"text","text":"2"}]}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"top"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_labelledRule:right;bspr_inference:0"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_labelledRule":"right","bspr_inference":0},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:up"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"up"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"P"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"top"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"H"}]},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"y"}]},{"kind":"msup","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"p"}]},{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1},"properties":{},"childNodes":[{"kind":"mn","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1},"properties":{},"childNodes":[{"kind":"text","text":"1"}]}],"isInferred":true}]}]}],"isInferred":true}]}],"isInferred":true}]}],"isInferred":true}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"top"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"P"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":3,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msub","texClass":3,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1,"mathvariant":"italic"},"properties":{"texprimestyle":true},"childNodes":[{"kind":"text","text":"E"}]}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":3,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msub","texClass":3,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1,"mathvariant":"italic"},"properties":{"texprimestyle":true},"childNodes":[{"kind":"text","text":"E"}]}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}]}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:1;bspr_labelledRule:right"},"inherited":{},"properties":{"bspr_inference":1,"bspr_labelledRule":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"Rit"}],"isSpacelike":true},{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msup","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":""}]},{"kind":"mn","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1},"properties":{},"childNodes":[{"kind":"text","text":"2"}]}]}],"isInferred":true}]}],"isInferred":true}]}],"isInferred":true}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-2.307em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]},{"kind":"mo","texClass":2,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix"},"properties":{},"childNodes":[{"kind":"text","text":"∧"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msub","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mo","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix"},"properties":{},"childNodes":[{"kind":"text","text":"∧"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1,"mathvariant":"italic"},"properties":{"texprimestyle":true},"childNodes":[{"kind":"text","text":"I"}]}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}]}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-5.927em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"P"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]},{"kind":"mo","texClass":2,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix"},"properties":{},"childNodes":[{"kind":"text","text":"∧"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msup","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":3,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"msub","texClass":3,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1,"mathvariant":"italic"},"properties":{"texprimestyle":true},"childNodes":[{"kind":"text","text":"I"}]}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true},{"kind":"mn","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":1},"properties":{},"childNodes":[{"kind":"text","text":"1"}]}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}],"isInferred":true,"isEmbellished":true}],"isEmbellished":true}]}]},{"kind":"mspace","texClass":0,"attributes":{"width":"3.618em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}); - - -parserTest.runTest( - 'Extreme', '\\begin{prooftree}\\LL{HHHHH}\\RL{11111111111111111}\\AxiomC{D}\\AxiomC{A1}\\AxiomC{A2}\\TrinaryInfC{Q}\\RightLabel{AAAA}\\AxiomC{A}\\AxiomC{B}\\AxiomC{R}\\LL{qqqq}\\BinaryInfC{$C \\rightarrow D \\rightarrow Q$}\\LeftLabel{BBBB}\\RightLabel{MMM}\\BinaryInfC{E}\\RightLabel{CCCCC}\\LL{WWW}\\BinaryInfC{F}\\RightLabel{QERE}\\AxiomC{M}\\LL{BBB}\\BinaryInfC{$N \\rightarrow R$}\\RightLabel{Nowhere}\\end{prooftree}', - {"kind":"math","texClass":0,"attributes":{"display":"block"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_proof:true;bspr_labelledRule:both"},"inherited":{},"properties":{"bspr_inference":2,"bspr_proof":true,"bspr_labelledRule":"both"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"16.672em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"BBB"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:both"},"inherited":{},"properties":{"bspr_inference":2,"bspr_maxAdjust":3.5,"bspr_labelledRule":"both"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-19.296em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"3.94em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"WWW"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:3;bspr_labelledRule:both"},"inherited":{},"properties":{"bspr_inference":3,"bspr_labelledRule":"both"},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"-7.524em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"HHHHH"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"D"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A1"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A2"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"Q"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"11111111111111111"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:both"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"both"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"BBBB"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"A"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_inference:2;bspr_labelledRule:both"},"inherited":{},"properties":{"bspr_inference":2,"bspr_labelledRule":"both"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:left"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"left"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"qqqq"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mtable","texClass":0,"attributes":{"align":"top 2","rowlines":"solid","framespacing":"0 0","semantics":"bspr_inferenceRule:down"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1,"bspr_inferenceRule":"down"},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtable","texClass":0,"attributes":{"framespacing":"0 0"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{"useHeight":1},"childNodes":[{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"B"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":null,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"R"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"C"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"D"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"Q"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"AAAA"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-3.5em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"E"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"MMM"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":"-8.352em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"F"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"CCCCC"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]}]}]}],"isInferred":true}]},{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":"4.242055555555558em"},"inherited":{},"properties":{},"childNodes":[],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]},{"kind":"mtd","texClass":null,"attributes":{"rowalign":"bottom"},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{"semantics":"bspr_axiom:true"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{"bspr_axiom":true},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"M"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}]}]}]}],"isInferred":true}]}]},{"kind":"mtr","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtd","texClass":null,"attributes":{},"inherited":{"columnalign":"center","rowalign":"baseline","displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true},{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"TeXAtom","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"N"}]},{"kind":"mo","texClass":3,"attributes":{"stretchy":false},"inherited":{"displaystyle":false,"scriptlevel":0,"form":"infix","accent":true,"stretchy":true},"properties":{},"childNodes":[{"kind":"text","text":"→"}],"isEmbellished":true},{"kind":"mi","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0,"mathvariant":"italic"},"properties":{},"childNodes":[{"kind":"text","text":"R"}]}],"isInferred":true}]}],"isInferred":true}]},{"kind":"mspace","texClass":0,"attributes":{"width":".5ex"},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[],"isSpacelike":true}]}],"isInferred":true}]}]}]},{"kind":"mpadded","texClass":0,"attributes":{"height":"+.5em","width":"+.5em","voffset":"-.15em","semantics":"bspr_prooflabel:right"},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{"bspr_prooflabel":"right"},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":true,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mstyle","texClass":0,"attributes":{"displaystyle":false,"scriptlevel":0},"inherited":{},"properties":{},"childNodes":[{"kind":"mrow","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"mtext","texClass":0,"attributes":{},"inherited":{"displaystyle":false,"scriptlevel":0},"properties":{},"childNodes":[{"kind":"text","text":"QERE"}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}],"isInferred":true,"isSpacelike":true}],"isSpacelike":true}]}]}],"isInferred":true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-cancel-tests.js b/tests/legacy-tests/parser-cancel-tests.js deleted file mode 100644 index d2702db..0000000 --- a/tests/legacy-tests/parser-cancel-tests.js +++ /dev/null @@ -1,445 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/cancel/CancelConfiguration.js'; - - -class ParserCancelTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'cancel']; - } - -} - -let parserTest = new ParserCancelTest(); - -parserTest.runTest( - 'Cancel', '\\cancel{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "updiagonalstrike"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'BCancel', '\\bcancel{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "downdiagonalstrike"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'XCancel', '\\xcancel{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "updiagonalstrike downdiagonalstrike"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'CancelTo', '\\cancelto{x}{y}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "updiagonalstrike updiagonalarrow northeastarrow"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"depth": "-.1em", - "height": "+.1em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Cancel Attr', '\\cancel[color=red]{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"color": "red", - "notation": "updiagonalstrike"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Cancel Attrs', '\\cancel[mathcolor=green,mathbackground=yellow]{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"mathcolor": "green", - "mathbackground": "yellow", - "notation": "updiagonalstrike"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Cancel Attr Not Allowed', '\\cancel[nothing=green]{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "updiagonalstrike"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'CancelTo Attrs', '\\cancelto[data-padding=5,data-arrowhead=15]{x}{y}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"data-padding": "5", - "data-arrowhead": "15", - "notation": "updiagonalstrike updiagonalarrow northeastarrow"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"depth": "-.1em", - "height": "+.1em", - "voffset": ".1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-colorv2-tests.js b/tests/legacy-tests/parser-colorv2-tests.js deleted file mode 100644 index ae259f6..0000000 --- a/tests/legacy-tests/parser-colorv2-tests.js +++ /dev/null @@ -1,236 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/colorv2/ColorV2Configuration.js'; - - -class ParserColorV2Test extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'colorv2']; - } - -} - -let parserTest = new ParserColorV2Test(); - -parserTest.runTest( - 'Color Open', '\\color{red}{ab}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "red"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "red", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "red", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "red", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Color Enclosed', '\\color{red}ab', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "red"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "red", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "red", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Color Frac', '\\frac{{\\cal \\color{red}{X}}}{\\color{blue}{\\sf y}}', - {"kind":"math", - "texClass":null, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":null, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mfrac", - "texClass":null, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"TeXAtom", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":false, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":false, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mstyle", - "texClass":0, - "attributes":{"mathcolor":"red"}, - "inherited":{ - "displaystyle":false, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "mathcolor":"red", - "displaystyle":false, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{"mathvariant":"-tex-calligraphic"}, - "inherited":{ - "mathcolor":"red", - "displaystyle":false, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"X"}]}], - "isInferred":true}]}], - "isInferred":true}]}, - {"kind":"mstyle", - "texClass":0, - "attributes":{"mathcolor":"blue"}, - "inherited":{ - "displaystyle":false, - "scriptlevel":0}, - "properties":{"texprimestyle":true}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "mathcolor":"blue", - "displaystyle":false, - "scriptlevel":0}, - "properties":{"texprimestyle":true}, - "childNodes":[ - {"kind":"mi", - "texClass":0, - "attributes":{"mathvariant":"sans-serif"}, - "inherited":{ - "mathcolor":"blue", - "displaystyle":false, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{"texprimestyle":true}, - "childNodes":[ - {"kind":"text", - "text":"y"}]}], - "isInferred":true}]}]}], - "isInferred":true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-complex-tests.js b/tests/legacy-tests/parser-complex-tests.js deleted file mode 100644 index 5a37359..0000000 --- a/tests/legacy-tests/parser-complex-tests.js +++ /dev/null @@ -1,4122 +0,0 @@ -import {ParserTest} from './parser-test.js'; - - -class ParserComplexTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserComplexTest(); - -parserTest.runTest( - 'Square Root Complex', '\\sqrt{3x-1}+(1+x)^2', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"msqrt", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{"texprimestyle":true}, - "childNodes":[ - {"kind":"mn", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{"texprimestyle":true}, - "childNodes":[ - {"kind":"text", - "text":"3"}]}, - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{"texprimestyle":true}, - "childNodes":[ - {"kind":"text", - "text":"x"}]}, - {"kind":"mo", - "texClass":2, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "form":"infix"}, - "properties":{"texprimestyle":true}, - "childNodes":[ - {"kind":"text", - "text":"−"}], - "isEmbellished":true}, - {"kind":"mn", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{"texprimestyle":true}, - "childNodes":[ - {"kind":"text", - "text":"1"}]}], - "isInferred":true}]}, - {"kind":"mo", - "texClass":2, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "form":"infix"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"+"}], - "isEmbellished":true}, - {"kind":"mo", - "texClass":4, - "attributes":{"stretchy":false}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "form":"infix", - "fence":true, - "stretchy":true, - "symmetric":true}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"("}], - "isEmbellished":true}, - {"kind":"mn", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"1"}]}, - {"kind":"mo", - "texClass":2, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "form":"infix"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"+"}], - "isEmbellished":true}, - {"kind":"mi", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "mathvariant":"italic"}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"x"}]}, - {"kind":"msup", - "texClass":5, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mo", - "texClass":5, - "attributes":{"stretchy":false}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0, - "form":"postfix", - "fence":true, - "stretchy":true, - "symmetric":true}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":")"}], - "isEmbellished":true}, - {"kind":"mn", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":false, - "scriptlevel":1}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"2"}]}], - "isEmbellished":true}], - "isInferred":true}]} -); - - -parserTest.runTest( - 'General Root', '\\sqrt[4]{3x-1}+(1+x)^2', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mroot", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "msup", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest('Quadratic Formula', - 'x = \\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "±"}], - "isEmbellished": true}, - {"kind": "msqrt", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}]}]}], - "isInferred": true}]} - ); - - -parserTest.runTest('Cauchy-Schwarz Inequality', - '\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2} \\leq' + - ' \\left( \\sum_{k=1}^n a_k^2 \\right)' + - ' \\left( \\sum_{k=1}^n b_k^2 \\right)', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "munderover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "≤"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "munderover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isEmbellished": true}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "munderover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isEmbellished": true}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} - ); - - - -parserTest.runTest('An Identity of Ramanujan', - '\\frac{1}{\\Bigl(\\sqrt{\\phi\\sqrt{5}}-\\phi\\Bigr)' + - ' e^{\\frac25\\pi}} =' + - ' 1+\\frac{e^{-2\\pi}}' + - ' {1+\\frac{e^{-4\\pi}}' + - ' {1+\\frac{e^{-6\\pi}}' + - ' {1+\\frac{e^{-8\\pi}}' + - ' {1+\\ldots} } } }', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.623em", - "maxsize": "1.623em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "msqrt", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "ϕ"}]}, - {"kind": "msqrt", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "ϕ"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.623em", - "maxsize": "1.623em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "π"}]}], - "isInferred": true}]}]}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "π"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "prefix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "π"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "form": "prefix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "π"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "form": "prefix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "8"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "π"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "form": "postfix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "…"}], - "isEmbellished": true}]}]}]}]}]}]}]}]}], - "isInferred": true}]} - ); - - -parserTest.runTest('A Rogers-Ramanujan Identity', - '1 + \\frac{q^2}{(1-q)}' + - ' + \\frac{q^6}{(1-q)(1-q^2)} + \\cdots =' + - '\\prod_{j=0}^{\\infty}' + - ' \\frac{1}{(1-q^{5j+2})(1-q^{5j+3})},' + - ' \\quad\\quad \\text{for $|q|<1$}.', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋯"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "munderover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∏"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "j"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}], - "isInferred": true}]}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "j"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "j"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "for "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "<"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "."}], - "isEmbellished": true}], - "isInferred": true}]} - ); - -parserTest.runTest('A Summation Formula', - '\\sum_{n=1}^\\infty {1\\over n^2} = {\\pi^2\\over 6}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munderover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "π"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}]}], - "isInferred": true}]}], - "isInferred": true}]} - ); - - -parserTest.runTest('Cauchy Integral Formula', - 'f(a) = \\oint_\\gamma \\frac{f(z)}{z-a}dz', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∮"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "γ"}]}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]} - ); - -parserTest.runTest('Standard Deviation', - '\\sigma = \\sqrt{\\frac{1}{N}\\sum_{i=1}^N {(x_i-\\mu)}^2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "σ"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "msqrt", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}]}, - {"kind": "munderover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "μ"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}], - "isInferred": true}]}], - "isInferred": true}]} - ); - - -parserTest.runTest( - 'A Cross Product Formula', '\\mathbf{V}_1 \\times \\mathbf{V}_2 =' + - ' \\begin{vmatrix}' + - ' \\mathbf{i} & \\mathbf{j} & \\mathbf{k} \\\\' + - ' \\frac{\\partial X}{\\partial u} &' + - ' \\frac{\\partial Y}{\\partial u} & 0 \\\\' + - ' \\frac{\\partial X}{\\partial v} &' + - ' \\frac{\\partial Y}{\\partial v} & 0 \\\\' + - ' \\end{vmatrix}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "V"}]}], - "isInferred": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "×"}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "V"}]}], - "isInferred": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "j"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "u"}]}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Y"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "u"}]}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "v"}]}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Y"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "v"}]}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]}); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-digits-european-tests.js b/tests/legacy-tests/parser-digits-european-tests.js deleted file mode 100644 index 4058666..0000000 --- a/tests/legacy-tests/parser-digits-european-tests.js +++ /dev/null @@ -1,213 +0,0 @@ -import {ParserTest} from './parser-test.js'; - -let patternEuropean = /^(?:[0-9]+(?:\{\.\}[0-9]{3})*(?:,[0-9]*)?|,[0-9]+)/; - -class ParserDigitsEuropeanTest extends ParserTest { - - constructor() { - super(); - this.settings['digits'] = patternEuropean; - } - -} - - -let parserTest = new ParserDigitsEuropeanTest(); - - -parserTest.runTest( - 'Integer European', '2', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mn", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"2"}]}], - "isInferred":true}]} -); - - -parserTest.runTest( - 'Number European', '3,14', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3,14"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Thousands European', '1{.}000,10', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1.000,10"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Wrong Thousands European', '1{.}0000,10', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1.000"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0,10"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Decimal European', ',14', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ",14"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Decimal Point European', ',', - {"kind": "math", - "texClass": 6, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 6, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle":"after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-digits-tests.js b/tests/legacy-tests/parser-digits-tests.js deleted file mode 100644 index 1019259..0000000 --- a/tests/legacy-tests/parser-digits-tests.js +++ /dev/null @@ -1,259 +0,0 @@ -import {ParserTest} from './parser-test.js'; - -let patternUS = /^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/; - -class ParserDigitsTest extends ParserTest { - - constructor() { - super(); - this.settings['digits'] = patternUS; - } - -} - - -let parserTest = new ParserDigitsTest(patternUS); - -parserTest.runTest( - 'Integer', '2', - {"kind":"math", - "texClass":0, - "attributes":{"display":"block"}, - "inherited":{"displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mrow", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"mn", - "texClass":0, - "attributes":{}, - "inherited":{ - "displaystyle":true, - "scriptlevel":0}, - "properties":{}, - "childNodes":[ - {"kind":"text", - "text":"2"}]}], - "isInferred":true}]} -); - - -parserTest.runTest( - 'Number', '3.14', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3.14"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Decimal', '.14', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ".14"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Thousands', '1{,}000.10', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1,000.10"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Wrong Thousands', '1{,}0000.10', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1,000"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0.10"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Decimal Point', '.', - {"kind": "math", - "texClass": 6, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 6, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "."}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Integer Font', '\\mathbf{2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-enclose-tests.js b/tests/legacy-tests/parser-enclose-tests.js deleted file mode 100644 index 37d48a7..0000000 --- a/tests/legacy-tests/parser-enclose-tests.js +++ /dev/null @@ -1,289 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/enclose/EncloseConfiguration.js'; - - -class ParserEncloseTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'enclose']; - } - -} - -let parserTest = new ParserEncloseTest(); - -parserTest.runTest( - 'Enclose 1', '\\enclose{updiagonalstrike}{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "updiagonalstrike"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclose 2', '\\enclose{circle}{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "circle"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclose 3', '\\enclose{horizontalstrike}{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"notation": "horizontalstrike"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclose Attr 2', '\\enclose{updiagonalarrow}[mathbackground=red]{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"mathbackground": "red", - "notation": "updiagonalarrow"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclose Attr 1', '\\enclose{horizontalstrike}[data-thickness=5]{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"data-thickness": "5", - "notation": "horizontalstrike"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Enclose Attrs', '\\enclose{circle}[data-thickness=10,data-padding=5]{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "menclose", - "texClass": 0, - "attributes": {"data-thickness": "10", - "data-padding": "5", - "notation": "circle"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-error-tests.js b/tests/legacy-tests/parser-error-tests.js deleted file mode 100644 index 5302b4b..0000000 --- a/tests/legacy-tests/parser-error-tests.js +++ /dev/null @@ -1,2677 +0,0 @@ -import {ParserTest} from './parser-test.js'; - - -class ParserErrorTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserErrorTest(); - -// Errors - -// Error in checkItem. -parserTest.runTest( - 'Ampersand-error', '&', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Misplaced &" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Misplaced &"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// Error in GetArgument -parserTest.runTest( - 'Argument-error', '\\frac{b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing argument for \\frac" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing argument for \\frac"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// Control sequence error: csUndefined -parserTest.runTest( - 'Undefined-CS', '\\nonsense', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Undefined control sequence \\nonsense" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Undefined control sequence \\nonsense"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// Environment sequence error: envUndefined -parserTest.runTest( - 'Undefined-Env', '\\begin{nonsense} a \\end{nonsense}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Unknown environment 'nonsense'" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Unknown environment 'nonsense'"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Double-super-error', 'x^2^3', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Double exponent: use braces to clarify" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Double exponent: use braces to clarify"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Double-over-error', '\\sum^2^3', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Double exponent: use braces to clarify" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Double exponent: use braces to clarify"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Limits Error', '+\\limits^2', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\limits is allowed only on operators" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\limits is allowed only on operators"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Double sub error', 'x_2_3', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Double subscripts: use braces to clarify" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Double subscripts: use braces to clarify"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Double under error', '\\sum_2_3', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Double subscripts: use braces to clarify" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Double subscripts: use braces to clarify"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Brace Superscript Error', 'x\'^\'', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing open brace for superscript" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing open brace for superscript"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Double Prime Error', 'x^\\prime\'', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Prime causes double exponent: use braces to clarify" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Prime causes double exponent: use braces to clarify"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Hash Error', '#', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"You can't use 'macro parameter character #' in math mode" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "You can't use 'macro parameter character #' in math mode"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Missing Right', '\\left(\\middle|', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Extra \\left or missing \\right" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Extra \\left or missing \\right"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Orphan Middle', '\\middle|', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\middle must be within \\left and \\right" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\middle must be within \\left and \\right"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Middle with Right', '\\middle|\\right)', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\middle must be within \\left and \\right" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\middle must be within \\left and \\right"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Misplaced Move Root', '\\uproot{2}\\sqrt[3]{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\uproot can appear only within a root" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\uproot can appear only within a root"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Multiple Move Root', '\\sqrt[\\uproot{-2}\\uproot{2}\\beta]{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Multiple use of \\uproot" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Multiple use of \\uproot"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Incorrect Move Root', '\\sqrt[\\uproot-2.5\\beta]{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"The argument to \\uproot must be an integer" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "The argument to \\uproot must be an integer"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Double Over', '1 \\over 2 \\over 3', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Ambiguous use of \\over" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Ambiguous use of \\over"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Token Illegal Type', '\\mmlToken{mk}[]{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"mk is not a token element" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "mk is not a token element"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Token Wrong Type', '\\mmlToken{mrow}[]{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"mrow is not a token element" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "mrow is not a token element"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Token Invalid Attribute', '\\mmlToken{mi}[m1=true]{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Invalid MathML attribute: m1=true" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Invalid MathML attribute: m1=true"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Token Unknown Attribute', '\\mmlToken{mo}[nothing="something"]{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"nothing is not a recognized attribute for mo" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "nothing is not a recognized attribute for mo"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Token Wrong Attribute', '\\mmlToken{mi}[movablelimit=true]{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"movablelimit is not a recognized attribute for mi" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "movablelimit is not a recognized attribute for mi"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingBeginExtraEnd', '\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing \\begin{array} or extra \\end{array}" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing \\begin{array} or extra \\end{array}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'ExtraCloseMissingOpen', 'x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Extra close brace or missing open brace" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Extra close brace or missing open brace"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingLeftExtraRight', 'x\\right\\}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing \\left or extra \\right" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing \\left or extra \\right"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'ExtraOpenMissingClose', '{x', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Extra open brace or missing close brace" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Extra open brace or missing close brace"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingScript Sub', 'x_', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing superscript or subscript argument" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing superscript or subscript argument"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingScript Sup', 'x^', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing superscript or subscript argument" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing superscript or subscript argument"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingOpenForSup', 'x^^', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing open brace for superscript" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing open brace for superscript"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingOpenForSub', 'x__', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing open brace for subscript" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing open brace for subscript"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'ExtraLeftMissingRight', '\\left\\{x', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Extra \\left or missing \\right" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Extra \\left or missing \\right"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Misplaced Cr', 'a\\cr b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Misplaced \\cr" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Misplaced \\cr"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Dimension Error', 'a\\\\[abc] b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Bracket argument to \\\\ must be a dimension" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Bracket argument to \\\\ must be a dimension"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// In TexParser -parserTest.runTest( - 'MissingArgFor', '\\sqrt', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing argument for \\sqrt" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing argument for \\sqrt"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'ExtraCloseMissingOpen 2', '\\sqrt}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Extra close brace or missing open brace" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Extra close brace or missing open brace"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingCloseBrace', '\\sqrt{', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing close brace" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing close brace"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'ExtraCloseLooking1', '\\sqrt[3}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Extra close brace while looking for ']'" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Extra close brace while looking for ']'"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingCloseBracket', '\\sqrt[3{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Could not find closing ']' for argument to \\sqrt" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Could not find closing ']' for argument to \\sqrt"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingOrUnrecognizedDelim1', '\\left\\alpha b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing or unrecognized delimiter for \\left" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing or unrecognized delimiter for \\left"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingOrUnrecognizedDelim2', '\\left( b\\right', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing or unrecognized delimiter for \\right" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing or unrecognized delimiter for \\right"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingDimOrUnits', '\\rule{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing dimension or its units for \\rule" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing dimension or its units for \\rule"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'TokenNotFoundForCommand', '\\root {3] \\of 5', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Could not find \\of for \\root" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Could not find \\of for \\root"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'ExtraCloseLooking2', '\\root [3} \\of 5 ', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Extra close brace while looking for \\of" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Extra close brace while looking for \\of"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingOrUnrecognizedDelim', '\\genfrac{(}{a}{}{2}{1}{2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing or unrecognized delimiter for \\genfrac" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing or unrecognized delimiter for \\genfrac"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// In ParseUtil -parserTest.runTest( - 'ErroneousNestingEq', '\\begin{equation}\\begin{eqnarray}\\end{eqnarray}\\end{equation}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Erroneous nesting of equation structures" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Erroneous nesting of equation structures"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// In BaseMethods - -parserTest.runTest( - 'ExtraAlignTab', '\\cases{b & l & k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Extra alignment tab in \\cases text" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Extra alignment tab in \\cases text"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Misplaced hline', '\\hline', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Misplaced \\hline" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Misplaced \\hline"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'UnsupportedHFill', 'a\\hfill b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Unsupported use of \\hfill" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Unsupported use of \\hfill"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'InvalidEnv', '\\begin{\\ff}kk\\end{\\ff}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Invalid environment name '\\ff'" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Invalid environment name '\\ff'"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// In BaseItems - -parserTest.runTest( - 'EnvBadEnd', '\\begin{equation}a\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\begin{equation} ended with \\end{array}" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\begin{equation} ended with \\end{array}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'EnvMissingEnd Array', '\\begin{array}a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing \\end{array}" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing \\end{array}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingBoxFor', '\\raise{2pt}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing box for \\raise" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing box for \\raise"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingCloseBrace2', '\\begin{array}{c', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing close brace" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing close brace"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'EnvMissingEnd Equation', '\\begin{equation}a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing \\end{equation}" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing \\end{equation}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-extpfeil-tests.js b/tests/legacy-tests/parser-extpfeil-tests.js deleted file mode 100644 index d89811e..0000000 --- a/tests/legacy-tests/parser-extpfeil-tests.js +++ /dev/null @@ -1,705 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/extpfeil/ExtpfeilConfiguration.js'; - - -class ParserExtpfeilTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'extpfeil']; - } - -} - -let parserTest = new ParserExtpfeilTest(); - - -parserTest.runTest( - 'Xtwoheadrightarrow', '\\xtwoheadrightarrow{abcxyz}', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "↠"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+1.556em", - "lspace": "0.667em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - -parserTest.runTest( - 'Xtwoheadleftarrow', '\\xtwoheadleftarrow{abcxyz}', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "↞"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+1.667em", - "lspace": "0.944em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - -parserTest.runTest( - 'Xmapsto', '\\xmapsto{abcxyz}', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "↦"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.722em", - "lspace": "0.333em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - -parserTest.runTest( - 'Xlongequal', '\\xlongequal{abcxyz}', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.778em", - "lspace": "0.389em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - -parserTest.runTest( - 'Xtofrom', '\\xtofrom{abcxyz}', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "⇄"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+1.333em", - "lspace": "0.667em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - -parserTest.runTest( - 'Newextarrow', '\\Newextarrow{\\ab}{10,20}{8672}\\ab{xyz}', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "⇠"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+1.667em", - "lspace": "0.556em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-fenced-tests.js b/tests/legacy-tests/parser-fenced-tests.js deleted file mode 100644 index c3c4c55..0000000 --- a/tests/legacy-tests/parser-fenced-tests.js +++ /dev/null @@ -1,1259 +0,0 @@ -import {ParserTest} from './parser-test.js'; - - -class ParserFencedTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserFencedTest(); - - -parserTest.runTest( - 'Fenced', '\\left(\\frac{a}{\\left[bc\\right]}\\right)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -// Test for delimiter lookup. -parserTest.runTest( - 'Fenced2', '\\{\\frac{a}{\\uparrow bc\\downarrow}\\}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "↑"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Fenced3', '\\left\\{\\left\\vert \\left[ \\left\\| A \\right.\\right| \\right]\\right\\}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "∥", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Middle', '\\left(a\\middle|b\\right)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Fenced Nostretch 1', '(\\frac{a}{[bc]})', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Fenced Noleft', '\\left. ab \\right)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Fenced Noright', '\\left( ab \\right.', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Fenced Arrows 5', '\\left\\{\\frac{a}{\\left\\uparrow bc\\right\\downarrow}\\right\\}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"open": "↑", - "close": "↓", - "texClass": 7, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "symmetric": true}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "↑"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "symmetric": true}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "stretchy": true}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Fenced Arrows 1', '\\left\\uparrow \\frac{a}{b} \\right\\downarrow', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "↑", - "close": "↓", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "↑"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "stretchy": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Fenced Arrows 2', '\\uparrow \\frac{a}{b} \\downarrow', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↑"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Fenced Arrows 3', '\\left\\uparrow \\frac{a}{b}\\middle\\downarrow c \\right\\uparrow', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "↑", - "close": "↑", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "↑"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "stretchy": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "↑"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-html-tests.js b/tests/legacy-tests/parser-html-tests.js deleted file mode 100644 index 7c299ea..0000000 --- a/tests/legacy-tests/parser-html-tests.js +++ /dev/null @@ -1,501 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/html/HtmlConfiguration.js'; - - -class ParserHtmlTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'html']; - } - -} - -let parserTest = new ParserHtmlTest(); - - -parserTest.runTest( - 'Html Href Simple', '\\href{https://mathjax.org}{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"href": "https://mathjax.org"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Html Href Complex', '\\href{https://mathjax.org}{\\frac{a}{b}}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {"href": "https://mathjax.org"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Html Href Inner', '\\frac{a}{\\href{https://mathjax.org}{b}}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"href": "https://mathjax.org"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Html Style Simple', '\\style{color:green;background-color:blue}{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"style": "color:green;background-color:blue"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Html Style Complex', '\\style{color:green;background-color:blue}{\\frac{a}{b}}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {"style": "color:green;background-color:blue"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Html Style Inner', '\\frac{a}{\\style{color:green;background-color:blue}{b}}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"style": "color:green;background-color:blue"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Html Class Simple', '\\class{myclass}{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"class": "myclass"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Html Class Simple', '\\class{myclass}{\\frac{a}{b}}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {"class": "myclass"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Html Class Complex', '\\frac{a}{\\class{myclass}{b}}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"class": "myclass"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Html Id Inner', '\\cssId{myid-0}{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"id": "myid-0"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Html Id Simple', '\\cssId{myid-1}{\\frac{a}{b}}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {"id": "myid-1"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Html Id Complex', '\\frac{a}{\\cssId{myid-2}{b}}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"id": "myid-2"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-internal-math-tests.js b/tests/legacy-tests/parser-internal-math-tests.js deleted file mode 100644 index 10d6e8c..0000000 --- a/tests/legacy-tests/parser-internal-math-tests.js +++ /dev/null @@ -1,723 +0,0 @@ -import {ParserTest} from './parser-test.js'; - - -class ParserInternalMathTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserInternalMathTest(); - - -parserTest.runTest( - 'Interspersed Text', 'a\\text{c$d$e}b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}], - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Mbox Mbox', 'a\\mbox{ b $a\\mbox{ b c } c$ c } c', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " b "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " b c "}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " c "}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Mbox Eqref', 'a\\mbox{ \\eqref{1} } c', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {"href": "#", - "class": "MathJax_ref"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(???)"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]} -); - - - -parserTest.runTest( - 'Mbox Math', 'a\\mbox{ ${ab}$ } c', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]} -); - - - -parserTest.runTest( - 'Mbox CR', 'a\\mbox{aa \\\\ bb} c', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "aa \\ bb"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]} -); - - - -parserTest.runTest( - 'Internal Math Error', 'a\\mbox{$}} c', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Math not terminated in text box" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Math not terminated in text box"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Mbox Internal Display', 'a\\mbox{aa \\(\\frac{a}{b}\\) bb} c', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "aa "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " bb"}], - "isSpacelike": true}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-macros-tests.js b/tests/legacy-tests/parser-macros-tests.js deleted file mode 100644 index 3722ce8..0000000 --- a/tests/legacy-tests/parser-macros-tests.js +++ /dev/null @@ -1,289 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/configmacros/ConfigMacrosConfiguration.js'; - - -class ParserConfigMacrosTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'configmacros']; - Object.assign(this.settings, {macros:{}}); - } - - runTest(name, macro, tex1, tex2, expected) { - Object.assign(this.settings.macros, macro); - super.runTest(name, tex1, expected); - super.runTest(name, tex2, expected); - } - -} - -let parserTest = new ParserConfigMacrosTest(); - -parserTest.runTest( - 'Macros Simple', {RR: '{\\bf R}'}, - '{\\bf R}', '\\RR', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Macros Argument', {bold: ['{\\bf #1}', 1]}, - '{\\bf bold}', '\\bold{bold}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "o"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Macros Aux Argument', - {foo: ['\\mbox{first } #1 \\mbox{ second } #2', 2, ['[', ']']]}, - '\\mbox{first } hi \\mbox{ second } there', - '\\foo[hi]{there}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "first "}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "h"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " second "}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "t"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "h"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-mathchoice-tests.js b/tests/legacy-tests/parser-mathchoice-tests.js deleted file mode 100644 index 870076e..0000000 --- a/tests/legacy-tests/parser-mathchoice-tests.js +++ /dev/null @@ -1,3958 +0,0 @@ -import {ParserTest} from './parser-test.js'; - - -class ParserMathchoiceTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserMathchoiceTest(); - -parserTest.runTest( - 'Modulo', 'a\\mod b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"autoOP": true}, - "childNodes": [ - {"kind": "text", - "text": "mod"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Modulo Sub0', 'X_{a\\mod b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.667em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true, - "autoOP": true}, - "childNodes": [ - {"kind": "text", - "text": "mod"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Modulo Sub1', 'X_{1_{a\\mod b}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.667em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true, - "autoOP": true}, - "childNodes": [ - {"kind": "text", - "text": "mod"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Modulo Sub2', 'X_{1_{2_{a\\mod b}}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.667em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true, - "autoOP": true}, - "childNodes": [ - {"kind": "text", - "text": "mod"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Modulo Sub3', 'X_{1_{2_{3_{a\\mod b}}}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.667em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true, - "autoOP": true}, - "childNodes": [ - {"kind": "text", - "text": "mod"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Choose', 'n \\choose k', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 0}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"withDelims": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Choose Sub0', 'X_{n \\choose k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"open": "(", - "close": ")", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Choose Sub1', 'X_{1_{n \\choose k}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"open": "(", - "close": ")", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Choose Sub2', 'X_{1_{2_{n \\choose k}}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"open": "(", - "close": ")", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Choose Sub3', 'X_{1_{2_{3_{n \\choose k}}}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"open": "(", - "close": ")", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 5, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 5, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Over With Delims', '1 \\overwithdelims [ ] 2', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 0}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"withDelims": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Over With Delims Sub0', 'X_{1 \\overwithdelims [ ] 2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"open": "[", - "close": "]", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Over With Delims Sub1', 'X_{1_{1 \\overwithdelims [ ] 2}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"open": "[", - "close": "]", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Over With Delims Sub2', 'X_{1_{2_{1 \\overwithdelims [ ] 2}}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"open": "[", - "close": "]", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Over With Delims Sub3', 'X_{1_{2_{3_{1 \\overwithdelims [ ] 2}}}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"open": "[", - "close": "]", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 5}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 5}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Above With Delims', 'a \\abovewithdelims [ ] 1pt b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 0}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": "1pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"withDelims": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Above With Delims Sub0', 'X_{a \\abovewithdelims [ ] 1pt b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"open": "[", - "close": "]", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": "1pt"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Above With Delims Sub1', 'X_{1_{a \\abovewithdelims [ ] 1pt b}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"open": "[", - "close": "]", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": "1pt"}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Above With Delims Sub2', 'X_{1_{2_{a \\abovewithdelims [ ] 1pt b}}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"open": "[", - "close": "]", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": "1pt"}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 3, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Above With Delims Sub3', 'X_{1_{2_{3_{a \\abovewithdelims [ ] 1pt b}}}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 3}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"open": "[", - "close": "]", - "texClass": 0, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": "1pt"}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"withDelims": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 5, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 5, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 4}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 4, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Probability', 'P(E) = {n \\choose k} p^k (1-p)^{ n-k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "E"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 0}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"withDelims": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "p"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "p"}]}, - {"kind": "msup", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-matrix-tests.js b/tests/legacy-tests/parser-matrix-tests.js deleted file mode 100644 index e3d41ee..0000000 --- a/tests/legacy-tests/parser-matrix-tests.js +++ /dev/null @@ -1,1061 +0,0 @@ -import {ParserTest} from './parser-test.js'; - -class ParserMatrixTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserMatrixTest(); - -parserTest.runTest( -'Matrix Error', '\\matrix', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing argument for \\matrix" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing argument for \\matrix"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( -'Matrix Arg', '\\matrix a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( -'Matrix Braces', '\\matrix{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( -'Matrix Columns', '\\array{a&b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( -'Matrix Rows', '\\array{a&b\\\\ c&d}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( -'Matrix Subscript', 'X_{\\matrix{a&b}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"useHeight": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( -'Matrix Parens', '\\pmatrix{a&b}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( -'Matrix Parens Subscript', 'X_{\\pmatrix{a&b}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"open": "(", - "close": ")", - "texClass": 7, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": "4pt", - "columnspacing": "1em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"useHeight": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( -'Matrix Cases', '\\cases{a}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"rowspacing": ".1em", - "columnspacing": "1em", - "columnalign": "left left"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left left", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( -'Matrix Numbered', '\\eqalignno{a&b&c}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left", - "rowspacing": ".5em", - "columnspacing": "thickmathspace", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-mhchem-0-tests.js b/tests/legacy-tests/parser-mhchem-0-tests.js deleted file mode 100644 index f8c9484..0000000 --- a/tests/legacy-tests/parser-mhchem-0-tests.js +++ /dev/null @@ -1,3764 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js'; - - -class ParserMhchemTest0 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'mhchem']; - } - -} - -let parserTest = new ParserMhchemTest0(); - -parserTest.runTest( - 'Chem-1', '\\ce{CO2 + C -> 2 CO}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟶"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-2', '\\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-3', 'C_p[\\ce{H2O(l)}] = \\pu{75.3 J // mol K}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "p"}]}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "75.3"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": null, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "J"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "o"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.167em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "K"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-4', '\\ce{H2O}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-5', '\\ce{Sb2O3}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "S"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-6', '\\ce{H+}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-7', '\\ce{CrO4^2-}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-8', '\\ce{[AgCl2]-}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-9', '\\ce{Y^99+}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Y"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "99"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-mhchem-1-tests.js b/tests/legacy-tests/parser-mhchem-1-tests.js deleted file mode 100644 index 8923e0a..0000000 --- a/tests/legacy-tests/parser-mhchem-1-tests.js +++ /dev/null @@ -1,4031 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js'; - - -class ParserMhchemTest1 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'mhchem']; - } - -} - -let parserTest = new ParserMhchemTest1(); - -parserTest.runTest( - 'Chem-10', '\\ce{Y^{99+}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Y"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "99"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-11', '\\ce{2 H2O}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-12', '\\ce{2H2O}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-13', '\\ce{0.5 H2O}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0.5"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-14', '\\ce{1/2 H2O}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": null, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}], - "isInferred": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-15', '\\ce{(1/2) H2O}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-16', '\\ce{$n$ H2O}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-17', '\\ce{^{227}_{90}Th+}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "90"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "227"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "90"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "227"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "T"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "h"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-18', '\\ce{^227_90Th+}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "90"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "227"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "90"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "227"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "T"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "h"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-19', '\\ce{^{0}_{-1}n^{-}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-mhchem-2-tests.js b/tests/legacy-tests/parser-mhchem-2-tests.js deleted file mode 100644 index a7df3a9..0000000 --- a/tests/legacy-tests/parser-mhchem-2-tests.js +++ /dev/null @@ -1,4058 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js'; - - -class ParserMhchemTest2 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'mhchem']; - } - -} - -let parserTest = new ParserMhchemTest2(); - -parserTest.runTest( - 'Chem-20', '\\ce{^0_-1n-}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-21', '\\ce{H{}^3HO}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-22', '\\ce{H^3HO}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-23', '\\ce{A -> B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟶"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-24', '\\ce{A <- B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟵"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-25', '\\ce{A <-> B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟷"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-26', '\\ce{A <--> B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movablelimits": false, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 3, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "⟵"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0px", - "height": ".25em", - "depth": "0px", - "mathbackground": "black"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟶"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-27', '\\ce{A <=> B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movablelimits": false, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "↽"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⇀"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-28', '\\ce{A <=>> B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movablelimits": false, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 3, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "↽"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⇀"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-29', '\\ce{A <<=> B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movablelimits": false, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "↽"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⇀"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-mhchem-3-tests.js b/tests/legacy-tests/parser-mhchem-3-tests.js deleted file mode 100644 index b7ac021..0000000 --- a/tests/legacy-tests/parser-mhchem-3-tests.js +++ /dev/null @@ -1,3715 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js'; - - -class ParserMhchemTest3 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'mhchem']; - } - -} - -let parserTest = new ParserMhchemTest3(); - -parserTest.runTest( - 'Chem-30', '\\ce{A ->[H2O] B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-31', '\\ce{A ->[{text above}][{text below}] B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munderover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": "-.24em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "text below"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "text above"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-32', '\\ce{A ->[$x$][$x_i$] B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munderover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": "-.24em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-33', '\\ce{(NH4)2S}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "S"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-34', '\\ce{[\\{(X2)3\\}2]^3+}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-35', '\\ce{CH4 + 2 $\\left( \\ce{O2 + 79/21 N2} \\right)$}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mstyle", - "texClass": null, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "79"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "21"}]}]}], - "isInferred": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-36', '\\ce{H2(aq)}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-37', '\\ce{CO3^2-_{(aq)}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true}]}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-38', '\\ce{NaOH(aq,$\\infty$)}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-39', '\\ce{ZnS($c$)}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Z"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "S"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-mhchem-4-tests.js b/tests/legacy-tests/parser-mhchem-4-tests.js deleted file mode 100644 index 140476a..0000000 --- a/tests/legacy-tests/parser-mhchem-4-tests.js +++ /dev/null @@ -1,4521 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js'; - - -class ParserMhchemTest4 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'mhchem']; - } - -} - -let parserTest = new ParserMhchemTest4(); - -parserTest.runTest( - 'Chem-40', '\\ce{ZnS(\\ca$c$)}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Z"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "S"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∼"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-41', '\\ce{NO_x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-42', '\\ce{Fe^n+}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-43', '\\ce{x Na(NH4)HPO4 ->[\\Delta] (NaPO3)_x + x NH3 ^ + x H2O}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Δ"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↑"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-44', '\\ce{\\mu-Cl}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "μ"}]}], - "isInferred": true}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-45', '\\ce{[Pt(\\eta^2-C2H4)Cl3]-}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "t"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "η"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-46', '\\ce{\\beta +}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "β"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-47', '\\ce{^40_18Ar + \\gamma{} + \\nu_e}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "18"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "40"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "18"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0, - "lspace": "-1width"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "40"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "γ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ν"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-48', '\\ce{NaOH(aq,$\\infty$)}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-49', '\\ce{Fe(CN)_{$\\frac{6}{2}$}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-mhchem-5-tests.js b/tests/legacy-tests/parser-mhchem-5-tests.js deleted file mode 100644 index de3685f..0000000 --- a/tests/legacy-tests/parser-mhchem-5-tests.js +++ /dev/null @@ -1,3480 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js'; - - -class ParserMhchemTest5 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'mhchem']; - } - -} - -let parserTest = new ParserMhchemTest5(); - -parserTest.runTest( - 'Chem-50', '\\ce{X_{$i$}^{$x$}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-51', '\\ce{X_$i$^$x$}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-52', '\\ce{$cis${-}[PtCl2(NH3)2]}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "t"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-53', '\\ce{CuS($hP12$)}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "u"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "S"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "h"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "12"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-54', '\\ce{{Gluconic Acid} + H2O2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Gluconic Acid"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-55', '\\ce{X_{{red}}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "red"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-56', '\\ce{{(+)}_589{-}[Co(en)3]Cl3}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(+)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "589"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "o"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-57', '\\ce{C6H5-CHO}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-58', '\\ce{A-B=C#D}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "≡"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "D"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-59', '\\ce{A\\bond{-}B\\bond{=}C\\bond{#}D}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "≡"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "D"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-mhchem-6-tests.js b/tests/legacy-tests/parser-mhchem-6-tests.js deleted file mode 100644 index 9e5c7e2..0000000 --- a/tests/legacy-tests/parser-mhchem-6-tests.js +++ /dev/null @@ -1,5499 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js'; - - -class ParserMhchemTest6 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'mhchem']; - } - -} - -let parserTest = new ParserMhchemTest6(); - -parserTest.runTest( - 'Chem-60', '\\ce{A\\bond{1}B\\bond{2}C\\bond{3}D}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "≡"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "D"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-61', '\\ce{A\\bond{~}B\\bond{~-}C}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+0.111em", - "depth": "-0.111em", - "voffset": "+0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathsize": "0.5em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "-.1em", - "depth": "+.1em", - "voffset": "-.1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+.1em", - "depth": "-.1em", - "voffset": "+.1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+0.111em", - "depth": "-0.111em", - "voffset": "+0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathsize": "0.5em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-62', '\\ce{A\\bond{~--}B\\bond{~=}C\\bond{-~-}D}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "-.2em", - "depth": "+.2em", - "voffset": "-.2em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+.2em", - "depth": "-.2em", - "voffset": "+.2em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+0.111em", - "depth": "-0.111em", - "voffset": "+0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathsize": "0.5em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "-.2em", - "depth": "+.2em", - "voffset": "-.2em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+.2em", - "depth": "-.2em", - "voffset": "+.2em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+0.111em", - "depth": "-0.111em", - "voffset": "+0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathsize": "0.5em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "-.2em", - "depth": "+.2em", - "voffset": "-.2em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+.2em", - "depth": "-.2em", - "voffset": "+.2em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "+0.111em", - "depth": "-0.111em", - "voffset": "+0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathsize": "0.5em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.111em"}, - "inherited": {"mathsize": "0.5em", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "D"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-63', '\\ce{A\\bond{...}B\\bond{....}C}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-64', '\\ce{A\\bond{->}B\\bond{<-}C}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "←"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-65', '\\ce{KCr(SO4)2*12H2O}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "K"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "S"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "12"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-66', '\\ce{KCr(SO4)2.12H2O}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "K"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "S"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "12"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-67', '\\ce{KCr(SO4)2 * 12 H2O}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "K"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "S"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "12"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-68', '\\ce{Fe^{II}Fe^{III}2O4}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-69', '\\ce{OCO^{.-}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∙"}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-mhchem-7-tests.js b/tests/legacy-tests/parser-mhchem-7-tests.js deleted file mode 100644 index cbc5341..0000000 --- a/tests/legacy-tests/parser-mhchem-7-tests.js +++ /dev/null @@ -1,3022 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js'; - - -class ParserMhchemTest7 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'mhchem']; - } - -} - -let parserTest = new ParserMhchemTest7(); - -parserTest.runTest( - 'Chem-70', '\\ce{NO^{(2.)-}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∙"}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-71', "\\ce{O''_{i,x}}", - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"variantForm": true}, - "childNodes": [ - {"kind": "text", - "text": "′"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"variantForm": true}, - "childNodes": [ - {"kind": "text", - "text": "′"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-72', '\\ce{M^{..}_i}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "M"}]}], - "isInferred": true}]}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∙"}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∙"}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-73', "\\ce{$V$^{4'}_{Ti}}", - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "V"}]}, - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "T"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"variantForm": true}, - "childNodes": [ - {"kind": "text", - "text": "′"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-74', '\\ce{V_{V,1}C_{C,0.8}$V$_{C,0.2}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "V"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "V"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0.8"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "V"}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0.2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-75', '\\ce{A + B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-76', '\\ce{A - B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-77', '\\ce{A = B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-78', '\\ce{A \\pm B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "±"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-79', '\\ce{SO4^2- + Ba^2+ -> BaSO4 v}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "S"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟶"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "S"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-mhchem-8-tests.js b/tests/legacy-tests/parser-mhchem-8-tests.js deleted file mode 100644 index 05a55b0..0000000 --- a/tests/legacy-tests/parser-mhchem-8-tests.js +++ /dev/null @@ -1,4516 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js'; - - -class ParserMhchemTest8 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'mhchem']; - } - -} - -let parserTest = new ParserMhchemTest8(); - -parserTest.runTest( - 'Chem-80', '\\ce{A v B (v) -> B ^ B (^)}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟶"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↑"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↑"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-81', '\\ce{NO^*}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∗"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-82', '\\ce{1s^2-N}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "N"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-83', '\\ce{n-Pr}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "-"}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-84', '\\ce{iPr}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-85', '\\ce{\\ca Fe}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∼"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-86', '\\ce{A, B, C; F}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.333em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.333em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ";"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.333em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-87', '\\ce{{and others}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "and others"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-88', '\\ce{Zn^2+ <=>[+ 2OH-][+ 2H+] $\\underset{\\text{amphoteres Hydroxid}}{\\ce{Zn(OH)2 v}}$ <=>[+ 2OH-][+ 2H+] $\\underset{\\text{Hydroxozikat}}{\\ce{[Zn(OH)4]^2-}}$}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Z"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munder", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movablelimits": false, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "↽"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "⇀"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}]}]}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "-0.389em", - "depth": "+0.389em", - "voffset": "-0.389em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "munder", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Z"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "↓"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "amphoteres Hydroxid"}], - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munder", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movablelimits": false, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "↽"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "⇀"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}]}]}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": "-0.389em", - "depth": "+0.389em", - "voffset": "-0.389em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": false}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "thinmathspace"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "munder", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Z"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Hydroxozikat"}], - "isSpacelike": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-89', '\\ce{$K = \\frac{[\\ce{Hg^2+}][\\ce{Hg}]}{[\\ce{Hg2^2+}]}$}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "K"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-mhchem-9-tests.js b/tests/legacy-tests/parser-mhchem-9-tests.js deleted file mode 100644 index 4af0f21..0000000 --- a/tests/legacy-tests/parser-mhchem-9-tests.js +++ /dev/null @@ -1,3851 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js'; - - -class ParserMhchemTest9 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'mhchem']; - } - -} - -let parserTest = new ParserMhchemTest9(); - -parserTest.runTest( - 'Chem-90', '\\ce{$K = \\ce{\\frac{[Hg^2+][Hg]}{[Hg2^2+]}}$}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "K"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-91', '\\ce{Hg^2+ ->[I-] $\\underset{\\mathrm{red}}{\\ce{HgI2}}$ ->[I-] $\\underset{\\mathrm{red}}{\\ce{[Hg^{II}I4]^2-}}$}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "munder", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 3}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texClass": 3, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}, - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": "+0.611em", - "lspace": "0.278em", - "voffset": ".15em"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "munder", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "H"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}], - "isInferred": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "postfix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-92', '\\pu{123 kJ}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "123"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "J"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-93', '\\pu{123 mm2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "123"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-94', '\\pu{123 J s}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "123"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "J"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.167em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-95', '\\pu{123 J*s}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "123"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "J"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-96', '\\pu{123 kJ/mol}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "123"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "J"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "o"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-97', '\\pu{123 kJ//mol}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "123"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": null, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "J"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "o"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-98', '\\pu{123 kJ mol-1}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "123"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "J"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.167em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "o"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-99', '\\pu{123 kJ*mol-1}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "123"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "J"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "0.056em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "o"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-100', '\\pu{1.2e3 kJ}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1.2"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "10"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "J"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-101', '\\pu{1,2e3 kJ}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "10"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "J"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-102', '\\pu{1.2E3 kJ}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1.2"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "×"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "10"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "J"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Chem-103', '\\pu{1,2E3 kJ}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "×"}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "10"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " "}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "k"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "J"}]}], - "isInferred": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-movlim-tests.js b/tests/legacy-tests/parser-movlim-tests.js deleted file mode 100644 index 226c159..0000000 --- a/tests/legacy-tests/parser-movlim-tests.js +++ /dev/null @@ -1,1549 +0,0 @@ -import {ParserTest} from './parser-test.js'; - - -class ParserMovlimTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserMovlimTest(); - - -parserTest.runTest( - 'Limits SubSup', '\\int^2\\limits_3', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munderover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Limits UnderOver', '\\lim_3\\nolimits^2', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": false}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"movablelimits": false, - "movesupsub": true, - "texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "lim"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Limits', '\\sum\\limits^2_3', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munderover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {"movablelimits": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Vector Op', '\\vec{+}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u2192"}], - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Overline', '\\overline{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "accent": false}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"accent": false}, - "inherited": { - "displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u00af"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Overline Limits', '\\overline{\\int\\limits^2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": false}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isEmbellished": true}, - {"kind": "mover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {"lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"accent": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "¯"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Overline Sum', '\\overline{\\sum}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": false}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {"movablelimits": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {"accent": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "¯"}], - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Overline 1', '\\overline{\\sum}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": false}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {"movablelimits": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {"accent": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "¯"}], - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Overline 2', '\\overline{\\mathop{a}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": false}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movablelimits": false, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"accent": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "¯"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Overline 3', '\\overline{\\mathop{a}}^2', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": false}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movablelimits": false, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"accent": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "¯"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Overline 4', '\\overline{\\sum^2_3}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": false}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isEmbellished": true}, - {"kind": "munderover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {"lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"accent": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "¯"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Overline 5', '\\overline{\\sum}^2_3', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": false}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {"movablelimits": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {"accent": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "¯"}], - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Overline 6', '\\overline{\\underline{\\sum}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": false}, - "properties": {"subsupOK": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isEmbellished": true}, - {"kind": "munder", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accentunder": true}, - "properties": {"subsupOK": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {"movablelimits": false, - "lspace": 0, - "rspace": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "_"}], - "isEmbellished": true}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"accent": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "¯"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Overbrace 1', '\\overbrace{abc}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movesupsub": true, - "subsupOK": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⏞"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Underbrace', '\\underbrace{abc}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movesupsub": true, - "subsupOK": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "munder", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accentunder": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "⏟"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Overbrace Op 1', '\\overbrace{\\mathop{a}}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movesupsub": true, - "subsupOK": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movablelimits": false, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⏞"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Overbrace Op 2', '\\overbrace{\\mathop{a}}^2', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movesupsub": true, - "subsupOK": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movablelimits": false, - "movesupsub": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "⏞"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Overbrace 2', '\\overbrace{\\sum}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movesupsub": true, - "subsupOK": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {"movablelimits": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⏞"}], - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Overbrace 3', '\\overbrace{\\sum}^2', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"movesupsub": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "movesupsub": true, - "subsupOK": true, - "texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mover", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {"movablelimits": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "movablelimits": true, - "symmetric": true}, - "properties": {"texClass": 1, - "movesupsub": true, - "movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∑"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "⏞"}], - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-multirel-tests.js b/tests/legacy-tests/parser-multirel-tests.js deleted file mode 100644 index 5e8ca40..0000000 --- a/tests/legacy-tests/parser-multirel-tests.js +++ /dev/null @@ -1,2024 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import {Configuration} from './node_modules/mathjax-full/js/input/tex/Configuration.js'; -import {CharacterMap} from './node_modules/mathjax-full/js/input/tex/SymbolMap.js'; -import ParseMethods from './node_modules/mathjax-full/js/input/tex/ParseMethods.js'; - - -class ParserMultirelTest extends ParserTest { - - constructor() { - // Just some things bogus attributes for testing. - new CharacterMap('shadow', ParseMethods.mathchar0mo, { - sim: ['\u223C', {something: 'nothing'}], - simeq: ['\u2243', {something: 'nothing'}], - asymp: ['\u224D', {something: 'else'}], - cong: ['\u224D', {anything: 'nothing'}], - lesssim: ['\u2272', {lspace: '1pt'}], - gtrsim: ['\u2278', {rspace: '1pt'}] - }); - Configuration.create('multirel-test', {handler: {macro: ['shadow']}, priority: 4}); - super(); - this.packages = ['base', 'ams', 'multirel-test']; - } - -} - -let parserTest = new ParserMultirelTest(); - - -parserTest.runTest( - 'Shift Left', 'a<=b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}, - {"kind": "text", - "text": "<"}, - {"kind": "text", - "text": ">"}, - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Prefix Rel Rel', '==a', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}, - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Prefix Op Op', '++a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Multirel Font 1', 'a <=\\mathrm{>} b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "<"}, - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ">"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Multirel Font 2', 'a <=\\mathrm{=>} b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "<"}, - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}, - {"kind": "text", - "text": ">"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Multirel Font 3', 'a <=\\mathrm{=}\\mathrm{>} b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "<"}, - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ">"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Multirel Mathvariant 1', 'a <\\equiv \\mathrm{=>}\\thickapprox b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "<"}, - {"kind": "text", - "text": "≡"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}, - {"kind": "text", - "text": ">"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"variantForm": true}, - "childNodes": [ - {"kind": "text", - "text": "≈"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Multirel Mathvariant 2', 'a <\\equiv \\mathrm{=>}\\thickapprox\\thicksim b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "<"}, - {"kind": "text", - "text": "≡"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}, - {"kind": "text", - "text": ">"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"variantForm": true}, - "childNodes": [ - {"kind": "text", - "text": "≈"}, - {"kind": "text", - "text": "∼"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Multirel Mathvariant 3', 'a <\\equiv =>\\thickapprox\\thicksim b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"rspace": "0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "<"}, - {"kind": "text", - "text": "≡"}, - {"kind": "text", - "text": "="}, - {"kind": "text", - "text": ">"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"lspace": "0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"variantForm": true}, - "childNodes": [ - {"kind": "text", - "text": "≈"}, - {"kind": "text", - "text": "∼"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Multirel Mathvariant 4', 'a <\\equiv \\mathrm{=}\\mathrm{>}' + - '\\thickapprox\\thicksim\\frown\\smile=\\updownarrow b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "<"}, - {"kind": "text", - "text": "≡"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ">"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"rspace": "0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"variantForm": true}, - "childNodes": [ - {"kind": "text", - "text": "≈"}, - {"kind": "text", - "text": "∼"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"lspace": "0pt", - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⌢"}, - {"kind": "text", - "text": "⌣"}, - {"kind": "text", - "text": "="}, - {"kind": "text", - "text": "↕"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Simple Shadow Rel', 'a \\sim b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {something: "nothing"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∼"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Extra Attribute Rel 1', 'a =\\sim b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"rspace":"0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"something": "nothing", - "lspace":"0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∼"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Extra Attribute Rel 2', 'a \\sim\\simeq b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"something": "nothing"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∼"}, - {"kind": "text", - "text": "≃"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Extra Attribute Rel 3', 'a \\sim\\asymp b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"something": "nothing", - "rspace":"0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∼"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"something": "else", - "lspace":"0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "≍"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Extra Attribute Rel 4', 'a \\sim\\simeq\\asymp b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"something": "nothing", - "rspace":"0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∼"}, - {"kind": "text", - "text": "≃"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"something": "else", - "lspace":"0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "≍"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Extra Attribute Rel 5', 'a \\sim\\asymp\\simeq b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"something": "nothing", - "rspace":"0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∼"} - ], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"something": "else", - "lspace":"0pt", - "rspace":"0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "≍"} - ], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"something": "nothing", - "lspace":"0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "≃"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Extra Attribute Rel 6', 'a \\sim\\cong b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"something": "nothing", - "rspace":"0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∼"} - ], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"anything": "nothing", - "lspace":"0pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "≍"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Infix Stretchy Right', 'a=\\rightarrow b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}, - {"kind": "text", - "text": "→"} - ], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Preset Lspace Rspace', 'a\\lesssim\\gtrsim b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"lspace": "1pt", - "rspace": "1pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "≲"}, - {"kind": "text", - "text": "≸"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Preset Rspace Lspace', 'a\\gtrsim\\lesssim b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"rspace": "1pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "≸"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"lspace": "1pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "≲"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-multline-shove-tests.js b/tests/legacy-tests/parser-multline-shove-tests.js deleted file mode 100644 index 7f11039..0000000 --- a/tests/legacy-tests/parser-multline-shove-tests.js +++ /dev/null @@ -1,1429 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import {TagsFactory} from './node_modules/mathjax-full/js/input/tex/Tags.js'; - -class ParserMultlineShoveTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserMultlineShoveTest(); - - -parserTest.runTest( - 'Shove None', '\\begin{multline} a\\\\ b\\\\ c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Shove Left Top', '\\begin{multline}\\shoveleft a\\\\ b\\\\ c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Shove Left Middle', '\\begin{multline} a\\\\\\shoveleft b\\\\ c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Shove Left Bottom', '\\begin{multline} a\\\\ b\\\\\\shoveleft c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Shove Right Top', '\\begin{multline}\\shoveright a\\\\ b\\\\ c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Shove Right Middle', '\\begin{multline} a\\\\\\shoveright b\\\\ c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Shove Right Bottom', '\\begin{multline} a\\\\ b\\\\\\shoveright c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Shove Right Left', '\\begin{multline} a\\\\\\shoveright\\shoveleft b\\\\ c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Shove Left Right', '\\begin{multline} a\\\\\\shoveleft\\shoveright b\\\\ c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Shove Error Top', '\\begin{multline}a \\shoveleft\\\\ b\\\\ c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\shoveleft must come at the beginning of the line" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\shoveleft must come at the beginning of the line"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Shove Error Middle', '\\begin{multline} a\\\\ b \\shoveleft\\\\ c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\shoveleft must come at the beginning of the line" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\shoveleft must come at the beginning of the line"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Shove Error Bottom', '\\begin{multline} a\\\\ b\\\\ c \\shoveleft\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\shoveleft must come at the beginning of the line" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\shoveleft must come at the beginning of the line"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Shove Error Environment', '\\begin{align}\\shoveleft a\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\shoveleft only allowed in multline environment" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\shoveleft only allowed in multline environment"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-ncerror-tests.js b/tests/legacy-tests/parser-ncerror-tests.js deleted file mode 100644 index a3e6e08..0000000 --- a/tests/legacy-tests/parser-ncerror-tests.js +++ /dev/null @@ -1,687 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/newcommand/NewcommandConfiguration.js'; - -class ParserNewcommandErrorTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'newcommand']; - } - -} - -let parserTest = new ParserNewcommandErrorTest(); - -parserTest.runTest( - 'No Sequence', '\\def\\bar[#1]#3{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Parameters for \\bar must be numbered sequentially" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Parameters for \\bar must be numbered sequentially"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'No CS', '\\def{\\bar}[#1]#2{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\def must be followed by a control sequence" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\def must be followed by a control sequence"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Illegal Hash', '\\def\\bar[##1]#2{#1}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Illegal use of # in template for \\bar" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Illegal use of # in template for \\bar"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'No Replacement', '\\def\\bar[#1]#2', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing replacement string for definition of \\def" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing replacement string for definition of \\def"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Runaway Argument', '\\def\\bar[#1]#2{}\\bar[', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Runaway argument for \\bar?" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Runaway argument for \\bar?"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Illegal CS', '\\newcommand{\\11}{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Illegal control sequence name for \\newcommand" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Illegal control sequence name for \\newcommand"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Illegal Parameter Number', '\\newenvironment{hh}[a]{}{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Illegal number of parameters specified in \\newenvironment" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Illegal number of parameters specified in \\newenvironment"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Let Undefined CS', '\\let\\aa\\bb \\aa', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Undefined control sequence \\aa" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Undefined control sequence \\aa"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Missing Arguments', '\\def\\bar[#1]#2#3{c + c}\\bar', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Use of \\bar doesn't match its definition" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Use of \\bar doesn't match its definition"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Single Let Error', '\\let\\aa\\textbf\\let\\bb\\aa\\aa', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing argument for \\aa" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing argument for \\aa"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Double Let Error', '\\let\\aa\\textbf\\let\\bb\\aa\\bb', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing argument for \\bb" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing argument for \\bb"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Triple Let Error', '\\let\\aa\\textbf\\let\\bb\\aa\\let\\textbf\\sqrt\\textbf[1]', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing argument for \\textbf" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing argument for \\textbf"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Illegal Argument Number', '\\newcommand{\\foo}[a]{#1 + #2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Illegal number of parameters specified in \\newcommand" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Illegal number of parameters specified in \\newcommand"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Optional Brace Error', '\\def\\bar[{#1}]#2{#1 + #2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"You can't use 'macro parameter character #' in math mode" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "You can't use 'macro parameter character #' in math mode"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-newcommand-tests.js b/tests/legacy-tests/parser-newcommand-tests.js deleted file mode 100644 index 80f79a2..0000000 --- a/tests/legacy-tests/parser-newcommand-tests.js +++ /dev/null @@ -1,4295 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/newcommand/NewcommandConfiguration.js'; -import './node_modules/mathjax-full/js/input/tex/colorv2/ColorV2Configuration.js'; - -class ParserNewcommandTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'ams', 'newcommand', 'colorv2']; - } - -} - -let parserTest = new ParserNewcommandTest(); - -parserTest.runTest( - 'Newcommand Simple', '\\newcommand{\\sum}{2 + 3}\\sum', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newcommand Arg', '\\renewcommand{\\sum}[1]{2 #1 3}\\sum{*}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∗"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newcommand Optional', '\\renewcommand{\\sum}[1][+]{2 #1 3}\\sum\\sum[*]', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∗"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newcommand Arg Optional', '\\renewcommand{\\sum}[2][+]{2 #1 3 #2 4}\\sum{+}\\sum[*]{+}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∗"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newenvironment Empty', '\\newenvironment{myHeartEnv}{\\color{purple}{\\heartsuit}\\kern-2.5pt\\color{green}{\\heartsuit}}{\\text{ forever}}\\begin{myHeartEnv}\\end{myHeartEnv}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "purple"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "purple", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "purple", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant":"italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2.5pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "green"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "green", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "green", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant":"italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " forever"}], - "isSpacelike": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newenvironment Content', '\\newenvironment{myHeartEnv}{\\color{purple}{\\heartsuit}\\kern-2.5pt\\color{green}{\\heartsuit}}{\\text{ forever}}\\begin{myHeartEnv} 2+3\\end{myHeartEnv}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "purple"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "purple", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "purple", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant":"italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2.5pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "green"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "green", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "green", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant":"italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " forever"}], - "isSpacelike": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newenvironment Align', '\\newenvironment{proof}{\\textbf{Proof:}}{\\begin{align} \\blacksquare \\end{align}}\\begin{proof}a=b\\end{proof}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Proof:"}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"displaystyle": true, - "columnalign": "right left right left right left right left right left right left", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "rowspacing": "3pt"}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "◼"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newenvironment Align End', '\\newenvironment{proof}{\\begin{align}\\textbf{Proof:}}{\\end{align}}\\begin{proof}a=b\\end{proof}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"displaystyle": true, - "columnalign": "right left right left right left right left right left right left", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "rowspacing": "3pt"}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Proof:"}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newenvironment Align Split', '\\newenvironment{proof}{\\begin{align}\\textbf{Proof:}&}{ \\begin{split} 5 \\end{split}&& \\blacksquare\\end{align}}\\begin{proof}a&=b\\end{proof}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"displaystyle": true, - "columnalign": "right left right left right left right left right left right left", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "rowspacing": "3pt"}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Proof:"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"displaystyle": true, - "columnalign": "right left", - "columnspacing": "0em", - "rowspacing": "3pt"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "◼"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newenvironment Optional', '\\newenvironment{argument}[1][a]{\\textbf{Argument #1:}}{aa}\\begin{argument}[c]b\\end{argument}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Argument c:"}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newenvironment Arg Optional', '\\renewenvironment{argument}[2][a]{\\textbf{Argument #1(#2):}}{aa}\\begin{argument}[c]{3}b\\end{argument}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Argument c(3):"}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Def Double Let', '\\def\\bar{h}\\let\\fooi\\bar\\def\\fooii{\\bar}\\fooi +\\fooii\\def\\bar{g}\\fooi +\\fooii', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant":"italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "h"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant":"italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "h"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant":"italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "h"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant":"italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Def ReDef', '\\def\\foo{a + b}\\foo\\def\\foo#1{a #1 b}\\foo{-}\\def\\foo#1#2{#2 #1 b}\\foo{-}{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Bar', '\\let\\b\\lvert\\let\\lvert\\langle\\vert\\b\\lvert', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Brace Equal', '\\let\\be={ \\be a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Brace', '\\let\\be{ \\be a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Caret', '\\let\\car^ a\\car b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Brace Delim', '\\let\\lb=\\{ \\lb \\frac{1}{2} \\}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Paren Delim', '\\let\\lb( \\lb \\frac{1}{2})', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Relet', '\\let\\al\\alpha\\al\\alpha\\let\\al\\aleph\\al\\alpha', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ℵ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Let', '\\let\\al\\alpha\\al\\alpha\\let\\alpha\\beta\\al\\alpha', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "β"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Def Let', '\\def\\bar[#1]#2{#1 + #2}\\bar[a]{b}\\let\\foo\\bar\\foo[c]{d}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newcommand Let', '\\newcommand{\\bar}[2][1]{#1 + #2}\\bar[a]{b}\\let\\foo\\bar\\foo[c]{d}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Circular Macro', '\\let\\kk\\alpha\\kk\\let\\rr\\beta\\rr\\let\\rr\\kk\\let\\kk\\beta\\kk\\rr', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant":"italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant":"italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "β"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant":"italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "β"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant":"italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}], - "isInferred": true}]} -); - - -// The following did not work in MJ2. -parserTest.runTest( - 'Let Bar Stretchy', '\\let\\b\\lvert\\let\\lvert\\langle\\left\\b q \\right\\lvert', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟨", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "q"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Brace Equal Stretchy', '\\let\\lb=\\{\\left\\lb \\frac{1}{2} \\right\\}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Paren Stretchy', '\\let\\lb( \\left\\lb \\frac{1}{2} \\right)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Fn', '\\let\\ll\\sin\\ll(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Fn Double', '\\let\\ll\\sin\\ll(x)\\let\\rr\\ll\\let\\ll\\cos\\rr(x)\\ll(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Fn Circular', '\\let\\save\\sin\\let\\sin\\cos\\let\\cos\\tan\\let\\tan\\save\\sin(x)\\cos(x)\\tan(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "tan"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Let Paren Circular', '\\let\\lp(\\let\\rp)\\let\\mp\\rp\\left\\lp \\frac{a}{b}\\middle\\mp c \\right\\rp', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Angle Circular', '\\let\\lp\\langle\\let\\rp\\rangle\\let\\mp\\rp\\left\\lp \\frac{a}{b}\\middle\\mp c \\right\\rp', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Let Circular Character', '\\let\\a a\\let\\b b\\a \\b\\let\\c\\a\\let\\a c\\c \\a\\let\\d=\\c\\let\\c\\b\\d \\c', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Let Overwrite Sqrt Choose', '\\let\\sqrt\\choose a\\sqrt b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 0}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {"linethickness": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"withDelims": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Def Optional Brace', '\\def\\bar[#1]#2{#1 + #2}\\bar[{a}]{b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Def Options CS', '\\def\\bar[#1]#2{#1 + #2}\\bar[\\sqrt{2}]{b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msqrt", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Newenvironment Nested Double', '\\newenvironment{myHeartEnv}{\\color{purple}{\\heartsuit}\\kern-2.5pt\\color{green}{\\heartsuit}}{\\text{ forever}}\\newenvironment{yourHeartEnv}{\\color{blue}{\\heartsuit}\\kern-2.5pt\\color{black}{\\heartsuit}}{\\text{ never}}\\begin{myHeartEnv}\\begin{yourHeartEnv}a\\end{yourHeartEnv}\\end{myHeartEnv}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "purple"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "purple", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "purple", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2.5pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "green"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "green", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "green", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "blue"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2.5pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "black"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " never"}], - "isSpacelike": true}], - "isInferred": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " forever"}], - "isSpacelike": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newenvironment Nested Double 2', '\\newenvironment{myHeartEnv}{\\color{purple}{\\heartsuit}\\kern-2.5pt\\color{green}{\\heartsuit}}{\\text{ forever}}\\newenvironment{yourHeartEnv}{\\color{blue}{\\heartsuit}\\kern-2.5pt\\color{black}{\\heartsuit}}{\\text{ never}}\\newenvironment{theirHeartEnv}{\\color{blue}{\\heartsuit}\\kern-2.5pt\\color{black}{\\heartsuit}}{\\text{ never}}\\begin{myHeartEnv}\\begin{yourHeartEnv}a\\end{yourHeartEnv}\\begin{theirHeartEnv}b\\end{theirHeartEnv}\\end{myHeartEnv}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "purple"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "purple", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "purple", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2.5pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "green"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "green", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "green", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "blue"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2.5pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "black"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " never"}], - "isSpacelike": true}], - "isInferred": true}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "blue"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2.5pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "black"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " never"}], - "isSpacelike": true}], - "isInferred": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " forever"}], - "isSpacelike": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newenvironment Nested Triple', '\\newenvironment{myHeartEnv}{\\color{purple}{\\heartsuit}\\kern-2.5pt\\color{green}{\\heartsuit}}{\\text{ forever}}\\newenvironment{yourHeartEnv}{\\color{blue}{\\heartsuit}\\kern-2.5pt\\color{black}{\\heartsuit}}{\\text{ never}}\\newenvironment{theirHeartEnv}{\\color{blue}{\\heartsuit}\\kern-2.5pt\\color{black}{\\heartsuit}}{\\text{ never}}\\begin{myHeartEnv}\\begin{yourHeartEnv}a\\begin{theirHeartEnv}b\\end{theirHeartEnv}\\end{yourHeartEnv}\\end{myHeartEnv}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "purple"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "purple", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "purple", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2.5pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "green"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "green", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "green", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "blue"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2.5pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "black"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "blue"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2.5pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "black"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " never"}], - "isSpacelike": true}], - "isInferred": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " never"}], - "isSpacelike": true}], - "isInferred": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " forever"}], - "isSpacelike": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newenvironment Nested Triple Text', '\\newenvironment{myHeartEnv}{\\color{purple}{\\heartsuit}\\kern-2.5pt\\color{green}{\\heartsuit}}{\\text{ forever}}\\newenvironment{yourHeartEnv}{\\color{blue}{\\heartsuit}\\kern-2.5pt\\color{black}{\\heartsuit}}{\\text{ never}}\\newenvironment{theirHeartEnv}{\\color{blue}{\\heartsuit}\\kern-2.5pt\\color{black}{\\heartsuit}}{\\text{ never}}\\begin{myHeartEnv}\\begin{yourHeartEnv}a\\begin{theirHeartEnv}b\\end{theirHeartEnv}c\\end{yourHeartEnv}d\\end{myHeartEnv}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "purple"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "purple", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "purple", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2.5pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "green"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "green", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "green", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "blue"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2.5pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "black"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "blue"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "blue", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "-2.5pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"mathcolor": "black"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"mathcolor": "black", - "displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "♡"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " never"}], - "isSpacelike": true}], - "isInferred": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " never"}], - "isSpacelike": true}], - "isInferred": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": " forever"}], - "isSpacelike": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Newenvironment Nested Error', '\\newenvironment{myHeartEnv}{\\color{purple}{\\heartsuit}\\kern-2.5pt\\color{green}{\\heartsuit}}{\\text{ forever}}\\newenvironment{yourHeartEnv}{\\color{blue}{\\heartsuit}\\kern-2.5pt\\color{black}{\\heartsuit}}{\\text{ never}}\\newenvironment{theirHeartEnv}{\\color{blue}{\\heartsuit}\\kern-2.5pt\\color{black}{\\heartsuit}}{\\text{ never}}\\begin{myHeartEnv}\\begin{yourHeartEnv}a\\begin{theirHeartEnv}b\\end{yourHeartEnv}\\end{theirHeartEnv}\\end{myHeartEnv}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\begin{theirHeartEnv} ended with \\end{yourHeartEnv}" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\begin{theirHeartEnv} ended with \\end{yourHeartEnv}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-noerror-tests.js b/tests/legacy-tests/parser-noerror-tests.js deleted file mode 100644 index ed727d3..0000000 --- a/tests/legacy-tests/parser-noerror-tests.js +++ /dev/null @@ -1,2623 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/noerrors/NoErrorsConfiguration.js'; - - -class ParserNoErrorTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'noerrors']; - } - -} - -let parserTest = new ParserNoErrorTest(); - -// Errors - -// Error in checkItem. -parserTest.runTest( - 'Ampersand-error', '&', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Misplaced &", - "title":"Misplaced &"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "&"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// Error in GetArgument -parserTest.runTest( - 'Argument-error', '\\frac{b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing argument for \\frac", - "title":"Missing argument for \\frac"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\frac{b}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// Control sequence error: csUndefined -parserTest.runTest( - 'Undefined-CS', '\\nonsense', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Undefined control sequence \\nonsense", - "title":"Undefined control sequence \\nonsense"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\nonsense"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// Environment sequence error: envUndefined -parserTest.runTest( - 'Undefined-Env', '\\begin{nonsense} a \\end{nonsense}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Unknown environment 'nonsense'", - "title":"Unknown environment 'nonsense'"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\begin{nonsense} a \\end{nonsense}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Double-super-error', 'x^2^3', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Double exponent: use braces to clarify", - "title":"Double exponent: use braces to clarify"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x^2^3"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Double-over-error', '\\sum^2^3', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Double exponent: use braces to clarify", - "title":"Double exponent: use braces to clarify"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\sum^2^3"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Limits Error', '+\\limits^2', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "\\limits is allowed only on operators", - "title":"\\limits is allowed only on operators"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+\\limits^2"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Double sub error', 'x_2_3', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Double subscripts: use braces to clarify", - "title":"Double subscripts: use braces to clarify"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x_2_3"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Double under error', '\\sum_2_3', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Double subscripts: use braces to clarify", - "title":"Double subscripts: use braces to clarify"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\sum_2_3"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Brace Superscript Error', 'x\'^\'', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing open brace for superscript", - "title":"Missing open brace for superscript"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x'^'"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Double Prime Error', 'x^\\prime\'', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Prime causes double exponent: use braces to clarify", - "title":"Prime causes double exponent: use braces to clarify"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x^\\prime'"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Hash Error', '#', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "You can't use 'macro parameter character #' in math mode", - "title":"You can't use 'macro parameter character #' in math mode"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "#"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Missing Right', '\\left(\\middle|', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Extra \\left or missing \\right", - "title":"Extra \\left or missing \\right"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\left(\\middle|"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Orphan Middle', '\\middle|', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "\\middle must be within \\left and \\right", - "title":"\\middle must be within \\left and \\right"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\middle|"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Middle with Right', '\\middle|\\right)', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "\\middle must be within \\left and \\right", - "title":"\\middle must be within \\left and \\right"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\middle|\\right)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Misplaced Move Root', '\\uproot{2}\\sqrt[3]{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "\\uproot can appear only within a root", - "title":"\\uproot can appear only within a root"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\uproot{2}\\sqrt[3]{a}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Multiple Move Root', '\\sqrt[\\uproot{-2}\\uproot{2}\\beta]{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Multiple use of \\uproot", - "title":"Multiple use of \\uproot"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\sqrt[\\uproot{-2}\\uproot{2}\\beta]{k}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Incorrect Move Root', '\\sqrt[\\uproot-2.5\\beta]{k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "The argument to \\uproot must be an integer", - "title":"The argument to \\uproot must be an integer"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\sqrt[\\uproot-2.5\\beta]{k}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Double Over', '1 \\over 2 \\over 3', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Ambiguous use of \\over", - "title":"Ambiguous use of \\over"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1 \\over 2 \\over 3"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Token Illegal Type', '\\mmlToken{mk}[]{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "mk is not a token element", - "title":"mk is not a token element"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\mmlToken{mk}[]{}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Token Wrong Type', '\\mmlToken{mrow}[]{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "mrow is not a token element", - "title":"mrow is not a token element"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\mmlToken{mrow}[]{}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Token Invalid Attribute', '\\mmlToken{mi}[m1=true]{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Invalid MathML attribute: m1=true", - "title":"Invalid MathML attribute: m1=true"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\mmlToken{mi}[m1=true]{}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Token Unknown Attribute', '\\mmlToken{mo}[nothing="something"]{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "nothing is not a recognized attribute for mo", - "title":"nothing is not a recognized attribute for mo"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\mmlToken{mo}[nothing=\"something\"]{}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Token Wrong Attribute', '\\mmlToken{mi}[movablelimit=true]{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "movablelimit is not a recognized attribute for mi", - "title":"movablelimit is not a recognized attribute for mi"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\mmlToken{mi}[movablelimit=true]{}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingBeginExtraEnd', '\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing \\begin{array} or extra \\end{array}", - "title":"Missing \\begin{array} or extra \\end{array}"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\end{array}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'ExtraCloseMissingOpen', 'x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Extra close brace or missing open brace", - "title":"Extra close brace or missing open brace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingLeftExtraRight', 'x\\right\\}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing \\left or extra \\right", - "title":"Missing \\left or extra \\right"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x\\right\\}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'ExtraOpenMissingClose', '{x', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Extra open brace or missing close brace", - "title":"Extra open brace or missing close brace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "{x"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingScript Sub', 'x_', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing superscript or subscript argument", - "title":"Missing superscript or subscript argument"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x_"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingScript Sup', 'x^', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing superscript or subscript argument", - "title":"Missing superscript or subscript argument"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x^"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingOpenForSup', 'x^^', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing open brace for superscript", - "title":"Missing open brace for superscript"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x^^"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingOpenForSub', 'x__', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing open brace for subscript", - "title":"Missing open brace for subscript"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x__"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'ExtraLeftMissingRight', '\\left\\{x', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Extra \\left or missing \\right", - "title":"Extra \\left or missing \\right"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\left\\{x"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Misplaced Cr', 'a\\cr b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Misplaced \\cr", - "title":"Misplaced \\cr"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a\\cr b"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Dimension Error', 'a\\\\[abc] b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Bracket argument to \\\\ must be a dimension", - "title":"Bracket argument to \\\\ must be a dimension"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a\\\\[abc] b"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// In TexParser -parserTest.runTest( - 'MissingArgFor', '\\sqrt', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing argument for \\sqrt", - "title":"Missing argument for \\sqrt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\sqrt"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'ExtraCloseMissingOpen 2', '\\sqrt}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Extra close brace or missing open brace", - "title":"Extra close brace or missing open brace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\sqrt}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingCloseBrace', '\\sqrt{', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing close brace", - "title":"Missing close brace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\sqrt{"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'ExtraCloseLooking1', '\\sqrt[3}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Extra close brace while looking for ']'", - "title":"Extra close brace while looking for ']'"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\sqrt[3}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingCloseBracket', '\\sqrt[3{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Could not find closing ']' for argument to \\sqrt", - "title":"Could not find closing ']' for argument to \\sqrt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\sqrt[3{x}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingOrUnrecognizedDelim1', '\\left\\alpha b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing or unrecognized delimiter for \\left", - "title":"Missing or unrecognized delimiter for \\left"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\left\\alpha b"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingOrUnrecognizedDelim2', '\\left( b\\right', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing or unrecognized delimiter for \\right", - "title":"Missing or unrecognized delimiter for \\right"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\left( b\\right"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingDimOrUnits', '\\rule{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing dimension or its units for \\rule", - "title":"Missing dimension or its units for \\rule"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\rule{}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'TokenNotFoundForCommand', '\\root {3] \\of 5', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Could not find \\of for \\root", - "title":"Could not find \\of for \\root"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\root {3] \\of 5"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'ExtraCloseLooking2', '\\root [3} \\of 5 ', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Extra close brace while looking for \\of", - "title":"Extra close brace while looking for \\of"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\root [3} \\of 5 "}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingOrUnrecognizedDelim', '\\genfrac{(}{a}{}{2}{1}{2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Undefined control sequence \\genfrac", - "title":"Undefined control sequence \\genfrac"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\genfrac{(}{a}{}{2}{1}{2}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// In ParseUtil -parserTest.runTest( - 'ErroneousNestingEq', '\\begin{equation}\\begin{eqnarray}\\end{eqnarray}\\end{equation}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Erroneous nesting of equation structures", - "title":"Erroneous nesting of equation structures"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\begin{equation}\\begin{eqnarray}\\end{eqnarray}\\end{equation}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// In BaseMethods - -parserTest.runTest( - 'ExtraAlignTab', '\\cases{b & l & k}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Extra alignment tab in \\cases text", - "title":"Extra alignment tab in \\cases text"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\cases{b & l & k}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Misplaced hline', '\\hline', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Misplaced \\hline", - "title":"Misplaced \\hline"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\hline"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'UnsupportedHFill', 'a\\hfill b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Unsupported use of \\hfill", - "title":"Unsupported use of \\hfill"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a\\hfill b"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'InvalidEnv', '\\begin{\\ff}kk\\end{\\ff}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Invalid environment name '\\ff'", - "title":"Invalid environment name '\\ff'"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\begin{\\ff}kk\\end{\\ff}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -// In BaseItems - -parserTest.runTest( - 'EnvBadEnd', '\\begin{equation}a\\end{array}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "\\begin{equation} ended with \\end{array}", - "title":"\\begin{equation} ended with \\end{array}"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\begin{equation}a\\end{array}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'EnvMissingEnd Array', '\\begin{array}a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing \\end{array}", - "title":"Missing \\end{array}"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\begin{array}a"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingBoxFor', '\\raise{2pt}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing box for \\raise", - "title":"Missing box for \\raise"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\raise{2pt}"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MissingCloseBrace2', '\\begin{array}{c', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing close brace", - "title":"Missing close brace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\begin{array}{c"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'EnvMissingEnd Equation', '\\begin{equation}a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": {"data-mjx-error": "Missing \\end{equation}", - "title":"Missing \\end{equation}"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\begin{equation}a"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-noundefined-tests.js b/tests/legacy-tests/parser-noundefined-tests.js deleted file mode 100644 index ecc1f2b..0000000 --- a/tests/legacy-tests/parser-noundefined-tests.js +++ /dev/null @@ -1,96 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/noundefined/NoUndefinedConfiguration.js'; - -class ParserNoundefinedTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'noundefined']; - } - -} - -let parserTest = new ParserNoundefinedTest(); - -parserTest.runTest( - 'Noundefined Single', '\\a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {"mathcolor": "red"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\a"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - -parserTest.runTest( - 'Noundefined Context', 'a\\b c', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {"mathcolor": "red"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\b"}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-other-tests.js b/tests/legacy-tests/parser-other-tests.js deleted file mode 100644 index c137812..0000000 --- a/tests/legacy-tests/parser-other-tests.js +++ /dev/null @@ -1,711 +0,0 @@ -// Tests related to the Other ParseMethod. - -import {ParserTest} from './parser-test.js'; - - -class ParserOtherTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserOtherTest(); - - -parserTest.runTest( - 'Other', '+', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Other Remap', '-', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u2212"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Other Font', '\\mathbf{+}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": { - "displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -// Tests for parseing method Other with mo elements. - -parserTest.runTest( - 'Other Delimiter', '(', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Other Dollar', '$', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "$"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Other Unicode', '˦', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\u02e6"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Other Surrogate', '𝐀', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "𝐀"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Other Arrow Range', '⤡', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⤡"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Other Arrow Infix', 'a⤡b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⤡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Other Arrow Prefix', '⤡b', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⤡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Other Arrow Postfix', 'b⤡', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⤡"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vertical Bar Alone', '|', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Vertical Bar Infix', 'a|b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vertical Bar Postfix', 'a|', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vertical Bar Prefix', '|b', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-1-0-tests.js b/tests/legacy-tests/parser-physics-1-0-tests.js deleted file mode 100644 index b3b4f14..0000000 --- a/tests/legacy-tests/parser-physics-1-0-tests.js +++ /dev/null @@ -1,803 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest1_0 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest1_0(); - - -parserTest.runTest( - 'Quantities_Quantities_0', '\\quantity', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Quantities_1', '\\quantity a', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Quantities_2', '\\quantity\\bigg a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing or unrecognized delimiter for \\bigg" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing or unrecognized delimiter for \\bigg"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Quantities_3', '\\quantity[c]', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Quantities_4', '\\quantity\\sin', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Quantities_5', '\\qty\\Bigg ab', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing or unrecognized delimiter for \\Bigg" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing or unrecognized delimiter for \\Bigg"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Quantities_6', '\\quantity\\bigg\\sin', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing or unrecognized delimiter for \\bigg" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing or unrecognized delimiter for \\bigg"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Quantities_7', '\\qty(a)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Quantities_8', '\\qty(\\frac{a}{\\frac{c}{b}})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Quantities_9', '\\qty[\\frac{a}{\\frac{c}{b}}]', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Quantities_10', '\\qty\\Bigg{a}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-1-1-tests.js b/tests/legacy-tests/parser-physics-1-1-tests.js deleted file mode 100644 index c70f4ff..0000000 --- a/tests/legacy-tests/parser-physics-1-1-tests.js +++ /dev/null @@ -1,1239 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest1_1 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest1_1(); - - -parserTest.runTest( - 'Quantities_Empty_0', '\\qty\\big{}[]', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Empty_1', '\\qty\\Bigg{}[]', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Empty_2', '\\qty\\Bigg{}\\Bigg[]', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Empty_3', '\\qty\\Bigg{}\\qty\\Bigg[]', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Empty_4', '\\Bigg[]', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Empty_5', '\\Bigg[ \\times \\Bigg]', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "×"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Empty_6', '\\Biggl[ \\times \\Biggr]', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "×"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Empty_7', '\\qty\\Bigg[\\times]', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "×"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Empty_8', '\\qty\\Bigg{\\times}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "×"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Empty_9', '\\qty(\\frac{a}{b})\\langle\\rangle', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Empty_10', '\\qty<\\frac{a}{b}>\\langle\\rangle', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "<"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ">"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-1-2-tests.js b/tests/legacy-tests/parser-physics-1-2-tests.js deleted file mode 100644 index 372c6ad..0000000 --- a/tests/legacy-tests/parser-physics-1-2-tests.js +++ /dev/null @@ -1,1178 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest1_2 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest1_2(); - - -parserTest.runTest( - 'Quantities_Big_0', '\\quantity\\big(\\frac{a}{b})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Big_1', '\\quantity\\bigg(\\frac{a}{b})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.047em", - "maxsize": "2.047em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Big_2', '\\quantity\\Big(\\frac{a}{b})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.623em", - "maxsize": "1.623em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.623em", - "maxsize": "1.623em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Big_3', '\\quantity\\Bigg(\\frac{a}{b})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Big_4', '\\pqty\\Bigg{} ', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Big_5', '\\pqty{\\frac{a}{b}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Big_6', '\\pqty\\Bigg{\\frac{a}{b}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Big_7', '\\pqty\\big{\\frac{a}{b}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "1.2em", - "maxsize": "1.2em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Big_8', '\\Bqty{\\frac{a}{b}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing or unrecognized delimiter for \\left" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing or unrecognized delimiter for \\left"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Big_9', '\\Bqty\\Bigg{\\frac{a}{b}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing or unrecognized delimiter for \\Biggl" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing or unrecognized delimiter for \\Biggl"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Big_10', '\\Bqty\\big{\\frac{a}{b}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Missing or unrecognized delimiter for \\bigl" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Missing or unrecognized delimiter for \\bigl"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Big_11', '\\quantity*\\Bigg(\\frac{a}{b})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∗"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-1-3-tests.js b/tests/legacy-tests/parser-physics-1-3-tests.js deleted file mode 100644 index c8d6154..0000000 --- a/tests/legacy-tests/parser-physics-1-3-tests.js +++ /dev/null @@ -1,614 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest1_3 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest1_3(); - - -parserTest.runTest( - 'Quantities_Absval_0', '\\absolutevalue\\Bigg{\\frac{a}{b}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Absval_1', '\\absolutevalue{}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Absval_2', '\\abs\\Bigg{\\frac{a}{b}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Absval_3', '\\abs*\\Bigg{\\frac{a}{b}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Absval_4', '\\norm\\Bigg{\\frac{a}{b}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em", - "fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em", - "fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Absval_5', '\\norm*\\Bigg{\\frac{a}{b}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Absval_6', '\\norm{}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "∥", - "close": "∥", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "∥"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-1-4-tests.js b/tests/legacy-tests/parser-physics-1-4-tests.js deleted file mode 100644 index 1dd7377..0000000 --- a/tests/legacy-tests/parser-physics-1-4-tests.js +++ /dev/null @@ -1,2222 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest1_4 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest1_4(); - - -parserTest.runTest( - 'Quantities_Eval_0', '\\evaluated{x}_0^\\infty', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 1, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Eval_1', '\\eval{x}_0^\\infty', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 1, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Eval_2', '\\eval*{x}_0^\\infty', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 1, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Eval_3', '\\eval[x|_0^\\infty', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 1, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Eval_4', '\\eval*(x|_0^\\infty', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 0, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 1, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Eval_5', '\\eval*{\\frac{A}{\\frac{A}{\\int x}}}_0^\\infty', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 1, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Eval_6', '\\eval{\\frac{A}{\\frac{A}{\\int x}}}_0^\\infty', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 1, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Eval_7', '\\eval*(\\frac{A}{\\frac{A}{\\int x}}|_0^\\infty', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 1, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Eval_8', '\\eval(\\frac{A}{\\frac{A}{\\int x}}|_0^\\infty', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 1, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Eval_9', '\\eval*[\\frac{A}{\\frac{A}{\\int x}}|_0^\\infty', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": null, - "attributes": {"height": 0, - "depth": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 1, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Eval_10', '\\eval[\\frac{A}{\\frac{A}{\\int x}}|_0^\\infty', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msubsup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mpadded", - "texClass": 1, - "attributes": {"width": 0}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mphantom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∞"}]}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-1-5-tests.js b/tests/legacy-tests/parser-physics-1-5-tests.js deleted file mode 100644 index 9a87bdf..0000000 --- a/tests/legacy-tests/parser-physics-1-5-tests.js +++ /dev/null @@ -1,610 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest1_5 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest1_5(); - - -parserTest.runTest( - 'Quantities_Order_0', '\\order{}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Order_1', '\\order{x^2}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Order_2', '\\order\\Bigg{x^2}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Order_3', '\\order{\\frac{A}{\\frac{A}{\\int x}}}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Order_4', '\\order*{\\frac{A}{\\frac{A}{\\int x}}}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "O"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-1-6-tests.js b/tests/legacy-tests/parser-physics-1-6-tests.js deleted file mode 100644 index de8f136..0000000 --- a/tests/legacy-tests/parser-physics-1-6-tests.js +++ /dev/null @@ -1,691 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest1_6 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest1_6(); - - -parserTest.runTest( - 'Quantities_Comm_0', '\\comm{A}{B}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Comm_1', '\\comm{\\frac{A}{\\frac{A}{\\int x}}}{B}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Comm_2', '\\comm\\Bigg{A}{B}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Comm_3', '\\comm*{\\frac{A}{\\frac{A}{\\int x}}}{B}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Comm_4', '\\comm*\\Bigg{\\frac{X}{Y}}{B}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "X"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Y"}]}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Comm_5', '\\comm{A}B', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-1-7-tests.js b/tests/legacy-tests/parser-physics-1-7-tests.js deleted file mode 100644 index 2dbe5dd..0000000 --- a/tests/legacy-tests/parser-physics-1-7-tests.js +++ /dev/null @@ -1,865 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest1_7 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest1_7(); - - -parserTest.runTest( - 'Quantities_Acomm_0', '\\acomm{A}{B}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Acomm_1', '\\anticommutator{A}{B}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Acomm_2', '\\poissonbracket{A}{B}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Acomm_3', '\\pb{A}{B}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Acomm_4', '\\acomm{\\frac{A}{\\frac{A}{\\int x}}}{B}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Acomm_5', '\\acomm\\Bigg{A}{B}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 5, - "attributes": {"minsize": "2.470em", - "maxsize": "2.470em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Acomm_6', '\\acomm*{\\frac{A}{\\frac{A}{\\int x}}}{B}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "form": "prefix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Quantities_Acomm_7', '\\acomm{A}B', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-2-0-tests.js b/tests/legacy-tests/parser-physics-2-0-tests.js deleted file mode 100644 index 9c576f8..0000000 --- a/tests/legacy-tests/parser-physics-2-0-tests.js +++ /dev/null @@ -1,446 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest2_0 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest2_0(); - - -parserTest.runTest( - 'Vector_Bold_0', '\\vectorbold{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Bold_1', '\\vectorbold*{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Bold_2', '\\vb{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Bold_3', '\\vb{\\Gamma}\\Gamma', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Γ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Γ"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Bold_4', '\\vb{2}2', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Bold_5', '\\vb{\\theta}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Bold_6', '\\vb{\\theta\\Gamma a\\delta \\frac{\\theta}{b}}\\frac{\\theta}{b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Γ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Bold_7', '\\vb*{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Bold_8', '\\vb*{2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Bold_9', '\\vb*{\\Gamma}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Γ"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Bold_10', '\\vb*{\\theta}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-2-1-tests.js b/tests/legacy-tests/parser-physics-2-1-tests.js deleted file mode 100644 index d99b742..0000000 --- a/tests/legacy-tests/parser-physics-2-1-tests.js +++ /dev/null @@ -1,744 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest2_1 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest2_1(); - - -parserTest.runTest( - 'Vector_Special_0', '\\vb{\\mbox{ab}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ab"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - - -parserTest.runTest( - 'Vector_Special_1', '\\vb{B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Special_2', '\\vb{\\mathcal{B}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Special_3', '\\mathcal{\\vb{B}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Special_4', '\\mathit{\\vb{B}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Special_5', '\\vb{\\mathit{B}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "-tex-mathit"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Special_6', '\\vb{\\mathit{a}b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "-tex-mathit"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Special_7', '\\vb{a+\\theta}{\\bf +}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "+"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Special_8', '\\vb{\\hat{a}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"mathvariant": "bold", - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Special_9', '\\vb{[}[', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Special_10', '\\vb{\\hat{}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"mathvariant": "bold", - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Special_11', '\\vb{=}', - {"kind": "math", - "texClass": 3, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Vector_Special_12', '\\vb{\\hat{=}}\\hat{=}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"mathvariant": "bold", - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-2-2-tests.js b/tests/legacy-tests/parser-physics-2-2-tests.js deleted file mode 100644 index 7ea718a..0000000 --- a/tests/legacy-tests/parser-physics-2-2-tests.js +++ /dev/null @@ -1,1034 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest2_2 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest2_2(); - - -parserTest.runTest( - 'Vector_Arrow_0', '\\va{=}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Vector_Arrow_1', '\\vectorarrow{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Arrow_2', '\\va{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Arrow_3', '\\va{\\Gamma}\\Gamma', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Γ"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Γ"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Arrow_4', '\\va{2}2', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Arrow_5', '\\va{\\theta}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Arrow_6', '\\va{\\theta\\Gamma a\\delta \\frac{\\theta}{b}}\\frac{\\theta}{b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Γ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Arrow_7', '\\vectorarrow*{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Arrow_8', '\\va*{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Arrow_9', '\\va*{2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Arrow_10', '\\va*{\\Gamma}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Γ"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Arrow_11', '\\va*{\\theta}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Arrow_12', '\\va{a}\\vec{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "→"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-2-3-tests.js b/tests/legacy-tests/parser-physics-2-3-tests.js deleted file mode 100644 index 5169c66..0000000 --- a/tests/legacy-tests/parser-physics-2-3-tests.js +++ /dev/null @@ -1,1034 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest2_3 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest2_3(); - - -parserTest.runTest( - 'Vector_Unit_0', '\\vu{=}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"movablelimits": false, - "texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true} -); - - -parserTest.runTest( - 'Vector_Unit_1', '\\vectorunit{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Unit_2', '\\vu{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Unit_3', '\\vu{\\Gamma}\\Gamma', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Γ"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Γ"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Unit_4', '\\vu{2}2', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Unit_5', '\\vu{\\theta}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Unit_6', '\\vu{\\theta\\Gamma a\\delta \\frac{\\theta}{b}}\\frac{\\theta}{b}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Γ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Unit_7', '\\vectorunit*{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Unit_8', '\\vu*{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Unit_9', '\\vu*{2}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Unit_10', '\\vu*{\\Gamma}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Γ"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Unit_11', '\\vu*{\\theta}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold-italic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Unit_12', '\\vu{a}\\hat{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mover", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "accent": true}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "accent": true, - "stretchy": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "^"}], - "isEmbellished": true}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-2-4-tests.js b/tests/legacy-tests/parser-physics-2-4-tests.js deleted file mode 100644 index 03fbd92..0000000 --- a/tests/legacy-tests/parser-physics-2-4-tests.js +++ /dev/null @@ -1,631 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest2_4 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest2_4(); - - -parserTest.runTest( - 'Vector_Gradient_0', '\\gradient ', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Gradient_1', '\\gradient(\\frac{a}{b})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Gradient_2', '\\gradient[\\frac{a}{b}]', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Gradient_3', '\\gradient{\\frac{a}{b}}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Gradient_4', '\\grad ', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Gradient_5', '\\grad(\\frac{a}{b})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Gradient_6', '\\grad[\\frac{a}{b}]', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Gradient_7', '\\grad{\\frac{a}{b}}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-2-5-tests.js b/tests/legacy-tests/parser-physics-2-5-tests.js deleted file mode 100644 index a66e6b0..0000000 --- a/tests/legacy-tests/parser-physics-2-5-tests.js +++ /dev/null @@ -1,620 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest2_5 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest2_5(); - - -parserTest.runTest( - 'Vector_Divergence_0', 'a\\dotproduct b \\vdot c', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Divergence_1', '\\divergence{\\frac{a}{b}c}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}]}], - "isInferred": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Divergence_2', '\\div{\\frac{a}{b}c}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}]}], - "isInferred": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Divergence_3', '\\div{(\\frac{a}{b}c)}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}]}], - "isInferred": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Divergence_4', '\\div(\\frac{a}{b}c)', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}]}], - "isInferred": true}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Divergence_5', '{\\bf\\nabla} \\cdot \\left(\\frac{a}{b}c\\right)', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⋅"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-2-6-tests.js b/tests/legacy-tests/parser-physics-2-6-tests.js deleted file mode 100644 index 3bd424a..0000000 --- a/tests/legacy-tests/parser-physics-2-6-tests.js +++ /dev/null @@ -1,354 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest2_6 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest2_6(); - - -parserTest.runTest( - 'Vector_Curl_0', '\\curl ', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "×"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Curl_1', '\\curl(\\frac{a}{b})', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "×"}]}], - "isInferred": true}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Curl_2', '\\curl[\\frac{a}{b}]', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "×"}]}], - "isInferred": true}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Curl_3', '\\curl{\\frac{a}{b}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "bold"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "×"}]}], - "isInferred": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-2-7-tests.js b/tests/legacy-tests/parser-physics-2-7-tests.js deleted file mode 100644 index 927844e..0000000 --- a/tests/legacy-tests/parser-physics-2-7-tests.js +++ /dev/null @@ -1,387 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest2_7 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest2_7(); - - -parserTest.runTest( - 'Vector_Laplace_0', '\\laplacian ', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Laplace_1', '\\laplacian(\\frac{a}{b})', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Laplace_2', '\\laplacian[\\frac{a}{b}]', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Vector_Laplace_3', '\\laplacian{\\frac{a}{b}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "∇"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-3-0-tests.js b/tests/legacy-tests/parser-physics-3-0-tests.js deleted file mode 100644 index 8c8c5c6..0000000 --- a/tests/legacy-tests/parser-physics-3-0-tests.js +++ /dev/null @@ -1,1071 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest3_0 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest3_0(); - - -parserTest.runTest( - 'Operators_Trig_0', '\\sin(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Trig_1', '\\sinh(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sinh"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Trig_2', '\\arcsin(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "arcsin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Trig_3', '\\asin(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "asin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Trig_4', '\\cos(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Trig_5', '\\cosh(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "cosh"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Trig_6', '\\arccos(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "arccos"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Trig_7', '\\acos(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "acos"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Trig_8', '\\tan(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "tan"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Trig_9', '\\tanh(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "tanh"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Trig_10', '\\arctan(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "arctan"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Trig_11', '\\atan(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "atan"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-3-1-tests.js b/tests/legacy-tests/parser-physics-3-1-tests.js deleted file mode 100644 index 91bb4c1..0000000 --- a/tests/legacy-tests/parser-physics-3-1-tests.js +++ /dev/null @@ -1,1071 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest3_1 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest3_1(); - - -parserTest.runTest( - 'Operators_Arc_0', '\\csc(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "csc"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Arc_1', '\\csch(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "csch"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Arc_2', '\\arccsc(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "arccsc"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Arc_3', '\\acsc(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "acsc"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Arc_4', '\\sec(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sec"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Arc_5', '\\sech(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sech"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Arc_6', '\\arcsec(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "arcsec"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Arc_7', '\\asec(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "asec"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Arc_8', '\\cot(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "cot"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Arc_9', '\\coth(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "coth"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Arc_10', '\\arccot(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "arccot"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Arc_11', '\\acot(x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "acot"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-3-2-tests.js b/tests/legacy-tests/parser-physics-3-2-tests.js deleted file mode 100644 index 132e4fd..0000000 --- a/tests/legacy-tests/parser-physics-3-2-tests.js +++ /dev/null @@ -1,1275 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest3_2 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest3_2(); - - -parserTest.runTest( - 'Operators_TrigLarge_0', '\\sin(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_TrigLarge_1', '\\sinh(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sinh"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_TrigLarge_2', '\\arcsin(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "arcsin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_TrigLarge_3', '\\asin(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "asin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_TrigLarge_4', '\\cos(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_TrigLarge_5', '\\cosh(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "cosh"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_TrigLarge_6', '\\arccos(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "arccos"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_TrigLarge_7', '\\acos(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "acos"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_TrigLarge_8', '\\tan(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "tan"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_TrigLarge_9', '\\tanh(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "tanh"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_TrigLarge_10', '\\arctan(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "arctan"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_TrigLarge_11', '\\atan(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "atan"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-3-3-tests.js b/tests/legacy-tests/parser-physics-3-3-tests.js deleted file mode 100644 index 14d050c..0000000 --- a/tests/legacy-tests/parser-physics-3-3-tests.js +++ /dev/null @@ -1,1275 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest3_3 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest3_3(); - - -parserTest.runTest( - 'Operators_ArcLarge_0', '\\csc(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "csc"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_ArcLarge_1', '\\csch(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "csch"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_ArcLarge_2', '\\arccsc(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "arccsc"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_ArcLarge_3', '\\acsc(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "acsc"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_ArcLarge_4', '\\sec(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sec"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_ArcLarge_5', '\\sech(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sech"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_ArcLarge_6', '\\arcsec(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "arcsec"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_ArcLarge_7', '\\asec(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "asec"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_ArcLarge_8', '\\cot(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "cot"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_ArcLarge_9', '\\coth(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "coth"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_ArcLarge_10', '\\arccot(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "arccot"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_ArcLarge_11', '\\acot(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "acot"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-3-4-tests.js b/tests/legacy-tests/parser-physics-3-4-tests.js deleted file mode 100644 index fd6bb36..0000000 --- a/tests/legacy-tests/parser-physics-3-4-tests.js +++ /dev/null @@ -1,1464 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest3_4 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest3_4(); - - -parserTest.runTest( - 'Operators_Exp_0', '\\sin x', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_1', '\\sin{x}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_2', '\\sin[x]', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_3', '\\sin[2]{x}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_4', '\\sin[2]x', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_5', '\\sin[2]', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_6', '\\sin|\\frac{x}{y}|', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_7', '\\sin[\\frac{x}{y}]', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_8', '\\sin[\'](\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "′"}], - "isEmbellished": true}]}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_9', '\\sin[\']{\\frac{x}{y}}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "′"}], - "isEmbellished": true}]}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_10', '\\sine(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "sin"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_11', '\\hypsine', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "sinh"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_12', '\\log[2](x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "log"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_13', '\\ln[2](x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "ln"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_14', '\\exp[2](x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "exp"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_15', '\\det[2](x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "det"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Exp_16', '\\Pr[2](x)', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "Pr"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-3-5-tests.js b/tests/legacy-tests/parser-physics-3-5-tests.js deleted file mode 100644 index 1fa9b08..0000000 --- a/tests/legacy-tests/parser-physics-3-5-tests.js +++ /dev/null @@ -1,1790 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest3_5 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest3_5(); - - -parserTest.runTest( - 'Operators_Operators_0', '\\tr\\rho', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "tr"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ρ"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_1', '\\tr(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "tr"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_2', '\\tr[2](\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "tr"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_3', '\\rank\\rho', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "rank"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ρ"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_4', '\\rank(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "rank"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_5', '\\rank[2](\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "rank"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_6', '\\erf\\rho', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "erf"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ρ"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_7', '\\erf(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "erf"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_8', '\\erf[2](\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1, - "fnOP": true}, - "childNodes": [ - {"kind": "text", - "text": "erf"}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_9', '\\Res\\rho', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ρ"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_10', '\\Res(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_11', '\\Res[\\frac{x}{y}]', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_12', '\\Res{\\frac{x}{y}}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_13', '\\Res|\\frac{x}{y}|', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_14', '\\Res \\frac{x}{y}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Operators_15', '\\Res[2](\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "s"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-3-6-tests.js b/tests/legacy-tests/parser-physics-3-6-tests.js deleted file mode 100644 index 2b07d7b..0000000 --- a/tests/legacy-tests/parser-physics-3-6-tests.js +++ /dev/null @@ -1,1761 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest3_6 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest3_6(); - - -parserTest.runTest( - 'Operators_PV_0', '\\principalvalue{\\int f(z) \\dd{z}}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_PV_1', '\\pv{\\int f(z) \\dd{z}}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_PV_2', '\\pv{\\int f(z) \\dd{z}}a', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_PV_3', '\\pv\\int f(z) \\dd{z}a', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_PV_4', '\\pv(\\int f(z))', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_PV_5', '\\pv|\\int f(z)|', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_PV_6', '\\pv[\\int f(z)]', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "-tex-calligraphic"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_PV_7', '\\PV{\\int f(z) \\dd{z}}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "."}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "V"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "."}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_PV_8', '\\PV{\\int f(z) \\dd{z}}a', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "."}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "V"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "."}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_PV_9', '\\PV\\int f(z) \\dd{z}a', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "P"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "."}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "V"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "."}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "largeop": true, - "symmetric": true}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "∫"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "z"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-3-7-tests.js b/tests/legacy-tests/parser-physics-3-7-tests.js deleted file mode 100644 index d255a72..0000000 --- a/tests/legacy-tests/parser-physics-3-7-tests.js +++ /dev/null @@ -1,1825 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest3_7 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest3_7(); - - -parserTest.runTest( - 'Operators_Imaginary_0', '\\Re\\rho', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ρ"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_1', '\\Re(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_2', '\\Re[\\frac{x}{y}]', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_3', '\\Re{\\frac{x}{y}}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_4', '\\Re|\\frac{x}{y}|', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_5', '\\Re \\frac{x}{y}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_6', '\\Re[2](\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_7', '\\real', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ℜ"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_8', '\\real{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ℜ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_9', '\\Im\\rho', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ρ"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_10', '\\Im(\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_11', '\\Im[\\frac{x}{y}]', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_12', '\\Im{\\frac{x}{y}}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "{", - "close": "}", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "{"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "}"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_13', '\\Im|\\frac{x}{y}|', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_14', '\\Im \\frac{x}{y}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_15', '\\Im[2](\\frac{x}{y})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"fnOP": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "I"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": -1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {"texClass": -1}, - "childNodes": [ - {"kind": "text", - "text": "⁡"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_16', '\\imaginary', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ℑ"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Operators_Imaginary_17', '\\imaginary{x}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ℑ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-4-0-tests.js b/tests/legacy-tests/parser-physics-4-0-tests.js deleted file mode 100644 index da61f29..0000000 --- a/tests/legacy-tests/parser-physics-4-0-tests.js +++ /dev/null @@ -1,751 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest4_0 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest4_0(); - - -parserTest.runTest( - 'QuickQuad_0_0', '\\qcc', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c.c."}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - - -parserTest.runTest( - 'QuickQuad_0_1', '\\qand', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "and"}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - - -parserTest.runTest( - 'QuickQuad_0_2', 'a\\qc b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'QuickQuad_0_3', 'a\\qqtext{hello}b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "hello"}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'QuickQuad_0_4', 'a\\qqtext*{hello}b', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "hello"}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'QuickQuad_0_5', 'a\\qqtext ab', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'QuickQuad_0_6', 'a\\qqtext* ab', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'QuickQuad_0_7', 'three\\qif two', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "t"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "h"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "r"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "e"}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "if"}], - "isSpacelike": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "1em"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "t"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "w"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "o"}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-5-0-tests.js b/tests/legacy-tests/parser-physics-5-0-tests.js deleted file mode 100644 index adb3f3e..0000000 --- a/tests/legacy-tests/parser-physics-5-0-tests.js +++ /dev/null @@ -1,2677 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest5_0 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest5_0(); - - -parserTest.runTest( - 'Derivatives_Deriv_0', '\\dv x', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Deriv_1', '\\dv x(ll)', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Deriv_2', '\\dv{x}{y}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Deriv_3', '\\dv[n]{f}{x}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Deriv_4', '\\dv{f}{x}{y}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Deriv_5', '\\dv{f}{x}y', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Deriv_6', '\\dv{x}y', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Deriv_7', '\\dv[n]{f}(\\frac{x}{y})', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}]}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Deriv_8', '\\dv[n]{f}{x}{y}(\\frac{x}{y})', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Deriv_9', '\\dv*[n]{f}{x}{y}(\\frac{x}{y})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Deriv_10', '\\dv*[]{f}{x}{y}(\\frac{x}{y})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Deriv_11', '\\dv[]{f}{x}{y}(\\frac{x}{y})', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Deriv_12', '\\dv[5](\\frac{x}{y})', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}], - "isEmbellished": true}]}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Deriv_13', '\\dv[5]{f}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}]}]}], - "isInferred": true}]}); - - -parserTest.runTest( - 'Derivatives_Deriv_14', '\\dv{f}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}]}], - "isInferred": true}]}); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-5-1-tests.js b/tests/legacy-tests/parser-physics-5-1-tests.js deleted file mode 100644 index c40d7ba..0000000 --- a/tests/legacy-tests/parser-physics-5-1-tests.js +++ /dev/null @@ -1,2509 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest5_1 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest5_1(); - - -parserTest.runTest( - 'Derivatives_Partial_0', '\\flatfrac{x}{y}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_1', '\\flatfrac{x^2}{y}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_2', '\\pdv x', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_3', '\\pdv x(ll)', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_4', '\\pdv{f}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_5', '\\pdv{x}{y}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_6', '\\pdv[n]{f}{x}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_7', '\\pdv{f}{x}{y}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_8', '\\pdv{f}{x}y', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_9', '\\pdv{x}y', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_10', '\\pdv*{f}{x}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_11', '\\pdv*[3]{f}{x}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_12', '\\pdv[n]{f}(\\frac{x}{y})', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}]}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_13', '\\pdv[n]{f}{x}{y}(\\frac{x}{y})', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_14', '\\pdv*[n]{f}{x}{y}(\\frac{x}{y})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_15', '\\pdv*[]{f}{x}{y}(\\frac{x}{y})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_16', '\\pdv[]{f}{x}{y}(\\frac{x}{y})', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_17', '\\pdv[5](\\frac{x}{y})', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "msup", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}], - "isEmbellished": true}]}]}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Partial_18', '\\pdv[5]{f}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "∂"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}]}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-5-2-tests.js b/tests/legacy-tests/parser-physics-5-2-tests.js deleted file mode 100644 index 2dab3f3..0000000 --- a/tests/legacy-tests/parser-physics-5-2-tests.js +++ /dev/null @@ -1,2695 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest5_2 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest5_2(); - - -parserTest.runTest( - 'Derivatives_Functional_0', '\\fdv x', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_1', '\\fdv x(ll)', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "l"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_2', '\\fdv{x}{y}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_3', '\\fdv{f}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_4', '\\fdv[n]{f}{x}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_5', '\\fdv{f}{x}{y}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_6', '\\fdv{f}{x}y', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_7', '\\fdv{x}y', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_8', '\\functionalderivative*{F}{x}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_9', '\\fderivative*{F}{x}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_10', '\\fdv*{F}{x}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_11', '\\fdv{F}{x}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_12', '\\fdv[2]{F}{x}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_13', '\\fdv[n]{f}(\\frac{x}{y})', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}]}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_14', '\\fdv[n]{f}{x}{y}(\\frac{x}{y})', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_15', '\\fdv*[n]{f}{x}{y}(\\frac{x}{y})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_16', '\\fdv*[]{f}{x}{y}(\\frac{x}{y})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "", - "close": "", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"stretchy": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "/"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": true, - "stretchy": true, - "symmetric": true}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix"}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ""}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_17', '\\fdv[]{f}{x}{y}(\\frac{x}{y})', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}]}]}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Functional_18', '\\fdv[5]{f}', - {"kind": "math", - "texClass": null, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "f"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}]}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-5-3-tests.js b/tests/legacy-tests/parser-physics-5-3-tests.js deleted file mode 100644 index 6c0191b..0000000 --- a/tests/legacy-tests/parser-physics-5-3-tests.js +++ /dev/null @@ -1,1265 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest5_3 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest5_3(); - - -parserTest.runTest( - 'Derivatives_Var_0', '\\var A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Var_1', '\\var{A}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Var_2', '\\var{A}{B}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Var_3', '\\var[4]{A} B', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Var_4', '\\var{F[g(x)]}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Var_5', '\\var(E-TS)', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "E"}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "T"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "S"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Var_6', '\\var{F[g(\\frac{x}{y})]}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Var_7', '\\var{F[g\\left(\\frac{x}{y}\\right)]}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "F"}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "g"}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "y"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Var_8', '\\var(\\frac{a}{b})', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Var_9', 'A \\var A B', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Var_10', 'A \\var{A} B', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Var_11', 'A \\var{A}{B} B', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Var_12', 'A \\var[4]{A} B', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "δ"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-5-4-tests.js b/tests/legacy-tests/parser-physics-5-4-tests.js deleted file mode 100644 index f073c89..0000000 --- a/tests/legacy-tests/parser-physics-5-4-tests.js +++ /dev/null @@ -1,1042 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest5_4 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest5_4(); - - -parserTest.runTest( - 'Derivatives_Differ_0', '\\dd', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Differ_1', '\\dd x', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Differ_2', '\\dd{x}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Differ_3', '\\dd[3]{x}', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Differ_4', '\\dd[3]x', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Differ_5', '\\dd(\\frac{\\frac{\\cos}{\\theta}}{\\theta})', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Differ_6', '\\dd[4](\\frac{\\frac{\\cos}{\\theta}}{\\theta})', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Differ_7', '\\dd{x}(\\frac{\\frac{\\cos}{\\theta}}{\\theta})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Differ_8', '\\dd[4]{x}(\\frac{\\frac{\\cos}{\\theta}}{\\theta})', - {"kind": "math", - "texClass": 1, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_Differ_9', '\\dd[5]', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-5-5-tests.js b/tests/legacy-tests/parser-physics-5-5-tests.js deleted file mode 100644 index 08ba3f0..0000000 --- a/tests/legacy-tests/parser-physics-5-5-tests.js +++ /dev/null @@ -1,1644 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest5_5 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest5_5(); - - -parserTest.runTest( - 'Derivatives_PDiff_0', 'A\\dd A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_PDiff_1', 'A\\dd x A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_PDiff_2', 'A\\dd{x} A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_PDiff_3', 'A\\dd xA', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_PDiff_4', 'A{{\\rm d}(\\it x)}A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "-tex-mathit"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_PDiff_5', 'A\\dd[3]{x} A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_PDiff_6', 'A\\dd[3]x A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_PDiff_7', 'A\\dd(\\frac{\\frac{\\cos}{\\theta}}{\\theta}) A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_PDiff_8', 'A\\dd[4](\\frac{\\frac{\\cos}{\\theta}}{\\theta})A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_PDiff_9', 'A\\dd{x}(\\frac{\\frac{\\cos}{\\theta}}{\\theta})A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_PDiff_10', 'A\\dd[4]{x}(\\frac{\\frac{\\cos}{\\theta}}{\\theta})A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "msup", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "x"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_PDiff_11', 'A{\\rm d}\\left(\\frac{\\frac{\\cos}{\\theta}}{\\theta}\\right) A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Derivatives_PDiff_12', 'A{\\rm d}{\\left(\\frac{\\frac{\\cos}{\\theta}}{\\theta}\\right)} A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 1, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {"texClass": 1}, - "childNodes": [ - {"kind": "text", - "text": "cos"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "θ"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-6-0-tests.js b/tests/legacy-tests/parser-physics-6-0-tests.js deleted file mode 100644 index 52a7238..0000000 --- a/tests/legacy-tests/parser-physics-6-0-tests.js +++ /dev/null @@ -1,2346 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest6_0 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest6_0(); - - -parserTest.runTest( - 'BraKet_Bra_0', '\\bra{\\phi}\\ket{\\psi}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ϕ"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ψ"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_1', '\\bra{A}\\ket{B}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_2', '\\bra{\\phi}\\dyad{\\psi}{\\xi}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ϕ"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ψ"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "ξ"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_3', '\\bra A \\ket B', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_4', '\\bra*{\\frac{a}{b}} \\ket{\\frac{a}{b}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_5', '\\bra{\\frac{a}{b}} \\ket*{\\frac{a}{b}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_6', '\\bra A\\ket{B}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_7', '\\bra A\\ket ', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_8', '\\bra {A}\\ket ', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_9', '\\bra {A}\\ket B', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_10', '\\bra {\\frac{a}{b}} \\ket* \\alpha', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}, - {"kind": "mo", - "texClass": 2, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∗"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_11', '\\ket{A}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_12', '\\ket{\\frac{a}{b}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_13', '\\ket*{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_14', '\\ket a', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_15', '\\ket* a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Bra_16', '\\ket \\alpha', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-6-1-tests.js b/tests/legacy-tests/parser-physics-6-1-tests.js deleted file mode 100644 index 155a138..0000000 --- a/tests/legacy-tests/parser-physics-6-1-tests.js +++ /dev/null @@ -1,1982 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest6_1 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest6_1(); - - -parserTest.runTest( - 'BraKet_Braket_0', '\\braket{A}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Braket_1', '\\braket{\\frac{a}{b}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Braket_2', '\\braket*{A}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Braket_3', '\\braket*{\\frac{a}{b}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Braket_4', '\\braket a', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Braket_5', '\\braket* a', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Braket_6', '\\braket \\alpha', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Braket_7', '\\braket{\\frac{a}{b}}{A}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Braket_8', '\\braket*{\\frac{a}{b}}{A}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Braket_9', '\\braket{\\frac{a}{b}} A', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Braket_10', '\\braket*{\\frac{a}{b}} A', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Braket_11', '\\braket{\\frac{a}{b}}{} ', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Braket_12', '\\braket*{\\frac{a}{b}}{}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-6-2-tests.js b/tests/legacy-tests/parser-physics-6-2-tests.js deleted file mode 100644 index ef4c5e2..0000000 --- a/tests/legacy-tests/parser-physics-6-2-tests.js +++ /dev/null @@ -1,3544 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest6_2 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest6_2(); - - -parserTest.runTest( - 'BraKet_Ketbra_0', '\\ketbra{A}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_1', '\\ketbra{\\frac{a}{b}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_2', '\\ketbra*{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_3', '\\ketbra*{\\frac{a}{b}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_4', '\\ketbra a', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_5', '\\ketbra* a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_6', '\\ketbra \\alpha', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "α"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_7', '\\ketbra{\\frac{a}{b}}{A}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_8', '\\ketbra*{\\frac{a}{b}}{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_9', '\\ketbra{\\frac{a}{b}} A', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_10', '\\ketbra*{\\frac{a}{b}} A', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_11', '\\ketbra{\\frac{a}{b}}{} ', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_12', '\\ketbra*{\\frac{a}{b}}{}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_13', '\\left\\vert A \\middle\\rangle\\middle\\langle B\\right\\vert', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_14', '\\ketbra{A}{B}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_15', '\\outerproduct{A}{B}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Ketbra_16', '\\dyad{a}{b}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 0}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mspace", - "texClass": 0, - "attributes": {"width": "negativethinmathspace"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-6-3-tests.js b/tests/legacy-tests/parser-physics-6-3-tests.js deleted file mode 100644 index a77bb41..0000000 --- a/tests/legacy-tests/parser-physics-6-3-tests.js +++ /dev/null @@ -1,2984 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest6_3 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest6_3(); - - -parserTest.runTest( - 'BraKet_Expect_0', '\\ev{A}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_1', '\\ev{\\frac{A}{B}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_2', '\\ev*{\\frac{A}{B}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_3', '\\ev**{\\frac{A}{B}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_4', '\\ev{A}{\\frac{A}{B}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_5', '\\ev{\\frac{A}{B}}{A}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_6', '\\ev*{A}{\\frac{A}{B}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_7', '\\ev**{A} {\\frac{A}{B}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_8', '\\ev A B', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_9', '\\ev A {\\frac{A}{B}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_10', '\\ev {\\frac{A}{B}} A', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_11', '\\ev* A {\\frac{A}{B}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_12', '\\ev** A {\\frac{A}{B}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_13', '\\ev{\\frac{A}{B}}{\\frac{\\Psi}{\\Phi}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Ψ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Φ"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Ψ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Φ"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_14', '\\ev{\\frac{A}{B}}{{\\Psi}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Ψ"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Ψ"}]}], - "isInferred": true}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_15', '\\ev*{\\frac{A}{B}}{\\frac{\\Psi}{\\Phi}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Ψ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Φ"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Ψ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Φ"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_Expect_16', '\\ev**{\\frac{A}{B}}{\\frac{\\Psi}{\\Phi}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Ψ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Φ"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Ψ"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {"mathvariant": "normal"}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "Φ"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-6-4-tests.js b/tests/legacy-tests/parser-physics-6-4-tests.js deleted file mode 100644 index 343eb09..0000000 --- a/tests/legacy-tests/parser-physics-6-4-tests.js +++ /dev/null @@ -1,1636 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest6_4 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest6_4(); - - -parserTest.runTest( - 'BraKet_MatrixEl_0', '\\matrixel{n}{A}{m}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_MatrixEl_1', '\\mel{n}{A}{m}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_MatrixEl_2', '\\mel{\\frac{a}{b}}{\\frac{a}{b}}{\\frac{a}{b}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_MatrixEl_3', '\\mel A B C', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "C"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_MatrixEl_4', '\\mel*{n}{\\frac{a}{b}}{m}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_MatrixEl_5', '\\mel*{\\frac{a}{b}}{\\frac{a}{b}}{\\frac{a}{b}}', - {"kind": "math", - "texClass": 4, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 0}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {"fence": false, - "stretchy": false}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_MatrixEl_6', '\\mel**{n}{\\frac{a}{b}}{m}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "n"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "m"}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'BraKet_MatrixEl_7', '\\mel**{\\frac{a}{b}}{\\frac{a}{b}}{\\frac{a}{b}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟨", - "close": "⟩", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟨"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "TeXAtom", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟩"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-7-0-tests.js b/tests/legacy-tests/parser-physics-7-0-tests.js deleted file mode 100644 index a0dec1a..0000000 --- a/tests/legacy-tests/parser-physics-7-0-tests.js +++ /dev/null @@ -1,2118 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest7_0 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest7_0(); - - -parserTest.runTest( - 'Matrices_Quantity_0', '\\matrixquantity{Q}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Q"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Quantity_1', '\\matrixquantity*{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Quantity_2', '\\matrixquantity*(a & b \\\\ c & d)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟮", - "close": "⟯", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟮"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟯"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Quantity_3', '\\matrixquantity(a & b \\\\ c & d)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Quantity_4', '\\matrixquantity[a & b \\\\ c & d]', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Quantity_5', '\\matrixquantity|a & b \\\\ c & d|', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Quantity_6', '\\mqty{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Quantity_7', '\\mqty(a & b \\\\ c & d)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Quantity_8', '\\mqty*(a & b \\\\ c & d)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟮", - "close": "⟯", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟮"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟯"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Quantity_9', '\\mqty[a & b \\\\ c & d]', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Quantity_10', '\\mqty|a & b \\\\ c & d|', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Quantity_11', '\\mqty*|a & b\\\\ c& d|', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-7-1-tests.js b/tests/legacy-tests/parser-physics-7-1-tests.js deleted file mode 100644 index 367da7a..0000000 --- a/tests/legacy-tests/parser-physics-7-1-tests.js +++ /dev/null @@ -1,1519 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest7_1 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest7_1(); - - -parserTest.runTest( - 'Matrices_Fenced_0', '\\pmqty{Q} \\mqty(R)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Q"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Fenced_1', '\\Pmqty{Q} \\mqty*(R)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟮", - "close": "⟯", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟮"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Q"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟯"}], - "isEmbellished": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟮", - "close": "⟯", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟮"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟯"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Fenced_2', '\\bmqty{Q} \\mqty[R]', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Q"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Fenced_3', '\\vmqty{Q} \\mqty|R|', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Q"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Fenced_4', '\\pmqty{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Fenced_5', '\\Pmqty{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟮", - "close": "⟯", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟮"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟯"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Fenced_6', '\\bmqty{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Fenced_7', '\\vmqty{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-7-10-tests.js b/tests/legacy-tests/parser-physics-7-10-tests.js deleted file mode 100644 index 1b3d86e..0000000 --- a/tests/legacy-tests/parser-physics-7-10-tests.js +++ /dev/null @@ -1,2668 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest7_10 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest7_10(); - - -parserTest.runTest( - 'Matrices_Adiag_0', '\\mqty(\\admat{1,2&3\\\\4&5})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Adiag_1', '\\mqty(\\admat 1)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Adiag_2', '\\mqty(\\admat 1,2)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Adiag_3', '\\mqty(\\admat{1,2&3\\\\4&5&6,7,8})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "7"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "8"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Adiag_4', '\\mqty(\\admat{1,2&3\\\\4&5,6,7,8})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "7"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "8"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Adiag_5', '\\mqty(\\admat{1,2&3\\\\4&5&6,7,8,\\dmat{9,10}})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "7"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "8"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "9"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "10"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-7-11-tests.js b/tests/legacy-tests/parser-physics-7-11-tests.js deleted file mode 100644 index 3aaeead..0000000 --- a/tests/legacy-tests/parser-physics-7-11-tests.js +++ /dev/null @@ -1,7550 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest7_11 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest7_11(); - - -parserTest.runTest( - 'Matrices_Other_0', '\\mqty a', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": []}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Other_1', '\\mqty1', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": []}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Other_2', '\\pmqty* 34', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "∗"}], - "isEmbellished": true}], - "isInferred": true, - "isEmbellished": true}], - "isEmbellished": true}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "34"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Other_3', '\\mqty(\\dmat{1,2&3,4&4&5\\\\4&5,33,4,5,7,8\\\\0\\\\10&20\\\\3,200}) ', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "33"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "7"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "8"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "10"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "20"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "200"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Other_4', '\\mqty(\\dmat{1,2&3\\\\4&5}) ', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Other_5', '\\mqty(\\dmat{1,2&3\\\\4&5&6,\\imat{3},7,8,\\dmat{9,10}})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "7"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "8"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "9"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "10"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Other_6', '\\mqty(\\mqty{1}\\\\ & \\mqty{2 & 3\\\\ 4 & 5 & 6}\\\\ & & \\mqty{\\imat{3}} \\\\ & & & \\mqty{7})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "7"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Other_7', '\\left\\lgroup\\frac{a}{b}\\right\\rgroup', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟮", - "close": "⟯", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟮"}], - "isEmbellished": true}, - {"kind": "mfrac", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟯"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Other_8', '\\begin{smallmatrix} a & b \\\\ c & d \\end{smallmatrix}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Other_9', '\\smqty{\\imat{3}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Other_10', '\\mqty{\\imat{10}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-7-2-tests.js b/tests/legacy-tests/parser-physics-7-2-tests.js deleted file mode 100644 index 7dc5acb..0000000 --- a/tests/legacy-tests/parser-physics-7-2-tests.js +++ /dev/null @@ -1,2234 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest7_2 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest7_2(); - - -parserTest.runTest( - 'Matrices_Small_0', '\\smallmatrixquantity{Q}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Q"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Small_1', '\\smallmatrixquantity*{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Small_2', '\\smallmatrixquantity*(a & b \\\\ c & d)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟮", - "close": "⟯", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟮"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟯"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Small_3', '\\smallmatrixquantity(a & b \\\\ c & d)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Small_4', '\\smallmatrixquantity[a & b \\\\ c & d]', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Small_5', '\\smallmatrixquantity|a & b \\\\ c & d|', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Small_6', '\\smqty{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Small_7', '\\smqty(a & b \\\\ c & d)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Small_8', '\\smqty*(a & b \\\\ c & d)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟮", - "close": "⟯", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟮"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟯"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Small_9', '\\smqty[a & b \\\\ c & d]', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Small_10', '\\smqty|a & b \\\\ c & d|', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-7-3-tests.js b/tests/legacy-tests/parser-physics-7-3-tests.js deleted file mode 100644 index 51fd1c5..0000000 --- a/tests/legacy-tests/parser-physics-7-3-tests.js +++ /dev/null @@ -1,1855 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest7_3 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest7_3(); - - -parserTest.runTest( - 'Matrices_SmallFenced_0', '\\spmqty{Q} \\smqty(R)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Q"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_SmallFenced_1', '\\sPmqty{Q} \\smqty*(R)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟮", - "close": "⟯", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟮"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Q"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟯"}], - "isEmbellished": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟮", - "close": "⟯", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟮"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟯"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_SmallFenced_2', '\\sbmqty{Q} \\smqty[R]', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Q"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_SmallFenced_3', '\\svmqty{Q} \\smqty|R|', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Q"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mrow", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "R"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_SmallFenced_4', '\\spmqty{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_SmallFenced_5', '\\sPmqty{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "⟮", - "close": "⟯", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "⟮"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "⟯"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_SmallFenced_6', '\\sbmqty{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "[", - "close": "]", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "["}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "]"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_SmallFenced_7', '\\svmqty{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-7-4-tests.js b/tests/legacy-tests/parser-physics-7-4-tests.js deleted file mode 100644 index f54ffe2..0000000 --- a/tests/legacy-tests/parser-physics-7-4-tests.js +++ /dev/null @@ -1,983 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest7_4 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest7_4(); - - -parserTest.runTest( - 'Matrices_Det_0', '\\matrixdeterminant{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Det_1', '\\mdet{a & b \\\\ c & d}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Det_2', '\\smdet{a & b \\\\ c & d} ', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Det_3', '\\matrixdeterminant a b', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Det_4', '\\mdet a b', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Det_5', '\\smdet a b', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-7-5-tests.js b/tests/legacy-tests/parser-physics-7-5-tests.js deleted file mode 100644 index 41f2d6a..0000000 --- a/tests/legacy-tests/parser-physics-7-5-tests.js +++ /dev/null @@ -1,1792 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest7_5 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest7_5(); - - -parserTest.runTest( - 'Matrices_Identity_0', '\\mqty{\\imat{3}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Identity_1', '\\vmqty{\\imat{5}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Identity_2', '\\vmqty{\\imat{0}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Identity_3', '\\vmqty{\\imat{1}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Identity_4', '\\vmqty{\\imat{-1}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "|", - "close": "|", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": "|"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Identity_5', '\\pmqty{\\imat{3}\\pmat{0}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-7-6-tests.js b/tests/legacy-tests/parser-physics-7-6-tests.js deleted file mode 100644 index 3eeb0ae..0000000 --- a/tests/legacy-tests/parser-physics-7-6-tests.js +++ /dev/null @@ -1,4195 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest7_6 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest7_6(); - - -parserTest.runTest( - 'Matrices_XMatrix_0', '\\smqty(\\xmat{1}{2}{3})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_XMatrix_1', '\\smqty(\\xmat{a}{3}{3}) ', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_XMatrix_2', '\\smqty(\\xmat{a}{3}{1}) ', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_XMatrix_3', '\\smqty(\\xmat{a}{1}{3})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_XMatrix_4', '\\smqty(\\xmat*{1}{2}{3})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_XMatrix_5', '\\smqty(\\xmat*{a}{3}{3})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_XMatrix_6', '\\smqty(\\xmat*{a}{3}{1})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_XMatrix_7', '\\smqty(\\xmat*{a}{1}{3})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "msub", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 2}, - "properties": {"texprimestyle": true}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_XMatrix_8', '\\smqty(\\xmat*{a}{1}{1})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_XMatrix_9', '\\smqty(\\xmat*{a}{-1}{-1})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_XMatrix_10', '\\smqty(\\zmat{1}{3})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_XMatrix_11', '\\smqty(\\zmat{2}{3})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_XMatrix_12', '\\smqty(\\zmat{3}{1})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mstyle", - "texClass": 0, - "attributes": {"scriptlevel": 1}, - "inherited": {"displaystyle": true}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnspacing": "0.333em", - "rowspacing": ".2em"}, - "inherited": {"scriptlevel": 1}, - "properties": {"useHeight": false}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 1}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-7-7-tests.js b/tests/legacy-tests/parser-physics-7-7-tests.js deleted file mode 100644 index 22d4759..0000000 --- a/tests/legacy-tests/parser-physics-7-7-tests.js +++ /dev/null @@ -1,1707 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest7_7 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest7_7(); - - -parserTest.runTest( - 'Matrices_Pauli_0', '\\mqty{\\pmat{0}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Pauli_1', '\\pmqty{\\pmat{0}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Pauli_2', '\\mqty{\\pmat{1}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Pauli_3', '\\mqty{\\pmat{2}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Pauli_4', '\\mqty{\\pmat{3}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Pauli_5', '\\mqty{\\pmat{4}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": []}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Pauli_6', '\\mqty{\\pmat{x}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Pauli_7', '\\mqty{\\pmat{y}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Pauli_8', '\\mqty{\\pmat{z}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Pauli_9', '\\mqty{\\pmat{a}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": []}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Pauli_10', '\\pmqty{\\pmat{a}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": []}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Pauli_11', '\\mqty{\\pmat{aa}}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Pauli_12', '\\pmqty{\\pmat{0.a}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "."}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-7-8-tests.js b/tests/legacy-tests/parser-physics-7-8-tests.js deleted file mode 100644 index ad5ef2e..0000000 --- a/tests/legacy-tests/parser-physics-7-8-tests.js +++ /dev/null @@ -1,1359 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest7_8 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest7_8(); - - -parserTest.runTest( - 'Matrices_PauliFenced_0', '\\pmqty{\\pmat{1}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_PauliFenced_1', '\\pmqty{\\pmat{2}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_PauliFenced_2', '\\pmqty{\\pmat{3}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_PauliFenced_3', '\\pmqty{\\pmat{4}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": []}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_PauliFenced_4', '\\pmqty{\\pmat{x}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_PauliFenced_5', '\\pmqty{\\pmat{y}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "i"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_PauliFenced_6', '\\pmqty{\\pmat{z}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "0"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mo", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "prefix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "−"}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_PauliFenced_7', '\\pmqty{\\pmat{aa}}', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-physics-7-9-tests.js b/tests/legacy-tests/parser-physics-7-9-tests.js deleted file mode 100644 index 1787cdf..0000000 --- a/tests/legacy-tests/parser-physics-7-9-tests.js +++ /dev/null @@ -1,3270 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/physics/PhysicsConfiguration.js'; - -class ParserPhysicsTest7_9 extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'physics']; - } -}; - -let parserTest = new ParserPhysicsTest7_9(); - - -parserTest.runTest( - 'Matrices_Diag_0', '\\mqty(\\dmat{1,2&3\\\\4&5})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Diag_1', '\\mqty(\\dmat 1)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Diag_2', '\\mqty(\\dmat 1,2)', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}, - {"kind": "mo", - "texClass": 6, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0, - "form": "infix", - "linebreakstyle": "after", - "separator": true}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": ","}], - "isEmbellished": true}, - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Diag_3', '\\mqty(\\dmat{1,2&3\\\\4&5&6,7,8})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "7"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "8"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Diag_4', '\\mqty(\\dmat{1,2&3\\\\4&5,6,7,8})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "7"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "8"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Diag_5', '\\mqty(\\dmat{1,2\\\\3\\\\4\\\\5\\\\6,7,8})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "7"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "8"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Matrices_Diag_6', '\\mqty(\\dmat{1,2&3\\\\4&5&6,7,8,\\dmat{9,10}})', - {"kind": "math", - "texClass": 7, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 7, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"open": "(", - "close": ")", - "texClass": 7}, - "childNodes": [ - {"kind": "mo", - "texClass": 4, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "prefix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 4}, - "childNodes": [ - {"kind": "text", - "text": "("}], - "isEmbellished": true}, - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "2"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "3"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "4"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "5"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "6"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "7"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "8"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "9"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "", - "columnspacing": "1em", - "rowspacing": "4pt"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mn", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "10"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]}]}]}, - {"kind": "mo", - "texClass": 5, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "postfix", - "fence": true, - "stretchy": true, - "symmetric": true}, - "properties": {"texClass": 5}, - "childNodes": [ - {"kind": "text", - "text": ")"}], - "isEmbellished": true}]}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-tag-all-tests.js b/tests/legacy-tests/parser-tag-all-tests.js deleted file mode 100644 index fe2ea58..0000000 --- a/tests/legacy-tests/parser-tag-all-tests.js +++ /dev/null @@ -1,3177 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import {TagsFactory} from './node_modules/mathjax-full/js/input/tex/Tags.js'; - -class ParserTagAllTest extends ParserTest { - - constructor() { - super(); - this.settings = {tags: 'all'}; - } - -} - -let parserTest = new ParserTagAllTest(); - - -// Simple -parserTest.runTest( - 'Single Expression', 'a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Align', '\\begin{align}a\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MultLine', '\\begin{multline}a\\\\ b\\\\ c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Label Empty', '\\begin{align}a\\label{}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Label', '\\begin{align}a\\label{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -// Notags -parserTest.runTest( - 'Notag Align', '\\begin{align}a\\notag\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Notag Multline', '\\begin{multline}a\\\\ b\\\\ c\\notag\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Notag Tag', '\\begin{align}a\\tag{A}\\notag\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -// Reference -parserTest.runTest( - 'Ref', '\\begin{align}a\\label{A}\\end{align}\\ref{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Ref Unknown', '\\begin{align}a\\label{A}\\end{align}\\ref{B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "???"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Eqref', '\\begin{align}a\\label{A}\\end{align}\\eqref{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -// Complex: -parserTest.runTest( - 'Align Two labels', '\\begin{align}a=b\\label{A}\\\\ c&=d \\label{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(2)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -// Errors: -parserTest.runTest( - 'Illegal Tag Error', '\\begin{split}a\\tag{A}\\end{split}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\tag not allowed in split environment" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\tag not allowed in split environment"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Double Tag Error', '\\begin{align}a\\tag{A}\\tag{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Multiple \\tag" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Multiple \\tag"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Double Label Error', '\\begin{align}a\\label{A}\\label{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Multiple \\label" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Multiple \\label"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Duplicate Label Error', '\\begin{align}a\\label{A}\\\\ b\\label{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Label 'A' multiply defined" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Label 'A' multiply defined"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -// Tags -parserTest.runTest( - 'Tag Default', '\\begin{align}a\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Tag Named', '\\begin{align}a\\tag{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Tag Named Default', '\\begin{align}a\\tag{A}\\\\b\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Tag Named Named', '\\begin{align}a\\tag{A}\\\\b\\tag{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(B)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Label Default', '\\begin{align}a\\label{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Label Named', '\\begin{align}a\\tag{A}\\label{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Label Named Default', '\\begin{align}a\\tag{A}\\label{A}\\\\b\\label{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Label Named Named', '\\begin{align}a\\tag{A}\\label{A}\\\\b\\tag{B}\\label{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(B)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Ref Default', '\\begin{align}a\\label{A}\\end{align}\\ref{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Ref Named', '\\begin{align}a\\tag{A}\\label{A}\\end{align}\\ref{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Ref Named Default', '\\begin{align}a\\tag{A}\\label{A}\\\\b\\label{B}\\end{align}\\ref{A}\\ref{B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}], - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-B"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Ref Named Named', '\\begin{align}a\\tag{A}\\label{A}\\\\b\\tag{B}\\label{B}\\end{align}\\ref{A}\\ref{B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(B)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}], - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-B"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-tag-ams-tests.js b/tests/legacy-tests/parser-tag-ams-tests.js deleted file mode 100644 index 3ea39cb..0000000 --- a/tests/legacy-tests/parser-tag-ams-tests.js +++ /dev/null @@ -1,3181 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import {TagsFactory} from './node_modules/mathjax-full/js/input/tex/Tags.js'; - -class ParserTagAmsTest extends ParserTest { - - constructor() { - super(); - this.settings = {tags: 'ams'}; - } - -} - -let parserTest = new ParserTagAmsTest(); - - -// Simple -parserTest.runTest( - 'Single Expression', 'a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Align', '\\begin{align}a\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Split', '\\begin{split}a\\end{split}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left", - "rowspacing": "3pt", - "columnspacing": "0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MultLine', '\\begin{multline}a\\\\ b\\\\ c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Label Empty', '\\begin{align}a\\label{}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Label', '\\begin{align}a\\label{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -// Notags -parserTest.runTest( - 'Notag Align', '\\begin{align}a\\notag\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Notag Multline', '\\begin{multline}a\\\\ b\\\\ c\\notag\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Notag Tag', '\\begin{align}a\\tag{A}\\notag\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -// Reference -parserTest.runTest( - 'Ref', '\\begin{align}a\\label{A}\\end{align}\\ref{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Ref Unknown', '\\begin{align}a\\label{A}\\end{align}\\ref{B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "???"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Eqref', '\\begin{align}a\\label{A}\\end{align}\\eqref{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -// Complex: -parserTest.runTest( - 'Align Two labels', '\\begin{align}a=b\\label{A}\\\\ c&=d \\label{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(2)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -// Errors: -parserTest.runTest( - 'Illegal Tag Error', '\\begin{split}a\\tag{A}\\end{split}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\tag not allowed in split environment" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\tag not allowed in split environment"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Double Tag Error', '\\begin{align}a\\tag{A}\\tag{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Multiple \\tag" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Multiple \\tag"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Double Label Error', '\\begin{align}a\\label{A}\\label{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Multiple \\label" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Multiple \\label"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Duplicate Label Error', '\\begin{align}a\\label{A}\\\\ b\\label{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Label 'A' multiply defined" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Label 'A' multiply defined"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -// Tags -parserTest.runTest( - 'Tag Default', '\\begin{align}a\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Tag Named', '\\begin{align}a\\tag{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Tag Named Default', '\\begin{align}a\\tag{A}\\\\b\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-1"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Tag Named Named', '\\begin{align}a\\tag{A}\\\\b\\tag{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(B)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Label Default', '\\begin{align}a\\label{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Label Named', '\\begin{align}a\\tag{A}\\label{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Label Named Default', '\\begin{align}a\\tag{A}\\label{A}\\\\b\\label{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Label Named Named', '\\begin{align}a\\tag{A}\\label{A}\\\\b\\tag{B}\\label{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(B)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Ref Default', '\\begin{align}a\\label{A}\\end{align}\\ref{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Ref Named', '\\begin{align}a\\tag{A}\\label{A}\\end{align}\\ref{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Ref Named Default', '\\begin{align}a\\tag{A}\\label{A}\\\\b\\label{B}\\end{align}\\ref{A}\\ref{B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(1)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}], - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-B"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "1"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Ref Named Named', '\\begin{align}a\\tag{A}\\label{A}\\\\b\\tag{B}\\label{B}\\end{align}\\ref{A}\\ref{B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(B)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}], - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-B"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-tag-none-tests.js b/tests/legacy-tests/parser-tag-none-tests.js deleted file mode 100644 index 5d5666a..0000000 --- a/tests/legacy-tests/parser-tag-none-tests.js +++ /dev/null @@ -1,2854 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import {TagsFactory} from './node_modules/mathjax-full/js/input/tex/Tags.js'; - -class ParserTagNoneTest extends ParserTest { - - constructor() { - super(); - this.settings = {tags: 'none'}; - } - - runTest(name, expr, json) { - super.runTest(name, expr, json); - } -} - -let parserTest = new ParserTagNoneTest(); - - -// Simple -parserTest.runTest( - 'Single Expression', 'a', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Simple Tag', 'a\\tag{0}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-0"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(0)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Align', '\\begin{align}a\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Split', '\\begin{split}a\\end{split}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left", - "rowspacing": "3pt", - "columnspacing": "0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'MultLine', '\\begin{multline}a\\\\ b\\\\ c\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Label Empty', '\\begin{align}a\\label{}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Label', '\\begin{align}a\\label{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -// Notags -parserTest.runTest( - 'Notag Align', '\\begin{align}a\\notag\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Notag Multline', '\\begin{multline}a\\\\ b\\\\ c\\notag\\end{multline}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnwidth": "100%", - "width": "85%", - "rowspacing": ".5em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "left"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"columnalign": "right"}, - "inherited": {"columnalign": "center", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Notag Tag', '\\begin{align}a\\tag{A}\\notag\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -// Reference -parserTest.runTest( - 'Ref', '\\begin{align}a\\label{A}\\end{align}\\ref{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "???"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Ref Unknown', '\\begin{align}a\\label{A}\\end{align}\\ref{B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "???"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Eqref', '\\begin{align}a\\label{A}\\end{align}\\eqref{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(???)"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -// Complex: -parserTest.runTest( - 'Align Two labels', '\\begin{align}a=b\\label{A}\\\\ c&=d \\label{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "c"}]}], - "isInferred": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": []}, - {"kind": "mo", - "texClass": 3, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "form": "infix"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "="}], - "isEmbellished": true}, - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "d"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -// Errors: -parserTest.runTest( - 'Illegal Tag Error', '\\begin{split}a\\tag{A}\\end{split}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"\\tag not allowed in split environment" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "\\tag not allowed in split environment"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Double Tag Error', '\\begin{align}a\\tag{A}\\tag{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Multiple \\tag" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Multiple \\tag"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Double Label Error', '\\begin{align}a\\label{A}\\label{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Multiple \\label" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Multiple \\label"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Duplicate Label Error', '\\begin{align}a\\label{A}\\\\ b\\label{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Label 'A' multiply defined" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Label 'A' multiply defined"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - - -// Tags -parserTest.runTest( - 'Tag Default', '\\begin{align}a\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Tag Named', '\\begin{align}a\\tag{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Tag Named Default', '\\begin{align}a\\tag{A}\\\\b\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Tag Named Named', '\\begin{align}a\\tag{A}\\\\b\\tag{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(B)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Label Default', '\\begin{align}a\\label{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Label Named', '\\begin{align}a\\tag{A}\\label{A}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Label Named Default', '\\begin{align}a\\tag{A}\\label{A}\\\\b\\label{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Label Named Named', '\\begin{align}a\\tag{A}\\label{A}\\\\b\\tag{B}\\label{B}\\end{align}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(B)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Ref Default', '\\begin{align}a\\label{A}\\end{align}\\ref{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "???"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Ref Named', '\\begin{align}a\\tag{A}\\label{A}\\end{align}\\ref{A}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Ref Named Default', '\\begin{align}a\\tag{A}\\label{A}\\\\b\\label{B}\\end{align}\\ref{A}\\ref{B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}], - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "???"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -parserTest.runTest( - 'Ref Named Named', '\\begin{align}a\\tag{A}\\label{A}\\\\b\\tag{B}\\label{B}\\end{align}\\ref{A}\\ref{B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtable", - "texClass": 0, - "attributes": {"columnalign": "right left right left right left right left right left right left", - "rowspacing": "3pt", - "columnspacing": "0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em", - "displaystyle": true}, - "inherited": {"scriptlevel": 0}, - "properties": {"useHeight": 1}, - "childNodes": [ - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-A"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(A)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "a"}]}], - "isInferred": true}]}]}, - {"kind": "mlabeledtr", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right left right left right left right left right left right left", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtd", - "texClass": null, - "attributes": {"id": "mjx-eqn-B"}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "(B)"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}, - {"kind": "mtd", - "texClass": null, - "attributes": {}, - "inherited": {"columnalign": "right", - "rowalign": "baseline", - "displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "b"}]}], - "isInferred": true}]}]}]}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-A"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}], - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mrow", - "texClass": 0, - "attributes": {"class": "MathJax_ref", - "href": "#mjx-eqn-B"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}], - "isSpacelike": true}], - "isSpacelike": true}], - "isInferred": true}]} -); - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-test.js b/tests/legacy-tests/parser-test.js deleted file mode 100644 index 2894163..0000000 --- a/tests/legacy-tests/parser-test.js +++ /dev/null @@ -1,138 +0,0 @@ -import {mathjax} from './node_modules/mathjax-full/js/mathjax.js'; - -import {TeX} from './node_modules/mathjax-full/js/input/tex.js'; -import {SVG} from './node_modules/mathjax-full/js/output/svg.js'; -import {RegisterHTMLHandler} from "./node_modules/mathjax-full/js/handlers/html.js"; -import {chooseAdaptor} from "./node_modules/mathjax-full/js/adaptors/chooseAdaptor.js"; -import {JsonMmlVisitor} from './node_modules/mathjax-full/js/core/MmlTree/JsonMmlVisitor.js'; -import {STATE} from './node_modules/mathjax-full/js/core/MathItem.js'; - -import {TagsFactory} from './node_modules/mathjax-full/js/input/tex/Tags.js'; -import {MapHandler} from "./node_modules/mathjax-full/js/input/tex/MapHandler.js"; - -import {JsonTest, Test} from './test.js'; - -import {AllPackages} from './node_modules/mathjax-full/js/input/tex/AllPackages.js'; -import './node_modules/mathjax-full/js/input/tex/base/BaseConfiguration.js'; -import './node_modules/mathjax-full/js/input/tex/ams/AmsConfiguration.js'; - -let fs = require('fs'); - -RegisterHTMLHandler(chooseAdaptor()); - -export class ParserTest extends Test { - - json = {}; - packages = ['ams', 'base']; - settings = {tags: 'none'}; - output = false; - - constructor() { - super(); - console.log(this.constructor.name); - console.log('\u001B\u005B\u0033\u0034\u006D' + - 'Running tests from ' + this.constructor.name + - '\u001B\u005B\u0033\u0037\u006D'); - this.json.name = this.constructor.name; - this.json.packages = this.packages; - this.json.settings = this.settings; - this.json.tests = {}; - } - - outTest(name, tex, expected) { - this.json.tests[name] = {input: tex, expected: expected}; - } - - printTime() { - super.printTime(); - if (this.output && !Object.keys(this.runningTests).length) { - console.log('Out: ' + this.json.name); - this.json.name = this.constructor.name; - this.json.packages = this.packages; - this.json.settings = this.settings; - fs.writeFileSync('json3/' + this.json.name + '.json', JSON.stringify(this.json, null, 2)); - } - } - - // Tests exclusively the timing of the Translate method. - runTest(name, tex, expected) { - this.outTest(name, tex,expected); - this.test( - name, - t => { - mathjax.handleRetriesFor(function() { - let options = {packages: this.packages}; - Object.assign(options, this.settings); - let html = mathjax.document('', { - InputJax: new TeX(options), OutputJax: new SVG() - }); - let root = html.convert(tex, {end: STATE.CONVERT}); - let jv = new JsonMmlVisitor(); - root.setTeXclass(null); - let actual = jv.visitTree(root); - t.deepEqual(actual, expected, name); - }.bind(this)).catch(err => { - console.log(err.message); - console.log(err.stack.replace(/\n.*\/system\.js:(.|\n)*/, '')); - }); - } - ); - } - - ignoreTest(name, tex, expected) { - } - -} - - -export class ParserJsonTest extends JsonTest { - - packages = ['ams', 'base']; - settings = {tags: 'none'}; - name = ''; - - constructor(json) { - super(json); - this.packages = this.json['packages'] || this.packages; - this.name = this.json['name'] || this.name; - this.settings = this.json['settings'] || this.settings; - this.processSettings(); - console.log('\u001B\u005B\u0033\u0034\u006D' + - 'Running tests from ' + (this.name || this.constructor.name) + - '\u001B\u005B\u0033\u0037\u006D'); - } - - processSettings() { - // Processing regular expressions. - for (let set of ['digit', 'letter', 'special']) { - if (this.settings[set]) { - this.settings[set] = RegExp(this.settings[set]); - } - } - } - - - runTest(name, tex, expected, rest) { - this.test( - name, - t => { - mathjax.handleRetriesFor(function() { - let options = {packages: this.packages}; - Object.assign(options, this.settings); - let html = mathjax.document('', { - InputJax: new TeX(options), OutputJax: new SVG() - }); - let root = html.convert(tex, {end: STATE.CONVERT}); - let jv = new JsonMmlVisitor(); - root.setTeXclass(null); - let actual = jv.visitTree(root); - t.deepEqual(actual, expected, name); - }.bind(this)).catch(err => { - console.log(err.message); - console.log(err.stack.replace(/\n.*\/system\.js:(.|\n)*/, '')); - }); - } - ); - } - -} diff --git a/tests/legacy-tests/parser-unicode-tests.js b/tests/legacy-tests/parser-unicode-tests.js deleted file mode 100644 index 68b50e2..0000000 --- a/tests/legacy-tests/parser-unicode-tests.js +++ /dev/null @@ -1,440 +0,0 @@ -import {ParserTest} from './parser-test.js'; -import './node_modules/mathjax-full/js/input/tex/unicode/UnicodeConfiguration.js'; - -class ParserUnicodeTest extends ParserTest { - - constructor() { - super(); - this.packages = ['base', 'unicode']; - } - -} - -let parserTest = new ParserUnicodeTest(); - - -parserTest.runTest( - 'Unicode Dec', '\\unicode{8922}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"unicode": true}, - "childNodes": [ - {"kind": "text", - "text": "⋚"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - -parserTest.runTest( - 'Unicode Hex', '\\unicode{0x22DA}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"unicode": true}, - "childNodes": [ - {"kind": "text", - "text": "⋚"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - -parserTest.runTest( - 'Unicode Dec A', '\\unicode{65}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"unicode": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - -parserTest.runTest( - 'Unicode Hex A', '\\unicode{x41}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"unicode": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - -parserTest.runTest( - 'Unicode Scale', '\\unicode[.55,0.05]{x22D6}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"unicode": true}, - "childNodes": [ - {"kind": "text", - "text": "⋖"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - -parserTest.runTest( - 'Unicode Scale Font', '\\unicode[.55,0.05][Geramond]{x22D6}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {"fontfamily": "Geramond"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"unicode": true}, - "childNodes": [ - {"kind": "text", - "text": "⋖"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - -parserTest.runTest( - 'Unicode Font', '\\unicode[Garamond]{x22D6}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {"fontfamily": "Garamond"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"unicode": true}, - "childNodes": [ - {"kind": "text", - "text": "⋖"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - -parserTest.runTest( - 'Unicode Combined', '\\mbox{A}\\unicode{65}{B}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mstyle", - "texClass": 0, - "attributes": {"displaystyle": false, - "scriptlevel": 0}, - "inherited": {}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": false, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "A"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true}, - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"unicode": true}, - "childNodes": [ - {"kind": "text", - "text": "A"}], - "isSpacelike": true}, - {"kind": "TeXAtom", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mi", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0, - "mathvariant": "italic"}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "B"}]}], - "isInferred": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Unicode Surrogate Hex', '\\unicode{x1D5A0}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"unicode": true}, - "childNodes": [ - {"kind": "text", - "text": "𝖠"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - -parserTest.runTest( - 'Unicode Surrogate Dec', '\\unicode{120224}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"unicode": true}, - "childNodes": [ - {"kind": "text", - "text": "𝖠"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - -parserTest.runTest( - 'Unicode Blackboard', '\\unicode{x1D538}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"unicode": true}, - "childNodes": [ - {"kind": "text", - "text": "𝔸"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - -parserTest.runTest( - 'Unicode Blackboard Geramond', '\\unicode{x1D538}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {"unicode": true}, - "childNodes": [ - {"kind": "text", - "text": "𝔸"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}], - "isSpacelike": true} -); - - - -parserTest.printTime(); diff --git a/tests/legacy-tests/parser-verb-tests.js b/tests/legacy-tests/parser-verb-tests.js deleted file mode 100644 index 593fa34..0000000 --- a/tests/legacy-tests/parser-verb-tests.js +++ /dev/null @@ -1,343 +0,0 @@ -import {ParserTest} from './parser-test.js'; - -class ParserVerbTest extends ParserTest { - - constructor() { - super(); - } - -} - -let parserTest = new ParserVerbTest(); - - -parserTest.runTest( - 'Verb Plus ', '\\verb+{a}+', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Undefined control sequence \\verb" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Undefined control sequence \\verb"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Verb Plus Empty', '\\verb ++', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Undefined control sequence \\verb" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Undefined control sequence \\verb"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Verb Plus Space', '\\verb + +', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Undefined control sequence \\verb" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Undefined control sequence \\verb"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Verb Minus', '\\verb -{a}-', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Undefined control sequence \\verb" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Undefined control sequence \\verb"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Verb Minus Double', '\\verb -{a--', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Undefined control sequence \\verb" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Undefined control sequence \\verb"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Verb Error', '\\verb{a}', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Undefined control sequence \\verb" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Undefined control sequence \\verb"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.runTest( - 'Verb Missing Arg', '\\verb', - {"kind": "math", - "texClass": 0, - "attributes": {"display": "block"}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "merror", - "texClass": 0, - "attributes": { - "data-mjx-error":"Undefined control sequence \\verb" - }, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mrow", - "texClass": null, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "mtext", - "texClass": 0, - "attributes": {}, - "inherited": {"displaystyle": true, - "scriptlevel": 0}, - "properties": {}, - "childNodes": [ - {"kind": "text", - "text": "Undefined control sequence \\verb"}], - "isSpacelike": true}], - "isInferred": true, - "isSpacelike": true}]}], - "isInferred": true}]} -); - -parserTest.printTime(); diff --git a/tests/legacy-tests/test.js b/tests/legacy-tests/test.js deleted file mode 100644 index 2417d2d..0000000 --- a/tests/legacy-tests/test.js +++ /dev/null @@ -1,121 +0,0 @@ -/* globals System: true */ - -let test = require('tape'); -let fs = require('fs'); - -export class Test { - - failedTests = []; - failed = false; - time = 0; - - constructor() { - /** - * @type {Object.} - */ - this.runningTests = {}; - - /** - * @type {Object.} - */ - this.concludedTests = {}; - - this.createStream(); - } - - - /** - * @param {string} name The name of the test. - * @private - */ - startTest(name) { - this.concludedTests[name] = (new Date()).getTime(); - } - - /** - * @param {string} name The name of the test. - * @private - */ - registerTest(name) { - this.runningTests[name] = true; - } - - stopTest(name) { - this.concludedTests[name] = - (new Date()).getTime() - this.concludedTests[name]; - delete this.runningTests[name]; - } - - - printTime() { - if (Object.keys(this.runningTests).length) { - setTimeout(this.printTime.bind(this), 100); - return; - } - for (var test in this.concludedTests) { - this.time += this.concludedTests[test]; - delete this.concludedTests[test]; - } - process.stdout.write(this.constructor.name + ': ' + this.time + 'ms\n'); - } - - test(name, func) { - this.registerTest(name); - test(name, function(t) { - this.startTest(name); - t.plan(1); - func(t); - this.stopTest(name); - }.bind(this)); - } - - createStream() { - test.createStream({ objectMode: true }).on('data', result => { - if (result.type !== 'assert') return; - process.stdout.write('Running test ' + result.name + '\t' + - (result.ok ? - ('\u001B\u005B\u0033\u0032\u006D' + 'PASS' + - '\u001B\u005B\u0033\u0037\u006D') : - ('\u001B\u005B\u0033\u0031\u006D' + 'FAIL' + - '\u001B\u005B\u0033\u0037\u006D')) + - '\n'); - if (result.ok) return; - this.failed = true; - this.failedTests.push(result.name); - process.stdout.write('Actual: \n'); - process.stdout.write(JSON.stringify(result.actual) + '\n'); - process.stdout.write('Expected: \n'); - process.stdout.write(JSON.stringify(result.expected) + '\n'); - }); - } - - runTest(name, input, expected, rest) {} - -} - - -export class JsonTest extends Test { - - json = {}; - name = ''; - tests = {}; - - constructor(json) { - super(); - this.json = json; - this.parseJson(); - } - - parseJson() { - this.name = this.json.name || ''; - this.tests = this.json.tests || {}; - } - - runTests() { - for (const [name, {input, expected, ...rest}] of Object.entries(this.tests)) { - this.runTest(name, input, expected, rest); - } - this.printTime(); - } - -} diff --git a/tests/legacy-tests/tex-keyval-tests.js b/tests/legacy-tests/tex-keyval-tests.js deleted file mode 100644 index 41b82a2..0000000 --- a/tests/legacy-tests/tex-keyval-tests.js +++ /dev/null @@ -1,234 +0,0 @@ -import ParseUtil from './node_modules/mathjax-full/js/input/tex/ParseUtil.js'; -import {Test} from './test.js'; - - -class KeyvalTest extends Test { - - runTest(name, options, expected) { - this.test( - name, - t => { - try { - let keyval = ParseUtil.keyvalOptions(options); - t.deepEqual(keyval, expected, name); - } catch (e) { - t.deepEqual(e.message, expected, name); - } - } - ); - } - -} - -let keyvalTest = new KeyvalTest(); - -keyvalTest.runTest( - 'Keyval Trival', 'key={{}}', - {key: true} -); - -keyvalTest.runTest( - 'Keyval Trivial 2', 'key1={{}},key2={{{{}}}}', - {key1: true, key2: true} -); - - -keyvalTest.runTest( - 'Keyval Trival3', 'key={{}{}}', - {key: '{}{}'} -); - -keyvalTest.runTest( - 'Keyval Trivial 4', 'key1= { { } },key2= {{ { { }} } }', - {key1: true, key2: true} -); - - -keyvalTest.runTest( - 'Keyval Single', 'key=a', - {key: 'a'} -); - -keyvalTest.runTest( - 'Keyval Double', 'key1=a,key2=b', - {key1: 'a', key2: 'b'} -); - -keyvalTest.runTest( - 'Keyval Space', 'key1 = a , key2 = b', - {key1: 'a', key2: 'b'} -); - -keyvalTest.runTest( - 'Keyval Single True', 'key1', - {key1: true} -); - -keyvalTest.runTest( - 'Keyval Double True', 'key1,key2', - {key1: true, key2: true} -); - -keyvalTest.runTest( - 'Keyval Mixed', 'key1=a,key2,key3=c', - {key1: 'a', key2: true, key3: 'c'} -); - -keyvalTest.runTest( - 'Keyval Empty Comma Begin', ',key1=a,key2,key3=c', - {key1: 'a', key2: true, key3: 'c'} -); - -keyvalTest.runTest( - 'Keyval Empty Comma Mid', 'key1=a,,key2,key3=c', - {key1: 'a', key2: true, key3: 'c'} -); - -keyvalTest.runTest( - 'Keyval Empty Comma End', 'key1=a,key2,key3=c,', - {key1: 'a', key2: true, key3: 'c'} -); - -keyvalTest.runTest( - 'Keyval Empty Comma Multi', ',,key1=a,,,,key2,key3=c,,', - {key1: 'a', key2: true, key3: 'c'} -); - -keyvalTest.runTest( - 'Keyval Braces', 'key1={a},key2=b', - {key1: 'a', key2: 'b'} -); - -keyvalTest.runTest( - 'Keyval Braces 2', 'key1={{a}},key2=b', - {key1: 'a', key2: 'b'} -); - -keyvalTest.runTest( - 'Keyval Braces 3', 'key1={{{a}}},key2=b', - {key1: 'a', key2: 'b'} -); - - -keyvalTest.runTest( - 'Keyval Braces Comma', 'key1={a,b,c},key2=b', - {key1: 'a,b,c', key2: 'b'} -); - - -keyvalTest.runTest( - 'Keyval Braces Equal', 'key1={a=c},key2=b', - {key1: 'a=c', key2: 'b'} -); - - -keyvalTest.runTest( - 'Keyval Braces Comma Equal', 'key1={a=c,b},key2=b', - {key1: 'a=c,b', key2: 'b'} -); - -keyvalTest.runTest( - 'Keyval Braces Simple 1', 'key1={{a}}', - {key1: 'a'} -); - -keyvalTest.runTest( - 'Keyval Braces Simple 2', 'key1={{a{b}}}', - {key1: 'a{b}'} -); - -keyvalTest.runTest( - 'Keyval Braces Simple 3', 'key1={{a={b}}}', - {key1: 'a={b}'} -); - -keyvalTest.runTest( - 'Keyval Braces Prefix', 'key1={{}a}', - {key1: '{}a'} -); - -keyvalTest.runTest( - 'Keyval Braces Prefix 2', 'key1={{{}}a}', - {key1: '{{}}a'} -); - -keyvalTest.runTest( - 'Keyval Braces Prefix 3', 'key1={{}{}a}', - {key1: '{}{}a'} -); - -keyvalTest.runTest( - 'Keyval Braces Prefix 4', 'key1={{{}{}a}}', - {key1: '{}{}a'} -); - -keyvalTest.runTest( - 'Keyval Braces Prefix 5', 'key1={{}{a}}', - {key1: '{}{a}'} -); - -keyvalTest.runTest( - 'Keyval Braces Prefix 6', 'key1={{{}}{a}}', - {key1: '{{}}{a}'} -); - -keyvalTest.runTest( - 'Keyval Braces Mixed 1', 'key1={{a},{b}},key2=b', - {key1: '{a},{b}', key2: 'b'} -); - -keyvalTest.runTest( - 'Keyval Braces Mixed 2', 'key1={{{a},{b}}},key2=b', - {key1: '{a},{b}', key2: 'b'} -); - -keyvalTest.runTest( - 'Keyval Braces Mixed 3', 'key1={{{a}},{{b},{c}}},key2=b', - {key1: '{{a}},{{b},{c}}', key2: 'b'} -); - -keyvalTest.runTest( - 'Keyval Braces Mixed 3 Spaces', 'key1 = { { { a}},{{b},{c} } } ,key2=b', - {key1: '{ { a}},{{b},{c} }', key2: 'b'} -); - -keyvalTest.runTest( - 'Keyval Braces Mixed 4 Spaces', 'key1 = { { { { { { a}},{{b},{c} } } } } } ,key2=b', - {key1: '{ { a}},{{b},{c} }', key2: 'b'} -); - -keyvalTest.runTest( - 'Keyval Braces Equals Mixed 3', 'key1={{{a}}={{b},{c}}},key2=b', - {key1: '{{a}}={{b},{c}}', key2: 'b'} -); - - -keyvalTest.runTest( - 'Keyval Error 1', 'key={{a}', - 'Extra open brace or missing close brace' -); - -keyvalTest.runTest( - 'Keyval Error 2', 'key={{a}{}', - 'Extra open brace or missing close brace' -); - -keyvalTest.runTest( - 'Keyval Error 3', 'key1=}, key2={', - 'Extra open brace or missing close brace' -); - -keyvalTest.runTest( - 'Keyval Unbalanced 1', 'key={a}}', - {key: 'a}'} -); - -keyvalTest.runTest( - 'Keyval Unbalanced 2', 'key1={a}}, key2=}b', - {key1: 'a}', key2: '}b'} -); - -keyvalTest.runTest( - 'Keyval Unbalanced 3', 'key1=}, key2={}}', - {key1: true, key2: true} -); From 22c39234a67f04c531907cb33d54f71aae888826 Mon Sep 17 00:00:00 2001 From: zorkow Date: Fri, 9 Oct 2020 18:46:20 +0100 Subject: [PATCH 2/8] Starts using Jest for tests. --- tests/.babelrc | 4 + tests/jest.config.js | 195 ++++++++++++++++++++++++++++++ tests/json/ParserActionTest.json | 2 +- tests/package.json | 9 +- tests/src/other-test.js | 14 +-- tests/src/parser-test.js | 21 ++-- tests/src/parser.test.js | 47 ++++++++ tests/src/test-factory.js | 2 +- tests/src/test.js | 16 +-- tests/tests.sh | 201 ++++++++++++++++--------------- 10 files changed, 381 insertions(+), 130 deletions(-) create mode 100644 tests/.babelrc create mode 100644 tests/jest.config.js create mode 100644 tests/src/parser.test.js diff --git a/tests/.babelrc b/tests/.babelrc new file mode 100644 index 0000000..0121771 --- /dev/null +++ b/tests/.babelrc @@ -0,0 +1,4 @@ +{ + "presets": ["@babel/preset-env"], + "plugins": ["transform-class-properties"] +} diff --git a/tests/jest.config.js b/tests/jest.config.js new file mode 100644 index 0000000..ed55501 --- /dev/null +++ b/tests/jest.config.js @@ -0,0 +1,195 @@ +// For a detailed explanation regarding each configuration property, visit: +// https://jestjs.io/docs/en/configuration.html + +module.exports = { + // All imported modules in your tests should be mocked automatically + // automock: false, + + // Stop running tests after `n` failures + // bail: 0, + + // The directory where Jest should store its cached dependency information + // cacheDirectory: "/tmp/jest_rs", + + // Automatically clear mock calls and instances between every test + clearMocks: true, + + // Indicates whether the coverage information should be collected while executing the test + // collectCoverage: false, + + // An array of glob patterns indicating a set of files for which coverage information should be collected + // collectCoverageFrom: undefined, + + // The directory where Jest should output its coverage files + coverageDirectory: "coverage", + + // An array of regexp pattern strings used to skip coverage collection + // coveragePathIgnorePatterns: [ + // "/node_modules/" + // ], + + // Indicates which provider should be used to instrument code for coverage + coverageProvider: "v8", + + // A list of reporter names that Jest uses when writing coverage reports + // coverageReporters: [ + // "json", + // "text", + // "lcov", + // "clover" + // ], + + // An object that configures minimum threshold enforcement for coverage results + // coverageThreshold: undefined, + + // A path to a custom dependency extractor + // dependencyExtractor: undefined, + + // Make calling deprecated APIs throw helpful error messages + // errorOnDeprecated: false, + + // Force coverage collection from ignored files using an array of glob patterns + // forceCoverageMatch: [], + + // A path to a module which exports an async function that is triggered once before all test suites + // globalSetup: undefined, + + // A path to a module which exports an async function that is triggered once after all test suites + // globalTeardown: undefined, + + // A set of global variables that need to be available in all test environments + // globals: {}, + + // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. + // maxWorkers: "50%", + + // An array of directory names to be searched recursively up from the requiring module's location + // moduleDirectories: [ + // "node_modules" + // ], + + // An array of file extensions your modules use + // moduleFileExtensions: [ + // "js", + // "json", + // "jsx", + // "ts", + // "tsx", + // "node" + // ], + + // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module + // moduleNameMapper: {}, + + // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader + // modulePathIgnorePatterns: [], + + // Activates notifications for test results + // notify: false, + + // An enum that specifies notification mode. Requires { notify: true } + // notifyMode: "failure-change", + + // A preset that is used as a base for Jest's configuration + // preset: undefined, + + // Run tests from one or more projects + // projects: undefined, + + // Use this configuration option to add custom reporters to Jest + // reporters: undefined, + + // Automatically reset mock state between every test + // resetMocks: false, + + // Reset the module registry before running each individual test + // resetModules: false, + + // A path to a custom resolver + // resolver: undefined, + + // Automatically restore mock state between every test + // restoreMocks: false, + + // The root directory that Jest should scan for tests and modules within + // rootDir: undefined, + + // A list of paths to directories that Jest should use to search for files in + // roots: [ + // "" + // ], + + // Allows you to use a custom runner instead of Jest's default test runner + // runner: "jest-runner", + + // The paths to modules that run some code to configure or set up the testing environment before each test + // setupFiles: [], + + // A list of paths to modules that run some code to configure or set up the testing framework before each test + // setupFilesAfterEnv: [], + + // The number of seconds after which a test is considered as slow and reported as such in the results. + // slowTestThreshold: 5, + + // A list of paths to snapshot serializer modules Jest should use for snapshot testing + // snapshotSerializers: [], + + // The test environment that will be used for testing + testEnvironment: "node", + + // Options that will be passed to the testEnvironment + // testEnvironmentOptions: {}, + + // Adds a location field to test results + // testLocationInResults: false, + + // The glob patterns Jest uses to detect test files + // testMatch: [ + // "**/__tests__/**/*.[jt]s?(x)", + // "**/?(*.)+(spec|test).[tj]s?(x)" + // ], + + // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped + // testPathIgnorePatterns: [ + // "/node_modules/" + // ], + + // The regexp pattern or array of patterns that Jest uses to detect test files + // testRegex: [], + + // This option allows the use of a custom results processor + // testResultsProcessor: undefined, + + // This option allows use of a custom test runner + // testRunner: "jasmine2", + + // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href + // testURL: "http://localhost", + + // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout" + // timers: "real", + + // A map from regular expressions to paths to transformers + // transform: undefined, + "transform": { + "^.+\\.jsx?$": "babel-jest", + }, + + // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation + // transformIgnorePatterns: [ + // "/node_modules/", + // "\\.pnp\\.[^\\/]+$" + // ], + + // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them + // unmockedModulePathPatterns: undefined, + + // Indicates whether each individual test should be reported during the run + // verbose: undefined, + + // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode + // watchPathIgnorePatterns: [], + + // Whether to use watchman for file crawling + // watchman: true, +}; diff --git a/tests/json/ParserActionTest.json b/tests/json/ParserActionTest.json index c9a9b94..bbb7a27 100644 --- a/tests/json/ParserActionTest.json +++ b/tests/json/ParserActionTest.json @@ -259,4 +259,4 @@ } } } -} \ No newline at end of file +} diff --git a/tests/package.json b/tests/package.json index 2c846d6..fc8be0c 100644 --- a/tests/package.json +++ b/tests/package.json @@ -3,7 +3,7 @@ "version": "0.2.0", "description": "Test framework for MathJax v3 TeX parser.", "scripts": { - "test": "./tests.sh" + "test": "jest" }, "maintainers": [ "Volker Sorge (http://mathjax.org)" @@ -14,7 +14,10 @@ }, "license": "Apache-2.0", "dependencies": { - "mathjax-full": "^3.1.2", - "tape": "^5.0.1" + "@babel/preset-env": "^7.11.5", + "babel-jest": "^26.5.2", + "babel-plugin-transform-class-properties": "^6.24.1", + "jest": "^26.5.2", + "mathjax-full": "^3.1.2" } } diff --git a/tests/src/other-test.js b/tests/src/other-test.js index ce9d129..3b478d8 100644 --- a/tests/src/other-test.js +++ b/tests/src/other-test.js @@ -29,14 +29,14 @@ import ParseUtil from '../node_modules/mathjax-full/js/input/tex/ParseUtil.js'; export class KeyvalTest extends JsonTest { runTest(name, input, expected) { - this.test( - name, - t => { - try { - let keyval = ParseUtil.keyvalOptions(input); - t.deepEqual(keyval, expected, name); + test( + name, + () => { + try { + let keyval = ParseUtil.keyvalOptions(input); + expect(keyval).toEqual(expected); } catch (e) { - t.deepEqual(e.message, expected, name); + expect(e.message).toEqual(expected); } } ); diff --git a/tests/src/parser-test.js b/tests/src/parser-test.js index c992eb0..d60ab92 100644 --- a/tests/src/parser-test.js +++ b/tests/src/parser-test.js @@ -59,9 +59,9 @@ export class ParserJsonTest extends JsonTest { this.name = this.json['name'] || this.name; this.settings = this.json['settings'] || this.settings; this.processSettings(); - console.log('\u001B\u005B\u0033\u0034\u006D' + - 'Running tests from ' + (this.name || this.constructor.name) + - '\u001B\u005B\u0033\u0037\u006D'); + // console.log('\u001B\u005B\u0033\u0034\u006D' + + // 'Running tests from ' + (this.name || this.constructor.name) + + // '\u001B\u005B\u0033\u0037\u006D'); } processSettings() { @@ -83,20 +83,18 @@ export class ParserJsonTest extends JsonTest { * @override */ runTest(name, tex, expected, rest) { - this.test( + test( name, - t => { - mathjax.handleRetriesFor(function() { + () => { + return mathjax.handleRetriesFor(function() { let options = {packages: this.packages}; Object.assign(options, this.settings); let root = this.document(options).convert(tex, {end: STATE.CONVERT}); let jv = new JsonMmlVisitor(); root.setTeXclass(null); - let actual = jv.visitTree(root); - t.deepEqual(actual, expected, name); - }.bind(this)).catch(err => { - console.log(err.message); - console.log(err.stack.replace(/\n.*\/system\.js:(.|\n)*/, '')); + return jv.visitTree(root); + }.bind(this)).then(data => { + expect(data).toEqual(expected); }); } ); @@ -116,6 +114,7 @@ export class ParserOutputTest extends ParserJsonTest { * @override */ document(options) { + console.log('In SVG'); return mathjax.document('', { InputJax: new TeX(options), OutputJax: new SVG() }); diff --git a/tests/src/parser.test.js b/tests/src/parser.test.js new file mode 100644 index 0000000..67a2582 --- /dev/null +++ b/tests/src/parser.test.js @@ -0,0 +1,47 @@ +/************************************************************* + * + * Copyright (c) 2020 The MathJax Consortium + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +/** + * @fileoverview The current test runner. + * + * @author v.sorge@mathjax.org (Volker Sorge) + */ + +import {TestFactory} from './test-factory.js'; +let process = require('process'); + + +let file = null; + +if (process.argv.length > 2) { + let last = process.argv[process.argv.length - 1]; + if (!last.match(/^--/) && last.match(/\.json/)) { + file = last; + } +} + +if (file) { + TestFactory.create(file).runTests(); + process.exit; +} + +if (!file) { + let tests = TestFactory.allParserTests(); + tests.forEach( x => x.runTests()); +} + diff --git a/tests/src/test-factory.js b/tests/src/test-factory.js index 5668a4d..01aa5b4 100644 --- a/tests/src/test-factory.js +++ b/tests/src/test-factory.js @@ -58,7 +58,7 @@ export class TestFactory { if (fs.lstatSync(TestFactory.testDir).isDirectory()) { files = fs.readdirSync(TestFactory.testDir).filter(x => x.match(/\.json$/)); } - let tests = files.filter( + let tests = files.map( file => TestFactory.create(TestFactory.testDir + '/' + file)); return tests; } diff --git a/tests/src/test.js b/tests/src/test.js index eab10c5..f94695d 100644 --- a/tests/src/test.js +++ b/tests/src/test.js @@ -24,7 +24,6 @@ /* globals System: true */ -let test = require('tape'); let fs = require('fs'); export class Test { @@ -44,7 +43,7 @@ export class Test { */ this.concludedTests = {}; - this.createStream(); + // this.createStream(); } @@ -80,7 +79,7 @@ export class Test { this.time += this.concludedTests[test]; delete this.concludedTests[test]; } - process.stdout.write(this.constructor.name + ': ' + this.time + 'ms\n'); + process.stdout.write(this.name + ': ' + this.time + 'ms\n'); } test(name, func) { @@ -136,10 +135,13 @@ export class JsonTest extends Test { } runTests() { - for (const [name, {input, expected, ...rest}] of Object.entries(this.tests)) { - this.runTest(name, input, expected, rest); - } - this.printTime(); + describe( + 'Running tests from ' + this.name, () => + { + for (const [name, {input, expected, ...rest}] of Object.entries(this.tests)) { + this.runTest(name, input, expected, rest); + }}); + // this.printTime(); } } diff --git a/tests/tests.sh b/tests/tests.sh index ad31909..a459f3b 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -1,113 +1,114 @@ #!/bin/bash -NODE="node -r esm" +NODE="npx jest" # node -r esm +NAME="src/parser.test.js" # src/run-test.js DIR=`dirname $0` JSON=$DIR/json if [ $# -eq 0 ]; then - $NODE src/run-test.js $JSON/KeyvalTest.json + $NODE $NAME $JSON/KeyvalTest.json ## $NODE $DIR/src/tex-keyval-tests.js - $NODE src/run-test.js $JSON/ParserActionTest.json + $NODE $NAME $JSON/ParserActionTest.json ## Reordered - $NODE src/run-test.js $JSON/ParserAmsTest.json - $NODE src/run-test.js $JSON/ParserAmsCDTest.json - $NODE src/run-test.js $JSON/ParserAmsComplexTest.json - $NODE src/run-test.js $JSON/ParserAmsenvTest.json - $NODE src/run-test.js $JSON/ParserAmserrorTest.json - $NODE src/run-test.js $JSON/ParserArrayTest.json - $NODE src/run-test.js $JSON/ParserBaseTest.json - $NODE src/run-test.js $JSON/ParserBboxTest.json - $NODE src/run-test.js $JSON/ParserBoldsymbolTest.json - $NODE src/run-test.js $JSON/ParserBraketTest.json - $NODE src/run-test.js $JSON/ParserBussproofsRegInfTest.json - $NODE src/run-test.js $JSON/ParserBussproofsRegProofsTest.json - $NODE src/run-test.js $JSON/ParserCancelTest.json - $NODE src/run-test.js $JSON/ParserColorV2Test.json - $NODE src/run-test.js $JSON/ParserComplexTest.json - $NODE src/run-test.js $JSON/ParserDigitsEuropeanTest.json - $NODE src/run-test.js $JSON/ParserDigitsTest.json - $NODE src/run-test.js $JSON/ParserEncloseTest.json - $NODE src/run-test.js $JSON/ParserErrorTest.json - $NODE src/run-test.js $JSON/ParserExtpfeilTest.json - $NODE src/run-test.js $JSON/ParserFencedTest.json - $NODE src/run-test.js $JSON/ParserHtmlTest.json - $NODE src/run-test.js $JSON/ParserInternalMathTest.json + $NODE $NAME $JSON/ParserAmsTest.json + $NODE $NAME $JSON/ParserAmsCDTest.json + $NODE $NAME $JSON/ParserAmsComplexTest.json + $NODE $NAME $JSON/ParserAmsenvTest.json + $NODE $NAME $JSON/ParserAmserrorTest.json + $NODE $NAME $JSON/ParserArrayTest.json + $NODE $NAME $JSON/ParserBaseTest.json + $NODE $NAME $JSON/ParserBboxTest.json + $NODE $NAME $JSON/ParserBoldsymbolTest.json + $NODE $NAME $JSON/ParserBraketTest.json + $NODE $NAME $JSON/ParserBussproofsRegInfTest.json + $NODE $NAME $JSON/ParserBussproofsRegProofsTest.json + $NODE $NAME $JSON/ParserCancelTest.json + $NODE $NAME $JSON/ParserColorV2Test.json + $NODE $NAME $JSON/ParserComplexTest.json + $NODE $NAME $JSON/ParserDigitsEuropeanTest.json + $NODE $NAME $JSON/ParserDigitsTest.json + $NODE $NAME $JSON/ParserEncloseTest.json + $NODE $NAME $JSON/ParserErrorTest.json + $NODE $NAME $JSON/ParserExtpfeilTest.json + $NODE $NAME $JSON/ParserFencedTest.json + $NODE $NAME $JSON/ParserHtmlTest.json + $NODE $NAME $JSON/ParserInternalMathTest.json ## Reordered - $NODE src/run-test.js $JSON/ParserConfigMacrosTest.json - $NODE src/run-test.js $JSON/ParserMathchoiceTest.json - $NODE src/run-test.js $JSON/ParserMatrixTest.json - $NODE src/run-test.js $JSON/ParserMhchemTest0.json - $NODE src/run-test.js $JSON/ParserMhchemTest1.json - $NODE src/run-test.js $JSON/ParserMhchemTest2.json - $NODE src/run-test.js $JSON/ParserMhchemTest3.json - $NODE src/run-test.js $JSON/ParserMhchemTest4.json - $NODE src/run-test.js $JSON/ParserMhchemTest5.json - $NODE src/run-test.js $JSON/ParserMhchemTest6.json - $NODE src/run-test.js $JSON/ParserMhchemTest7.json - $NODE src/run-test.js $JSON/ParserMhchemTest8.json - $NODE src/run-test.js $JSON/ParserMhchemTest9.json - $NODE src/run-test.js $JSON/ParserMovlimTest.json - $NODE src/run-test.js $JSON/ParserMultirelTest.json - $NODE src/run-test.js $JSON/ParserMultlineShoveTest.json - $NODE src/run-test.js $JSON/ParserNewcommandErrorTest.json - $NODE src/run-test.js $JSON/ParserNewcommandTest.json - $NODE src/run-test.js $JSON/ParserNoErrorTest.json - $NODE src/run-test.js $JSON/ParserNoundefinedTest.json - $NODE src/run-test.js $JSON/ParserOtherTest.json - $NODE src/run-test.js $JSON/ParserPhysicsTest1_0.json - $NODE src/run-test.js $JSON/ParserPhysicsTest1_1.json - $NODE src/run-test.js $JSON/ParserPhysicsTest1_2.json - $NODE src/run-test.js $JSON/ParserPhysicsTest1_3.json - $NODE src/run-test.js $JSON/ParserPhysicsTest1_4.json - $NODE src/run-test.js $JSON/ParserPhysicsTest1_5.json - $NODE src/run-test.js $JSON/ParserPhysicsTest1_6.json - $NODE src/run-test.js $JSON/ParserPhysicsTest1_7.json - $NODE src/run-test.js $JSON/ParserPhysicsTest2_0.json - $NODE src/run-test.js $JSON/ParserPhysicsTest2_1.json - $NODE src/run-test.js $JSON/ParserPhysicsTest2_2.json - $NODE src/run-test.js $JSON/ParserPhysicsTest2_3.json - $NODE src/run-test.js $JSON/ParserPhysicsTest2_4.json - $NODE src/run-test.js $JSON/ParserPhysicsTest2_5.json - $NODE src/run-test.js $JSON/ParserPhysicsTest2_6.json - $NODE src/run-test.js $JSON/ParserPhysicsTest2_7.json - $NODE src/run-test.js $JSON/ParserPhysicsTest3_0.json - $NODE src/run-test.js $JSON/ParserPhysicsTest3_1.json - $NODE src/run-test.js $JSON/ParserPhysicsTest3_2.json - $NODE src/run-test.js $JSON/ParserPhysicsTest3_3.json - $NODE src/run-test.js $JSON/ParserPhysicsTest3_4.json - $NODE src/run-test.js $JSON/ParserPhysicsTest3_5.json - $NODE src/run-test.js $JSON/ParserPhysicsTest3_6.json - $NODE src/run-test.js $JSON/ParserPhysicsTest3_7.json - $NODE src/run-test.js $JSON/ParserPhysicsTest4_0.json - $NODE src/run-test.js $JSON/ParserPhysicsTest5_0.json - $NODE src/run-test.js $JSON/ParserPhysicsTest5_1.json - $NODE src/run-test.js $JSON/ParserPhysicsTest5_2.json - $NODE src/run-test.js $JSON/ParserPhysicsTest5_3.json - $NODE src/run-test.js $JSON/ParserPhysicsTest5_4.json - $NODE src/run-test.js $JSON/ParserPhysicsTest5_5.json - $NODE src/run-test.js $JSON/ParserPhysicsTest6_0.json - $NODE src/run-test.js $JSON/ParserPhysicsTest6_1.json - $NODE src/run-test.js $JSON/ParserPhysicsTest6_2.json - $NODE src/run-test.js $JSON/ParserPhysicsTest6_3.json - $NODE src/run-test.js $JSON/ParserPhysicsTest6_4.json - $NODE src/run-test.js $JSON/ParserPhysicsTest7_0.json - $NODE src/run-test.js $JSON/ParserPhysicsTest7_10.json - $NODE src/run-test.js $JSON/ParserPhysicsTest7_11.json - $NODE src/run-test.js $JSON/ParserPhysicsTest7_1.json - $NODE src/run-test.js $JSON/ParserPhysicsTest7_2.json - $NODE src/run-test.js $JSON/ParserPhysicsTest7_3.json - $NODE src/run-test.js $JSON/ParserPhysicsTest7_4.json - $NODE src/run-test.js $JSON/ParserPhysicsTest7_5.json - $NODE src/run-test.js $JSON/ParserPhysicsTest7_6.json - $NODE src/run-test.js $JSON/ParserPhysicsTest7_7.json - $NODE src/run-test.js $JSON/ParserPhysicsTest7_8.json - $NODE src/run-test.js $JSON/ParserPhysicsTest7_9.json - $NODE src/run-test.js $JSON/ParserTagAllTest.json - $NODE src/run-test.js $JSON/ParserTagAmsTest.json - $NODE src/run-test.js $JSON/ParserTagNoneTest.json - $NODE src/run-test.js $JSON/ParserUnicodeTest.json - $NODE src/run-test.js $JSON/ParserVerbTest.json + $NODE $NAME $JSON/ParserConfigMacrosTest.json + $NODE $NAME $JSON/ParserMathchoiceTest.json + $NODE $NAME $JSON/ParserMatrixTest.json + $NODE $NAME $JSON/ParserMhchemTest0.json + $NODE $NAME $JSON/ParserMhchemTest1.json + $NODE $NAME $JSON/ParserMhchemTest2.json + $NODE $NAME $JSON/ParserMhchemTest3.json + $NODE $NAME $JSON/ParserMhchemTest4.json + $NODE $NAME $JSON/ParserMhchemTest5.json + $NODE $NAME $JSON/ParserMhchemTest6.json + $NODE $NAME $JSON/ParserMhchemTest7.json + $NODE $NAME $JSON/ParserMhchemTest8.json + $NODE $NAME $JSON/ParserMhchemTest9.json + $NODE $NAME $JSON/ParserMovlimTest.json + $NODE $NAME $JSON/ParserMultirelTest.json + $NODE $NAME $JSON/ParserMultlineShoveTest.json + $NODE $NAME $JSON/ParserNewcommandErrorTest.json + $NODE $NAME $JSON/ParserNewcommandTest.json + $NODE $NAME $JSON/ParserNoErrorTest.json + $NODE $NAME $JSON/ParserNoundefinedTest.json + $NODE $NAME $JSON/ParserOtherTest.json + $NODE $NAME $JSON/ParserPhysicsTest1_0.json + $NODE $NAME $JSON/ParserPhysicsTest1_1.json + $NODE $NAME $JSON/ParserPhysicsTest1_2.json + $NODE $NAME $JSON/ParserPhysicsTest1_3.json + $NODE $NAME $JSON/ParserPhysicsTest1_4.json + $NODE $NAME $JSON/ParserPhysicsTest1_5.json + $NODE $NAME $JSON/ParserPhysicsTest1_6.json + $NODE $NAME $JSON/ParserPhysicsTest1_7.json + $NODE $NAME $JSON/ParserPhysicsTest2_0.json + $NODE $NAME $JSON/ParserPhysicsTest2_1.json + $NODE $NAME $JSON/ParserPhysicsTest2_2.json + $NODE $NAME $JSON/ParserPhysicsTest2_3.json + $NODE $NAME $JSON/ParserPhysicsTest2_4.json + $NODE $NAME $JSON/ParserPhysicsTest2_5.json + $NODE $NAME $JSON/ParserPhysicsTest2_6.json + $NODE $NAME $JSON/ParserPhysicsTest2_7.json + $NODE $NAME $JSON/ParserPhysicsTest3_0.json + $NODE $NAME $JSON/ParserPhysicsTest3_1.json + $NODE $NAME $JSON/ParserPhysicsTest3_2.json + $NODE $NAME $JSON/ParserPhysicsTest3_3.json + $NODE $NAME $JSON/ParserPhysicsTest3_4.json + $NODE $NAME $JSON/ParserPhysicsTest3_5.json + $NODE $NAME $JSON/ParserPhysicsTest3_6.json + $NODE $NAME $JSON/ParserPhysicsTest3_7.json + $NODE $NAME $JSON/ParserPhysicsTest4_0.json + $NODE $NAME $JSON/ParserPhysicsTest5_0.json + $NODE $NAME $JSON/ParserPhysicsTest5_1.json + $NODE $NAME $JSON/ParserPhysicsTest5_2.json + $NODE $NAME $JSON/ParserPhysicsTest5_3.json + $NODE $NAME $JSON/ParserPhysicsTest5_4.json + $NODE $NAME $JSON/ParserPhysicsTest5_5.json + $NODE $NAME $JSON/ParserPhysicsTest6_0.json + $NODE $NAME $JSON/ParserPhysicsTest6_1.json + $NODE $NAME $JSON/ParserPhysicsTest6_2.json + $NODE $NAME $JSON/ParserPhysicsTest6_3.json + $NODE $NAME $JSON/ParserPhysicsTest6_4.json + $NODE $NAME $JSON/ParserPhysicsTest7_0.json + $NODE $NAME $JSON/ParserPhysicsTest7_10.json + $NODE $NAME $JSON/ParserPhysicsTest7_11.json + $NODE $NAME $JSON/ParserPhysicsTest7_1.json + $NODE $NAME $JSON/ParserPhysicsTest7_2.json + $NODE $NAME $JSON/ParserPhysicsTest7_3.json + $NODE $NAME $JSON/ParserPhysicsTest7_4.json + $NODE $NAME $JSON/ParserPhysicsTest7_5.json + $NODE $NAME $JSON/ParserPhysicsTest7_6.json + $NODE $NAME $JSON/ParserPhysicsTest7_7.json + $NODE $NAME $JSON/ParserPhysicsTest7_8.json + $NODE $NAME $JSON/ParserPhysicsTest7_9.json + $NODE $NAME $JSON/ParserTagAllTest.json + $NODE $NAME $JSON/ParserTagAmsTest.json + $NODE $NAME $JSON/ParserTagNoneTest.json + $NODE $NAME $JSON/ParserUnicodeTest.json + $NODE $NAME $JSON/ParserVerbTest.json exit 0 else From beaa8d78291b573ac22b13ee2bd0f7b266b0e052 Mon Sep 17 00:00:00 2001 From: zorkow Date: Fri, 9 Oct 2020 18:57:09 +0100 Subject: [PATCH 3/8] Correct travis script. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 04cd3bf..e675aeb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,4 @@ sudo: false branches: install: - cd tests; npm install -script: cd tests; ./tests.sh +script: npm test From 335f3d7c14b39ecaf8dcd9cc6a00615eab41d680 Mon Sep 17 00:00:00 2001 From: zorkow Date: Fri, 9 Oct 2020 19:10:23 +0100 Subject: [PATCH 4/8] Renames base class file to not conflict with Jest. --- tests/src/{test.js => base-test.js} | 0 tests/src/other-test.js | 2 +- tests/src/parser-test.js | 2 +- tests/src/test-factory.js | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename tests/src/{test.js => base-test.js} (100%) diff --git a/tests/src/test.js b/tests/src/base-test.js similarity index 100% rename from tests/src/test.js rename to tests/src/base-test.js diff --git a/tests/src/other-test.js b/tests/src/other-test.js index 3b478d8..b992824 100644 --- a/tests/src/other-test.js +++ b/tests/src/other-test.js @@ -22,7 +22,7 @@ * @author v.sorge@mathjax.org (Volker Sorge) */ -import {JsonTest} from './test.js'; +import {JsonTest} from './base-test.js'; import ParseUtil from '../node_modules/mathjax-full/js/input/tex/ParseUtil.js'; diff --git a/tests/src/parser-test.js b/tests/src/parser-test.js index d60ab92..7de33c0 100644 --- a/tests/src/parser-test.js +++ b/tests/src/parser-test.js @@ -34,7 +34,7 @@ import {TagsFactory} from '../node_modules/mathjax-full/js/input/tex/Tags.js'; import {MapHandler} from "../node_modules/mathjax-full/js/input/tex/MapHandler.js"; import {AllPackages} from '../node_modules/mathjax-full/js/input/tex/AllPackages.js'; -import {JsonTest, Test} from './test.js'; +import {JsonTest, Test} from './base-test.js'; let fs = require('fs'); diff --git a/tests/src/test-factory.js b/tests/src/test-factory.js index 01aa5b4..01668cc 100644 --- a/tests/src/test-factory.js +++ b/tests/src/test-factory.js @@ -24,7 +24,7 @@ import * as pt from './parser-test.js'; import {KeyvalTest} from './other-test.js'; -import {JsonTest} from './test.js'; +import {JsonTest} from './base-test.js'; let fs = require('fs'); export class TestFactory { From e11a5345a1264096e829b43af1cd2b0162822721 Mon Sep 17 00:00:00 2001 From: zorkow Date: Fri, 9 Oct 2020 19:26:03 +0100 Subject: [PATCH 5/8] Corrects factory in bussproofs tests. --- tests/json/ParserBussproofsRegInfTest.json | 2 +- tests/json/ParserBussproofsRegProofsTest.json | 2 +- tests/src/parser-test.js | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/json/ParserBussproofsRegInfTest.json b/tests/json/ParserBussproofsRegInfTest.json index 736985e..b1e4ed6 100644 --- a/tests/json/ParserBussproofsRegInfTest.json +++ b/tests/json/ParserBussproofsRegInfTest.json @@ -1,6 +1,6 @@ { "name": "ParserBussproofsRegInfTest", - "factory": "parserOutputTest", + "factory": "parserOutput", "packages": [ "base", "ams", diff --git a/tests/json/ParserBussproofsRegProofsTest.json b/tests/json/ParserBussproofsRegProofsTest.json index 8684806..be3caf1 100644 --- a/tests/json/ParserBussproofsRegProofsTest.json +++ b/tests/json/ParserBussproofsRegProofsTest.json @@ -1,6 +1,6 @@ { "name": "ParserBussproofsRegProofsTest", - "factory": "parserOutputTest", + "factory": "parserOutput", "packages": [ "base", "ams", diff --git a/tests/src/parser-test.js b/tests/src/parser-test.js index 7de33c0..f54ef71 100644 --- a/tests/src/parser-test.js +++ b/tests/src/parser-test.js @@ -114,7 +114,6 @@ export class ParserOutputTest extends ParserJsonTest { * @override */ document(options) { - console.log('In SVG'); return mathjax.document('', { InputJax: new TeX(options), OutputJax: new SVG() }); From 5f6e7786eb7e338b1d7c607a41902acce33c58fb Mon Sep 17 00:00:00 2001 From: zorkow Date: Fri, 9 Oct 2020 22:27:51 +0100 Subject: [PATCH 6/8] Code cleanup. --- tests/json/ParserBaseTest.json | 9 +-- tests/json/ParserDigitsTest.json | 5 +- tests/json/ParserPhysicsTest1_1.json | 2 +- tests/src/base-test.js | 89 +--------------------------- tests/src/parser-test.js | 8 +-- 5 files changed, 6 insertions(+), 107 deletions(-) diff --git a/tests/json/ParserBaseTest.json b/tests/json/ParserBaseTest.json index 3a4148b..7a54971 100644 --- a/tests/json/ParserBaseTest.json +++ b/tests/json/ParserBaseTest.json @@ -1,13 +1,6 @@ { "name": "ParserBaseTest", "factory": "parserTest", - "packages": [ - "ams", - "base" - ], - "settings": { - "tags": "none" - }, "tests": { "Identifier": { "input": "x", @@ -10771,4 +10764,4 @@ } } } -} \ No newline at end of file +} diff --git a/tests/json/ParserDigitsTest.json b/tests/json/ParserDigitsTest.json index 308082e..f352c38 100644 --- a/tests/json/ParserDigitsTest.json +++ b/tests/json/ParserDigitsTest.json @@ -6,8 +6,7 @@ "base" ], "settings": { - "tags": "none", - "digits": {} + "tags": "none" }, "tests": { "Integer": { @@ -381,4 +380,4 @@ } } } -} \ No newline at end of file +} diff --git a/tests/json/ParserPhysicsTest1_1.json b/tests/json/ParserPhysicsTest1_1.json index ef38d9f..dedd75b 100644 --- a/tests/json/ParserPhysicsTest1_1.json +++ b/tests/json/ParserPhysicsTest1_1.json @@ -2006,4 +2006,4 @@ } } } -} \ No newline at end of file +} diff --git a/tests/src/base-test.js b/tests/src/base-test.js index f94695d..d17d4d2 100644 --- a/tests/src/base-test.js +++ b/tests/src/base-test.js @@ -17,101 +17,15 @@ /** - * @fileoverview Basic test classes. + * @fileoverview Basic abstract test classes. * * @author v.sorge@mathjax.org (Volker Sorge) */ /* globals System: true */ -let fs = require('fs'); - export class Test { - failedTests = []; - failed = false; - time = 0; - - constructor() { - /** - * @type {Object.} - */ - this.runningTests = {}; - - /** - * @type {Object.} - */ - this.concludedTests = {}; - - // this.createStream(); - } - - - /** - * @param {string} name The name of the test. - * @private - */ - startTest(name) { - this.concludedTests[name] = (new Date()).getTime(); - } - - /** - * @param {string} name The name of the test. - * @private - */ - registerTest(name) { - this.runningTests[name] = true; - } - - stopTest(name) { - this.concludedTests[name] = - (new Date()).getTime() - this.concludedTests[name]; - delete this.runningTests[name]; - } - - - printTime() { - if (Object.keys(this.runningTests).length) { - setTimeout(this.printTime.bind(this), 100); - return; - } - for (var test in this.concludedTests) { - this.time += this.concludedTests[test]; - delete this.concludedTests[test]; - } - process.stdout.write(this.name + ': ' + this.time + 'ms\n'); - } - - test(name, func) { - this.registerTest(name); - test(name, function(t) { - this.startTest(name); - t.plan(1); - func(t); - this.stopTest(name); - }.bind(this)); - } - - createStream() { - test.createStream({ objectMode: true }).on('data', result => { - if (result.type !== 'assert') return; - process.stdout.write('Running test ' + result.name + '\t' + - (result.ok ? - ('\u001B\u005B\u0033\u0032\u006D' + 'PASS' + - '\u001B\u005B\u0033\u0037\u006D') : - ('\u001B\u005B\u0033\u0031\u006D' + 'FAIL' + - '\u001B\u005B\u0033\u0037\u006D')) + - '\n'); - if (result.ok) return; - this.failed = true; - this.failedTests.push(result.name); - process.stdout.write('Actual: \n'); - process.stdout.write(JSON.stringify(result.actual) + '\n'); - process.stdout.write('Expected: \n'); - process.stdout.write(JSON.stringify(result.expected) + '\n'); - }); - } - runTest(name, input, expected, rest) {} } @@ -141,7 +55,6 @@ export class JsonTest extends Test { for (const [name, {input, expected, ...rest}] of Object.entries(this.tests)) { this.runTest(name, input, expected, rest); }}); - // this.printTime(); } } diff --git a/tests/src/parser-test.js b/tests/src/parser-test.js index f54ef71..b220622 100644 --- a/tests/src/parser-test.js +++ b/tests/src/parser-test.js @@ -36,8 +36,6 @@ import {AllPackages} from '../node_modules/mathjax-full/js/input/tex/AllPackages import {JsonTest, Test} from './base-test.js'; -let fs = require('fs'); - RegisterHTMLHandler(chooseAdaptor()); @@ -59,14 +57,11 @@ export class ParserJsonTest extends JsonTest { this.name = this.json['name'] || this.name; this.settings = this.json['settings'] || this.settings; this.processSettings(); - // console.log('\u001B\u005B\u0033\u0034\u006D' + - // 'Running tests from ' + (this.name || this.constructor.name) + - // '\u001B\u005B\u0033\u0037\u006D'); } processSettings() { // Processing regular expressions. - for (let set of ['digit', 'letter', 'special']) { + for (let set of ['digits', 'letter', 'special']) { if (this.settings[set]) { this.settings[set] = RegExp(this.settings[set]); } @@ -166,4 +161,3 @@ export class ParserConfigMacrosTest extends ParserJsonTest { } } - From 9340a8324f8f1d411e68b99f64e0e2e9b1554fd0 Mon Sep 17 00:00:00 2001 From: zorkow Date: Fri, 9 Oct 2020 22:51:49 +0100 Subject: [PATCH 7/8] Update documentation of tests. --- README.md | 49 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f36b581..bf32d33 100644 --- a/README.md +++ b/README.md @@ -161,18 +161,55 @@ samples/test-adaptor.js samples/test-styles.js ``` -## Running TeX Parser Tests +## Tests -You first need to install tape: +All tests are located in the `./tests/` directory. We use +[Jest](https://jestjs.io) as test framework. + +### Running Tests + +Just go to the `./tests/` directory and run the following two commands: ``` shell -nmp install tape +npm install +npm test ``` -Then run tests with +TeX parser tests in particular are run with the command: ``` shell -./tests.sh +npx jest src/parser.test.js +``` + +To only test a single file run + +``` shell +npx jest src/parser.test.js json/FILE.json +``` + +Tests initially run against `mathjax-full` package. They can be run against your +local repository by rerouting the `js` and `es5` directories. + +### Test Format + +Tests are provided in a JSON test format. + + +``` json +{ + "name": NameOfTest, + "factory": TestFactory, + "tests": { + "TEST1": { + "input": INPUT + "expected": EXPECTED + ...rest + } + ...more tests + } +} + ``` -Tests are located in the `tests` sub-directory. +To add new tests, simply add a new `.json` file in the `json` sub-directory. For +new test classes add a new entry in `src/test-factory.js`. From f48f00ff98de5d641863ac012aecc82c21175cbc Mon Sep 17 00:00:00 2001 From: zorkow Date: Fri, 9 Oct 2020 22:55:04 +0100 Subject: [PATCH 8/8] Trying to trigger travis.com build. --- tests/src/base-test.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/src/base-test.js b/tests/src/base-test.js index d17d4d2..a5e3318 100644 --- a/tests/src/base-test.js +++ b/tests/src/base-test.js @@ -22,8 +22,6 @@ * @author v.sorge@mathjax.org (Volker Sorge) */ -/* globals System: true */ - export class Test { runTest(name, input, expected, rest) {}