From 89f2e71852e96062ea9b756bf92fbf4e894871b1 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 17 Nov 2021 17:09:19 +0100 Subject: Align node --- tests/typ/layout/align.typ | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/typ/layout/align.typ (limited to 'tests/typ/layout/align.typ') 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 +] -- cgit v1.2.3