typst/tests/typ/func-h-and-v.typ
Laurenz ba3d43f7b2 Refresh function call and dictionary syntax
- No colon between function name and arguments, just whitespace
- "Named" arguments (previously "keyword" arguments) use colon instead of equals sign
2020-12-27 20:45:20 +01:00

26 lines
429 B
XML

// Test the `h` and `v` functions.
// Ends paragraphs.
Tightly [v -5pt] packed
// Eating up soft spacing.
Inv [h 0pt] isible
// Multiple spacings in a row.
Add [h 10pt] [h 10pt] up
// Relative to font size.
Relative [h 100%] spacing
// Missing spacing.
Totally [h] ignored
// Swapped axes.
[page main-dir: rtl, cross-dir: ttb][
1 [h 1cm] 2
3 [v 1cm] 4 [v -1cm] 5
]
// error: 16:11-16:11 missing argument: spacing