From 219c1c9ed0f4d5755becd9f679b4cf7cfa670b5a Mon Sep 17 00:00:00 2001 From: Jakob Sachs Date: Mon, 27 Nov 2023 11:12:04 +0100 Subject: Added vertical number alignment to enum (#2742) Fixes #2441 --- tests/ref/layout/enum-align.png | Bin 8335 -> 18701 bytes tests/typ/layout/enum-align.typ | 17 ++++++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/ref/layout/enum-align.png b/tests/ref/layout/enum-align.png index 5f3f66f9..18e392f2 100644 Binary files a/tests/ref/layout/enum-align.png and b/tests/ref/layout/enum-align.png differ 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) + -- cgit v1.2.3