Commit a42a816
committed
Implement text promotion and keyword expansion for logical operators
- Added support for `\text{and}`, `\text{or}`, `\text{iff}`, and `\text{if and only if}` as infix operators in the LaTeX parser.
- Implemented multi-word keyword support for `\text{such that}`, `\text{for all}`, and `\text{there exists}` with appropriate parsing logic.
- Enhanced the `InvisibleOperator` to promote surrounding math expressions into a single `Text` expression when `\text{}` is used.
- Updated tests to cover new functionality, including keyword recognition and text promotion scenarios.
- Adjusted existing tests and snapshots to reflect changes in output structure and behavior.1 parent 1833974 commit a42a816
File tree
10 files changed
+1260
-66
lines changed- docs/plans
- src/compute-engine
- latex-syntax
- dictionary
- library
- test/compute-engine/latex-syntax
10 files changed
+1260
-66
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
| |||
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
26 | 42 | | |
27 | 43 | | |
28 | 44 | | |
| |||
0 commit comments