diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-21 16:19:46 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-21 16:19:46 +0100 |
| commit | 31f904a2c406953cbce334e02b37a712b9b9d016 (patch) | |
| tree | c23f6e063864d97afb9b3d58c10ce4c2877106c5 /tests/typ/visualize/shape-aspect.typ | |
| parent | 4af7b9118c5ce612b3d9d7dd06118ce23b731d9c (diff) | |
Split up and document shapes
Diffstat (limited to 'tests/typ/visualize/shape-aspect.typ')
| -rw-r--r-- | tests/typ/visualize/shape-aspect.typ | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/typ/visualize/shape-aspect.typ b/tests/typ/visualize/shape-aspect.typ index f2dd9b51..d2dc1140 100644 --- a/tests/typ/visualize/shape-aspect.typ +++ b/tests/typ/visualize/shape-aspect.typ @@ -4,9 +4,13 @@ // Test relative width and height and size that is smaller // than default size. #set page(width: 120pt, height: 70pt) -#square(width: 50%, align(bottom)[A]) +#set align(center + horizon) +#square(width: 50%, [A]) #square(height: 50%) -#box(stack(square(size: 10pt), 5pt, square(size: 10pt, [B]))) +#box(stack( + square(size: 10pt), + square(size: 20pt, [B]) +)) --- // Test alignment in automatically sized square and circle. @@ -37,7 +41,7 @@ // Test square that is overflowing due to its aspect ratio. #set page(width: 40pt, height: 20pt, margin: 5pt) #square(width: 100%) #parbreak() -#square(width: 100%)[Hello] +#square(width: 100%)[Hey] --- // Size cannot be relative because we wouldn't know |
