diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-12 21:14:21 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-12 21:14:21 +0100 |
| commit | d99359dede8f366fc16d38c6166b97a0f56fe0cb (patch) | |
| tree | 862ae2d48efb782f8061964302b4719b57f44618 /tests/typ | |
| parent | d689d706eaf3079877406e71b0d642623c9eb230 (diff) | |
Add `baseline` argument to `box`
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/text/baseline.typ | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/typ/text/baseline.typ b/tests/typ/text/baseline.typ index 57963195..c19e3c63 100644 --- a/tests/typ/text/baseline.typ +++ b/tests/typ/text/baseline.typ @@ -1,4 +1,4 @@ -// Test text baseline.
+// Test baseline handling.
---
Hi #text(1.5em)[You], #text(0.75em)[how are you?]
@@ -7,3 +7,6 @@ Our cockatoo was one of the #text(baseline: -0.2em)[#box(circle(radius: 2pt)) first]
#text(baseline: 0.2em)[birds #box(circle(radius: 2pt))]
that ever learned to mimic a human voice.
+
+---
+Hey #box(baseline: 40%, image("/tiger.jpg", width: 1.5cm)) there!
|
