diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-09 18:16:59 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-09 18:20:02 +0100 |
| commit | 010cc2effc2fd0e1c4e52d5c914cb4d74506bc0a (patch) | |
| tree | e50060d271f076b00945e5569e7f8ffef2c28e9f /tests/typ/text/par.typ | |
| parent | 12a59963b08b68cc39dcded4d3d3e6a6631c2732 (diff) | |
New block spacing model
Diffstat (limited to 'tests/typ/text/par.typ')
| -rw-r--r-- | tests/typ/text/par.typ | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/tests/typ/text/par.typ b/tests/typ/text/par.typ index 08202ef5..56a33577 100644 --- a/tests/typ/text/par.typ +++ b/tests/typ/text/par.typ @@ -7,33 +7,27 @@ To the right! Where the sunlight peeks behind the mountain. --- // Test changing leading and spacing. -#set par(spacing: 1em, leading: 2pt) +#set block(spacing: 1em) +#set par(leading: 2pt) But, soft! what light through yonder window breaks? It is the east, and Juliet is the sun. --- -// Test that largest paragraph spacing wins. -#set par(spacing: 2.5pt) -[#set par(spacing: 15pt);First] -[#set par(spacing: 7.5pt);Second] -Third - -Fourth - ---- // Test that paragraph spacing loses against block spacing. -#set par(spacing: 100pt) -#set table(around: 5pt) +// TODO +// #set block(spacing: 100pt) +// #show table: set block(spacing: 5pt) +#set block(spacing: 5pt) Hello #table(columns: 4, fill: (x, y) => if odd(x + y) { silver })[A][B][C][D] --- // While we're at it, test the larger block spacing wins. -#set raw(around: 15pt) -#set math(around: 7.5pt) -#set list(around: 2.5pt) -#set par(spacing: 0pt) +#set block(spacing: 0pt) +#show raw: it => { set block(spacing: 15pt); it } +#show math: it => { set block(spacing: 7.5pt); it } +#show list: it => { set block(spacing: 2.5pt); it } ```rust fn main() {} |
