diff options
Diffstat (limited to 'tests/typ/text')
| -rw-r--r-- | tests/typ/text/indent.typ | 4 | ||||
| -rw-r--r-- | tests/typ/text/justify.typ | 8 | ||||
| -rw-r--r-- | tests/typ/text/par.typ | 26 |
3 files changed, 14 insertions, 24 deletions
diff --git a/tests/typ/text/indent.typ b/tests/typ/text/indent.typ index 97044153..b2f3d87b 100644 --- a/tests/typ/text/indent.typ +++ b/tests/typ/text/indent.typ @@ -2,7 +2,7 @@ --- #set par(indent: 12pt, leading: 5pt) -#set heading(above: 8pt) +#set block(spacing: 5pt) #show heading: text.with(size: 10pt) The first paragraph has no indent. @@ -31,7 +31,7 @@ starts a paragraph without indent. --- // This is madness. -#set par(indent: 12pt, spacing-and-indent: true) +#set par(indent: 12pt) Why would anybody ever ... ... want spacing and indent? diff --git a/tests/typ/text/justify.typ b/tests/typ/text/justify.typ index e61817a6..e3d61322 100644 --- a/tests/typ/text/justify.typ +++ b/tests/typ/text/justify.typ @@ -1,12 +1,8 @@ --- #set page(width: 180pt) -#set par( - justify: true, - indent: 14pt, - spacing: 0pt, - leading: 5pt, -) +#set block(spacing: 5pt) +#set par(justify: true, indent: 14pt, leading: 5pt) This text is justified, meaning that spaces are stretched so that the text forms a "block" with flush edges at both sides. 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() {} |
