diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-12-17 13:22:17 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-12-17 13:22:17 +0100 |
| commit | 0f6c67219e367994cd78ab77b0714e34b78d5a05 (patch) | |
| tree | 401e8181dfb2130f0f1b1395e7bcceebf264d7a8 /tests | |
| parent | b02ba84264831ee97e7852f1e33cc78941dba13c (diff) | |
Test [h] and [v] 🐈
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/h-and-v.png | bin | 0 -> 4099 bytes | |||
| -rw-r--r-- | tests/typ/h-and-v.typ | 25 |
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/ref/h-and-v.png b/tests/ref/h-and-v.png Binary files differnew file mode 100644 index 00000000..e977046f --- /dev/null +++ b/tests/ref/h-and-v.png diff --git a/tests/typ/h-and-v.typ b/tests/typ/h-and-v.typ new file mode 100644 index 00000000..9c6d5730 --- /dev/null +++ b/tests/typ/h-and-v.typ @@ -0,0 +1,25 @@ +// 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 |
