diff options
| author | Jakob Sachs <jakobsachs1999@gmail.com> | 2023-11-27 11:12:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-27 11:12:04 +0100 |
| commit | 219c1c9ed0f4d5755becd9f679b4cf7cfa670b5a (patch) | |
| tree | b52a2068579582b673433508ff402bb59a0f3926 /tests/typ/layout/enum-align.typ | |
| parent | 85b1d1d4dd4628d1fb8901c3280cde84da450bbe (diff) | |
Added vertical number alignment to enum (#2742)
Fixes #2441
Diffstat (limited to 'tests/typ/layout/enum-align.typ')
| -rw-r--r-- | tests/typ/layout/enum-align.typ | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/typ/layout/enum-align.typ b/tests/typ/layout/enum-align.typ index 7cfa5505..d64ee374 100644 --- a/tests/typ/layout/enum-align.typ +++ b/tests/typ/layout/enum-align.typ @@ -20,7 +20,13 @@ 16. c --- -// Number align option should not be affected by the context +#set enum(number-align: center + horizon) +1. #box(fill: teal, inset: 10pt )[a] +8. #box(fill: teal, inset: 10pt )[b] +16. #box(fill: teal,inset: 10pt )[c] + +--- +// Number align option should not be affected by the context. #set align(center) #set enum(number-align: start) @@ -32,13 +38,14 @@ 64. h --- -// Test valid number align values (horizontal) +// Test valid number align values (horizontal and vertical) // Ref: false #set enum(number-align: start) #set enum(number-align: end) #set enum(number-align: left) +#set enum(number-align: center) #set enum(number-align: right) - ---- -// Error: 25-28 expected `start`, `left`, `center`, `right`, or `end`, found top #set enum(number-align: top) +#set enum(number-align: horizon) +#set enum(number-align: bottom) + |
