diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-21 17:12:16 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-21 17:12:16 +0100 |
| commit | dd9c323941260a1d08d5113dbefa023713f553da (patch) | |
| tree | 48c813c01a83f5c6ca67ebbabd041c0298eb0da2 /tests/typ/text | |
| parent | c28d2130ddda3ae9b25cc16c3015087990ccb6e9 (diff) | |
Show with set
Diffstat (limited to 'tests/typ/text')
| -rw-r--r-- | tests/typ/text/indent.typ | 2 | ||||
| -rw-r--r-- | tests/typ/text/par.typ | 11 |
2 files changed, 6 insertions, 7 deletions
diff --git a/tests/typ/text/indent.typ b/tests/typ/text/indent.typ index b2f3d87b..8454dda5 100644 --- a/tests/typ/text/indent.typ +++ b/tests/typ/text/indent.typ @@ -3,7 +3,7 @@ --- #set par(indent: 12pt, leading: 5pt) #set block(spacing: 5pt) -#show heading: text.with(size: 10pt) +#show heading: set text(size: 10pt) The first paragraph has no indent. diff --git a/tests/typ/text/par.typ b/tests/typ/text/par.typ index 56a33577..558059e9 100644 --- a/tests/typ/text/par.typ +++ b/tests/typ/text/par.typ @@ -16,18 +16,17 @@ It is the east, and Juliet is the sun. --- // Test that paragraph spacing loses against block spacing. // TODO -// #set block(spacing: 100pt) -// #show table: set block(spacing: 5pt) -#set block(spacing: 5pt) +#set block(spacing: 100pt) +#show table: set block(above: 5pt, below: 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 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 } +#show raw: set block(spacing: 15pt) +#show math: set block(spacing: 7.5pt) +#show list: set block(spacing: 2.5pt) ```rust fn main() {} |
