diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-08 15:01:55 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-08 15:01:55 +0200 |
| commit | 977ac77e6a3298be2644a8231e93acbef9f7f396 (patch) | |
| tree | 9c40765b862bc583275f692113fe36924c323ccc /tests | |
| parent | e1d7edb7c1845e6df6f5e23e3baf7bc88159eade (diff) | |
Start & end alignment
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/layout/align.png | bin | 2388 -> 7832 bytes | |||
| -rw-r--r-- | tests/typ/layout/align.typ | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/ref/layout/align.png b/tests/ref/layout/align.png Binary files differindex 77619b32..5dde0cef 100644 --- a/tests/ref/layout/align.png +++ b/tests/ref/layout/align.png diff --git a/tests/typ/layout/align.typ b/tests/typ/layout/align.typ index 09c4dee5..f0603b46 100644 --- a/tests/typ/layout/align.typ +++ b/tests/typ/layout/align.typ @@ -14,6 +14,7 @@ )) --- +// Test that multiple paragraphs in subflow also respect alignment. #align(center)[ Lorem Ipsum @@ -21,6 +22,18 @@ ] --- +// Test start and end alignment. +#rotate(-30deg, origin: end + horizon)[Hello] + +#set par(lang: "de") +#align(start)[Start] +#align(end)[Ende] + +#set par(lang: "ar") +#align(start)[يبدأ] +#align(end)[نهاية] + +--- // Ref: false #test(type(center), "alignment") #test(type(horizon), "alignment") |
