diff options
Diffstat (limited to 'tests/typ/math/content.typ')
| -rw-r--r-- | tests/typ/math/content.typ | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/typ/math/content.typ b/tests/typ/math/content.typ index 5a51901a..49f39733 100644 --- a/tests/typ/math/content.typ +++ b/tests/typ/math/content.typ @@ -17,3 +17,17 @@ $ x := #table(columns: 2)[x][y]/mat(1, 2, 3) // Test font switch. #let here = text.with(font: "Noto Sans") $#here[f] := #here[Hi there]$. + +--- +// Test boxes without a baseline act as if the baseline is at the base +#{ + box(stroke: 0.2pt, $a #box(stroke: 0.2pt, $a$)$) + h(12pt) + box(stroke: 0.2pt, $a #box(stroke: 0.2pt, $g$)$) + h(12pt) + box(stroke: 0.2pt, $g #box(stroke: 0.2pt, $g$)$) +} + +--- +// Test boxes with a baseline are respected +#box(stroke: 0.2pt, $a #box(baseline:0.5em, stroke: 0.2pt, $a$)$) |
