diff options
Diffstat (limited to 'tests/typ/layout/align.typ')
| -rw-r--r-- | tests/typ/layout/align.typ | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/typ/layout/align.typ b/tests/typ/layout/align.typ new file mode 100644 index 00000000..1454542a --- /dev/null +++ b/tests/typ/layout/align.typ @@ -0,0 +1,21 @@ +// Test alignment. + +--- +#page(height: 100pt) +#stack(dir: ltr, + align(left, square(size: 15pt, fill: eastern)), + align(center, square(size: 20pt, fill: eastern)), + align(right, square(size: 15pt, fill: eastern)), +) +#align(center, center, rect(fill: eastern, height: 10pt)) +#align(bottom, stack( + align(center, rect(fill: conifer, height: 10pt)), + rect(fill: forest, height: 10pt), +)) + +--- +#align(center)[ + Lorem Ipsum + + Dolor +] |
