Restructure Tabular Math section and update guidelines with examples#92
Restructure Tabular Math section and update guidelines with examples#92
Conversation
MartheGjelstad
commented
Apr 17, 2026
- Restructered the section about Tabular math.
- Added example of a long calculation spanning many lines. Closes Equations spanning multiple lines #61
- Added description to use scriplevel for nested fractions inside tables. Closes Big MathML expressions inside regular HTML tables appear small #85 Closes Fractions in small font size when they are inside <mtable> #75
…ng many lines In the existing guidelines the sections "Systems of Equations" and "Equations solving notation" are inside the section "Context-based Applications". However, they are listed in the section "When to use MathML <mtable>. I changed the order of some sections. The order is now the following: Basic Markup Structure Token Elements `<mn>` `<mo>` for operators, fences, separators or accents `<mi>` element for variables, functions and units Text inside math expressions `<mtext>` Punctuation General Layout Schemata Grouping mathematical expressions with `<mrow>` Fractions, binomials and other similar layouts with `<mfrac>` `<msqrt>` and `<mroot>` `<mpadded>` and `<mspace>` Visual alignment of expressions Script and Limit Schemata Subscripts and Superscripts, `<msub>`, `<msup>`, `<msubsup>` Underscripts and Overscripts, `<munder>`, `<mover>`, `<munderover>` Prescripts and Postscripts, `<mmultiscripts>` Tabular Math When to use the regular HTML `<table>` When to use the MathML `<mtable>` Attributes `rowspan` and `columnspan` Systems of Equations Equation solving notation Labeling and referencing equations Footnotes in mathematical expressions Context-Based Applications Large operators Inline Block Inline-block Invisible Operators Numbers with Units Fill-in-the-blanks When to use images of mathematical content Crossed out math `<menclose>` Chemistry in MathML
TimArborealis
left a comment
There was a problem hiding this comment.
Looks good to me!
| </td> | ||
| <td> | ||
| <math xmlns="http://www.w3.org/1998/Math/MathML"> | ||
| <mstyle scriptlevel="-1"> |
There was a problem hiding this comment.
scriptlevel should be possible to set on the <math> element. Did you try this and see if it works?
I'm mostly raising this since <mstyle> isn't recommended in the MathML Core.
There was a problem hiding this comment.
Thanks for the input, @samimaattaCelia . See the discussion in issue #85 :)
There was a problem hiding this comment.
Thanks! Is there an expected change coming to the validator, since scriptlevel should be allowed in all MathML elements? I don't want that the guidelines have to abide by rules that are not based in the standard.
For now it is ok, but in the future, I don' think this should be the aim of the guidelines.
There was a problem hiding this comment.
When we are going to update the guidelines to include elements from MathML 4, the validator needs to be updated. I don't have a planned timeline for this. First, two of us need to go through the MathML 4 guidelines and take notes of what we should include in our guidelines. So far, no one has said they want to do this. I think this is because everyone is quite busy with other stuff right now :)
|
Looks good to me. We need to do a major update of the validator in the near future, not only for the purpose of MathML but also to synch with the 2025-1 EPUB guidelines. |