Skip to content

Commit 06e8f8b

Browse files
committed
feat: implement math style and size switches in LaTeX parser
- Added functions to parse LaTeX commands for math styles (`\displaystyle`, `\textstyle`, `\scriptstyle`, `\scriptscriptstyle`) and font sizes (`\tiny`, `\scriptsize`, `\footnotesize`, `\small`, `\normalsize`, `\large`, `\Large`, `\LARGE`, `\huge`, `\Huge`). - Updated the LaTeX definitions to utilize the new parsing functions. - Enhanced the test suite to cover new functionality for math style and size switches, ensuring correct parsing and serialization. - Adjusted existing tests to reflect changes in output structure for annotated expressions.
1 parent f99b3b7 commit 06e8f8b

File tree

7 files changed

+288
-1765
lines changed

7 files changed

+288
-1765
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
### [Unreleased]
2+
3+
#### Fixed
4+
5+
- **LaTeX parsing: style, size, and color switch commands**
6+
`\displaystyle`, `\textstyle`, `\scriptstyle`, `\scriptscriptstyle`,
7+
`\tiny`..`\Huge` (10 size commands), and `\color{...}` were silently
8+
discarded during parsing. They now produce `Annotated` expressions that
9+
preserve the styling information and round-trip correctly through
10+
serialization. Added `\scriptstyle` / `\scriptscriptstyle` serialization
11+
support (previously only `\displaystyle` and `\textstyle` were handled).
12+
113
### 0.55.5 _2026-03-06_
214

315
#### Fixed

docs/plans/2026-03-06-high-precision-fractals-design.md

Lines changed: 0 additions & 347 deletions
This file was deleted.

0 commit comments

Comments
 (0)