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
Compile, execute, and open the resulting equation.png and you can see the image of the equation.
The canvas is not wide enough for the generated latex image.
Expected behavior
Width of canvas should be as large as the latex image.
Environment (please complete the following information):
Platform: CSharpMath.SkiaSharp
Package Version or Commit: 0.5.11
Device: Desktop PC, Ubuntu 24.04.1
Additional context
See attached image result.
Maintainer triage (2026-08-30)
Reproduced on current master (8bda039) with the aligned example above and with #172's eqnarray example. DrawAsStream creates its surface from Measure, but later rows can extend past that measured/right-aligned bound and are clipped. The eqnarray reproduction also positions the shorter first row and longer second row as though the complete table bounds were not centered as one unit.
This issue now consolidates #172 and covers multiline table environments in both MathPainter and TextPainter.
Acceptance criteria:
Measure uses the union of every row/cell's horizontal bounds for aligned, split, array/matrix, and eqnarray-style displays.
Bounds include italic overhang and any negative/positive cell offsets, not only glyph advances or the first row.
DrawAsStream does not clip any row at either edge.
TextPainter centers the complete multiline display as one unit at finite and infinite canvas widths.
Describe the bug
MathPainter generates an image that cuts off the right side of the equation.
To Reproduce
Compiled on Ubuntu 24.04.1
.NET 8.0.405
CSProj contents:
main.cs contents:
Compile, execute, and open the resulting
equation.pngand you can see the image of the equation.The canvas is not wide enough for the generated latex image.
Expected behavior
Width of canvas should be as large as the latex image.
Environment (please complete the following information):
Additional context
See attached image result.
Maintainer triage (2026-08-30)
Reproduced on current master (8bda039) with the aligned example above and with #172's eqnarray example. DrawAsStream creates its surface from Measure, but later rows can extend past that measured/right-aligned bound and are clipped. The eqnarray reproduction also positions the shorter first row and longer second row as though the complete table bounds were not centered as one unit.
This issue now consolidates #172 and covers multiline table environments in both MathPainter and TextPainter.
Acceptance criteria: