diff options
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/expand.typ | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/typ/expand.typ b/tests/typ/expand.typ new file mode 100644 index 00000000..3b242928 --- /dev/null +++ b/tests/typ/expand.typ @@ -0,0 +1,14 @@ +// Test fit/fill expansion. + +--- +#let right(body) = align(right, body) +#let pad(body) = pad(left: 10pt, right: 10pt, body) + +// Top-level paragraph fills page, boxed paragraph only when width is fixed. +L #right[R] \ +#box(width: 50pt)[L #right[R]] \ +#box[L #right[R]] \ + +// Pad inherits expansion behaviour. +#pad[PL #right[PR]] \ +#box(pad[PL #right[PR]]) |
