Commit Graph
3 Commits
Author SHA1 Message Date
DolanandClaude Opus 5.5 71b11d6f33 chore: remove the awesome-typescript-loader WORKAROUND exports (#3571)
WORKAROUND2, WORKAROUND3 and WORKAROUND4 were empty strings that gave
type-only modules a runtime value, so awesome-typescript-loader (see
s-panferov/awesome-typescript-loader#432) wouldn't choke on `export *`
from them. That loader was dropped in 2021 and the build is now tsc and
Vite, which re-export type-only modules without complaint, as
src/file/vml/types.ts and src/shapes/shape-connector.ts already do.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 17:30:07 +01:00
DolanandClaude Opus 5.5 eb206519ae feat: math from LaTeX in docx/math, with accents, bars, braces, boxes, phantoms and large operators (#3570)
* feat: math from LaTeX in docx/math, with accents, bars, braces, boxes, phantoms and large operators

latexToMath turns LaTeX math into docx's math components, to go in a Math.
It reads what LaTeX, MathJax and KaTeX write: fractions, roots, scripts,
large operators, functions, \left and \right, accents, braces, boxes,
fonts, \text, and the environments for matrices, cases and aligned
equations, with \tag. It throws for what it can't read, saying where.

The parts LaTeX needs are public components too: MathLargeOperator,
MathAccent, MathBar, MathBrace, MathBox and MathPhantom in docx/math, and
in docx, MathRun's style, script and literal, MathFraction's type, and
limits on MathSum and MathIntegral.

Closes #2994

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: draw MathRun alphabets upright unless given a style, and escape the \middle| table cell

A run with a script but no style wrote no m:sty, which Word draws as italic, so sansSerif came out italic
sans-serif rather than the upright 𝖠 its docs show. A script other than roman now defaults to a plain style,
as LaTeX draws its alphabets; a given style is kept. latexToMath already gave each alphabet its style.

The | after \middle in the LaTeX docs' table ended the cell, splitting the row into three.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 17:07:59 +01:00
Dolan 7ada74f6d1 feat: docx/math, with matrices, cases, equations lined up with numbers, and brackets of any characters (#3553) 2026-09-27 17:30:38 +01:00