diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-08-17 22:04:18 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-08-17 22:20:37 +0200 |
| commit | 594809e35b9e768f1a50926cf5e7a9df41ba7d16 (patch) | |
| tree | 488f201599a67329d7916b9b3ecb73dd27ad24d7 /tests/typ/insert/square.typ | |
| parent | c53d98a22f367a9eecfb45d1b22f1be5c6cf908d (diff) | |
Library functions behave more imperatively
- Templates scope state changes
- State-modifying function operate in place instead of returning a template
- Internal template representation contains actual owned nodes instead of a pointer to a syntax tree + an expression map
- No more wide calls
Diffstat (limited to 'tests/typ/insert/square.typ')
| -rw-r--r-- | tests/typ/insert/square.typ | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/typ/insert/square.typ b/tests/typ/insert/square.typ index dd20ca62..1c856d4f 100644 --- a/tests/typ/insert/square.typ +++ b/tests/typ/insert/square.typ @@ -3,22 +3,21 @@ --- Auto-sized square. \ #square(fill: eastern)[ - #align!(center) - #pad!(5pt) - #font!(fill: white, weight: bold) - Typst + #font(fill: white, weight: bold) + #align(center) + #pad(5pt)[Typst] ] --- // Test height overflow. -#page!(width: 75pt, height: 100pt) +#page(width: 75pt, height: 100pt) #square(fill: conifer)[ But, soft! what light through yonder window breaks? ] --- // Test width overflow. -#page!(width: 100pt, height: 75pt) +#page(width: 100pt, height: 75pt) #square(fill: conifer)[ But, soft! what light through yonder window breaks? ] |
