Skip to content

left/right padding in equationgroups incompatible with line breaking (only visible with MathJax) #2627

@xworld21

Description

@xworld21

MathJax 4 re-introduced line breaking, at last. However, this exposes an odd choice in the LaTeXML CSS which effectively breaks pages rendered with MathJax.

This simple example

\usepackage{amsmath}
\begin{align*}
  a + b + c + d + e + f &= f + e + d + c + b + a
\end{align*}

when converted to MathML and passed through MathJax 4 becomes

Image

This is because LaTeXML generates a table with two extra columns 'padleft/padright' of size 50% on both sides. Now that MathJax allows line breaking, the cells containing the maths will often shrink to the minimum possible size to account for those columns.

What is the purpose of padleft/padright? If it is only centering the table, I suggest switching to auto margins or even a flex wrapper, neither of which would have this problem (and they are also better for screen readers).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions