You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but this leads to too much space between x and =a+b:
The reason is that the <mtd> element has obligatory padding in MathML-Core:
The mtd is laid out as a table-cell with content centered in the cell and a default padding. The user agent stylesheet must contain the following rules:
This won't be easy to fix. The TeX reader (in texmath) just represents an align as an EArray, so once it gets to the MathML writer it's indistinguishable from an array. To handle this properly we migth need a dedicated constructor (math element type) for aligned equations.
As a workaround, you can put your equation in a div with a class, and then put some CSS on that div that overrides the default padding.
This latex code:
is converted to this MathML code by texmath:
but this leads to too much space between
x
and=a+b
:The reason is that the
<mtd>
element has obligatorypadding
in MathML-Core:That padding is probably appropriate for matrices, but not for an align environment. So, the solution is to remove the
left
andright
padding:which results in:
I've tested this in both Chrome and Firefox with identical results.
The text was updated successfully, but these errors were encountered: