Repository navigation
Open
Labels
Area/ParsingLaTeX tokenization, parsing, commands, and serialization.Area/RenderingTypesetting, measurement, fonts, text layout, and drawing.Type/EnhancementA concrete change to CSharpMath behavior or capability.
Description
Implement \multicolumn{count}{alignment}{content} for math array-style tables using explicit spanning-cell metadata and layout.
Scope:
- Accept the command only as a table cell in supported math array/matrix environments.
- Require a positive integer
count, anl,c, orralignment, and a content group. - Represent the span and alignment in the table model; do not flatten it into an ordinary cell or pre-spaced LaTeX.
Acceptance criteria:
- Column measurement reserves the combined spanned width and inter-column spacing exactly once.
- Following cells begin after the occupied columns; spans beyond the table width and overlapping/impossible placements are rejected at the correct source position.
- Left, center, and right alignment apply within the full spanned width.
- Vertical rules, neighboring cells, table delimiters, and the
\hlinesupport from Port iosMath 2026 commits to CSharpMath #264 use the resulting table geometry correctly. - Serialization emits a canonical
\multicolumn{count}{alignment}{content}and parse → serialize → parse preserves table equality. - Tests cover one-column and full-width spans, partial spans followed by cells, all alignments, nested math, multiple rows, vertical rules, and
\hlinecombinations. - Zero, negative, non-numeric, too-large, missing, nested/unsupported, and invalid-alignment inputs produce deterministic position-aware errors.
Parent table-layout issue: #195.
Metadata
Metadata
Assignees
Labels
Area/ParsingLaTeX tokenization, parsing, commands, and serialization.Area/RenderingTypesetting, measurement, fonts, text layout, and drawing.Type/EnhancementA concrete change to CSharpMath behavior or capability.
Activity