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/image.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/image.typ')
| -rw-r--r-- | tests/typ/insert/image.typ | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/typ/insert/image.typ b/tests/typ/insert/image.typ index 9d9c6d46..6359c4bb 100644 --- a/tests/typ/insert/image.typ +++ b/tests/typ/insert/image.typ @@ -17,7 +17,10 @@ #image("../../res/rhino.png") // Fit to height of page. -#page(height: 40pt, image("../../res/rhino.png")) +[ + #page(height: 40pt) + #image("../../res/rhino.png") +] // Set width explicitly. #image("../../res/rhino.png", width: 50pt) @@ -29,7 +32,8 @@ #image("../../res/rhino.png", width: 25pt, height: 50pt) // Make sure the bounding-box of the image is correct. -#align(bottom, right, image("../../res/tiger.jpg", width: 60pt)) +#align(bottom, right) +#image("../../res/tiger.jpg", width: 60pt) --- // Error: 8-29 file not found |
