Check matrix and cases positions against pdfLaTeX

This commit is contained in:
gloamxun committed 2026-10-26 00:53:40 +08:00
1 parent e926bc9eb3
commit 52a74755f7
5 files changed
+183 -21

No files matched your search

+2 -1
View File
@@ -1031,8 +1031,9 @@ impl Page {
align,
left,
right,
row_lead,
} => {
let layout = math::matrix_layout(rows, font, align, *left, *right);
let layout = math::matrix_layout(rows, font, align, *left, *right, *row_lead);
let base_extent = |delimiter: char| font.height(delimiter) + font.depth(delimiter);
let scaled = |metrics: (char, i64, i64, i64)| -> (i64, i64) {
let base = base_extent(metrics.0);