diff options
| author | damaxwell <damaxwell@alaska.edu> | 2023-07-20 02:59:22 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-20 12:59:22 +0200 |
| commit | 51a21403ba2e8ced2aeb6a80996d9247f0b7ffd0 (patch) | |
| tree | 1b1ecb846d72ddc662a1c0165723ce402565e7f4 /tests | |
| parent | c72952b512f031a20be1455e5168b7e673b25a97 (diff) | |
Improved #box baselines in math (#1755)
* Improved #box baselines in math
* add a test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/math/content.png | bin | 7891 -> 10381 bytes | |||
| -rw-r--r-- | tests/typ/math/content.typ | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/ref/math/content.png b/tests/ref/math/content.png Binary files differindex a5f5f137..4fbd4670 100644 --- a/tests/ref/math/content.png +++ b/tests/ref/math/content.png 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$)$) |
