Dissolve basics folder

This commit is contained in:
Laurenz 2023-02-13 16:50:57 +01:00
parent b1b4e52af9
commit 8f68bc7a8e
14 changed files with 28 additions and 69 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

BIN
tests/ref/layout/enum.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -1,69 +0,0 @@
// Test enumerations.
---
#enum[Embrace][Extend][Extinguish]
---
1. First.
2. Indented
+ Second
---
// Test automatic numbering in summed content.
#for i in range(5) {
[+ #numbering("I", 1 + i)]
}
---
// Test label pattern.
#set enum(numbering: "~ A:")
1. First
+ Second
#set enum(numbering: "(*)")
+ A
+ B
+ C
#set enum(numbering: "i)")
+ A
+ B
---
// Mix of different lists
- Bullet List
+ Numbered List
/ Term: List
---
// Test numbering with closure.
#enum(
start: 4,
spacing: 0.65em - 3pt,
tight: false,
numbering: n => text(
fill: (red, green, blue).at(calc.mod(n, 3)),
numbering("A", n),
),
[Red], [Green], [Blue],
)
---
#set enum(numbering: n => n > 1)
+ A
+ B
---
// Edge cases.
+
Empty
+Nope
---
// Error: 22-24 invalid numbering pattern
#set enum(numbering: "")
---
// Error: 22-28 invalid numbering pattern
#set enum(numbering: "(())")

28
tests/typ/layout/enum.typ Normal file
View File

@ -0,0 +1,28 @@
// Test enumerations.
---
#enum[Embrace][Extend][Extinguish]
---
1. First.
2. Indented
+ Second
---
// Test automatic numbering in summed content.
#for i in range(5) {
[+ #numbering("I", 1 + i)]
}
---
// Mix of different lists
- Bullet List
+ Numbered List
/ Term: List
---
// Edge cases.
+
Empty
+Nope