Skip to content

Complete rule and spanning-cell support in math arrays #195

Open
0 of 2 issues completed
Open

Description

@Ewdoc

This parent issue tracks the remaining rule and spanning-cell work for mathematical array-style tables. Full text-mode tabular and page-layout behavior is out of scope.

Native child status:

  • \hline row rules are implemented and tested in the iosMath 2026 port PR Port iosMath 2026 commits to CSharpMath #264; its focused child issue will close when that PR merges.
  • \multicolumn{count}{alignment}{content} remains a separate high-risk child because it needs explicit spanning-cell metadata, width allocation, rule interaction, and serialization.

Completion criteria:

  • Horizontal rules are valid only at array row boundaries, survive round-trip serialization, and span the final aligned table geometry.
  • Spanning cells reserve the requested columns exactly once, apply l/c/r alignment within the combined width, and move following cells past the occupied columns.
  • Delimiters, vertical rules, horizontal rules, neighboring cells, style scaling, and nested math all use the final table geometry.
  • Invalid rule placement, counts, alignments, overlaps, and spans beyond the table width report deterministic source-positioned errors.
  • Structural measurement and focused cross-frontend rendering tests cover rules, spans, and their combinations.

Keep this epic open until #264 merges and every native child is complete or explicitly closed as not planned.

Sub-issues

Sub-issues

0 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    Type/Enhancement
    on May 9, 2021
  2. Happypig375 commented on May 10, 2021

    @Happypig375
    Collaborator

    This is something that I intend to do, but the current Typesetter code is pretty messy so expect a long while until I can revisit this.

  3. tofutim commented on Mar 28, 2024

    @tofutim
    \begin{array}{r}
    12\\
    \times\ 3\\
    \hline
    36
    \end{array}
    

    I would like to do something like this. However, \hline is not found... the best I can do is \begin{array}{r}12\\ \times 13\\ 156 \end{array}

    image

    Any tips much appreciated!


    Here is an example of it working online...

    image

    Update. I realized I could cheat a little using "underline", e.g.,

    \begin{array}{r}12\\ \underline{\times 10}\\ 120 \end{array}
    
  4. changed the title [-]Tables feature[/-] [+]Support \hline and \multicolumn in math arrays[/+] on Aug 30, 2026
  5. added
    Area/Parsing
    Area/Rendering
    on Aug 30, 2026
  6. changed the title [-]Support \hline and \multicolumn in math arrays[/-] [+]Complete rule and spanning-cell support in math arrays[/+] on Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area/ParsingArea/RenderingType/Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions