summaryrefslogtreecommitdiff
path: root/tests/typ/insert/circle.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-29 16:00:46 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-29 16:00:46 +0200
commitb2fb42cc7019b0269e892c4e39c52557252fecf9 (patch)
tree940b7924a0b44e77821817563818829898dc4c39 /tests/typ/insert/circle.typ
parent32a6b673bc4b73ade5863b0166c0779597cede5c (diff)
Make even more use of wide calls
Diffstat (limited to 'tests/typ/insert/circle.typ')
-rw-r--r--tests/typ/insert/circle.typ14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/typ/insert/circle.typ b/tests/typ/insert/circle.typ
index 7722d006..1c8808a4 100644
--- a/tests/typ/insert/circle.typ
+++ b/tests/typ/insert/circle.typ
@@ -4,18 +4,24 @@
// Test auto sizing.
Auto-sized circle. \
-#circle(fill: #eb5278, align(center, center, [But, soft!]))
+#circle(fill: #eb5278)[
+ #align!(center, center)
+ But, soft!
+]
Center-aligned rect in auto-sized circle.
#circle(fill: forest)[
#align!(center, center)
- #rect(fill: conifer, pad(5pt)[But, soft!])
+ #rect!(fill: conifer)
+ #pad!(5pt)
+ But, soft!
]
100%-width rect in auto-sized circle. \
-#circle(fill: forest, rect(width: 100%, fill: conifer)[
+#circle(fill: forest)[
+ #rect!(width: 100%, fill: conifer)
But, soft! what light through yonder window breaks?
-])
+]
Expanded by height.
#circle(fill: conifer)[A \ B \ C]