mirror of
https://github.com/typst/typst
synced 2025-05-15 17:45:27 +08:00
14 lines
280 B
XML
14 lines
280 B
XML
// Test the `pad` function.
|
|
|
|
---
|
|
// Use for indentation.
|
|
#pad(left: 10pt, [Indented!])
|
|
|
|
// All sides together.
|
|
#rect(fill: conifer,
|
|
pad(10pt, right: 20pt,
|
|
rect(width: 20pt, height: 20pt, fill: #eb5278)))
|
|
|
|
// Error: 14-24 missing argument: body
|
|
Hi #rect(pad(left: 10pt)) there
|