summaryrefslogtreecommitdiff
path: root/tests/typ/layout/spacing.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-02-07 20:00:21 +0100
committerLaurenz <laurmaedje@gmail.com>2022-02-07 20:00:21 +0100
commit68503b9a07b00bce3f4d377bcfe945452de815ea (patch)
tree3719ef491b993c59b619ca215963000f4847e78f /tests/typ/layout/spacing.typ
parent9730e785a885a4ab5fcc52ce705298654f82f9c2 (diff)
Redesigned template layout
Diffstat (limited to 'tests/typ/layout/spacing.typ')
-rw-r--r--tests/typ/layout/spacing.typ27
1 files changed, 8 insertions, 19 deletions
diff --git a/tests/typ/layout/spacing.typ b/tests/typ/layout/spacing.typ
index 37aa8eaa..82531efc 100644
--- a/tests/typ/layout/spacing.typ
+++ b/tests/typ/layout/spacing.typ
@@ -1,38 +1,27 @@
// Test the `h` and `v` functions.
---
-// Ends paragraphs.
-Tightly #v(0pt) packed
+// Linebreak and v(0pt) are equivalent.
+#box[A \ B] #box[A #v(0pt) B]
// Eating up soft spacing.
-Inv #h(0pt) isible
+Inv#h(0pt)isible
// Multiple spacings in a row.
Add #h(10pt) #h(10pt) up
// Relative to area.
#let x = 25% - 4pt
-| #h(x) | #h(x) | #h(x) | #h(x) |
+|#h(x)|#h(x)|#h(x)|#h(x)|
// Fractional.
| #h(1fr) | #h(2fr) | #h(1fr) |
---
-// Test spacing collapsing with parbreaks.
-#v(0pt)
-A
-#v(0pt)
-B
-#v(0pt)
-
-C #parbreak() D
-
----
-// Test that spacing can carry paragraph and page style properties.
-
-A[#set par(align: right);#h(1cm)]B
-[#set page(height: 20pt);#v(1cm)]
-B
+// Test spacing collapsing before spacing.
+#set par(align: right)
+A #h(0pt) B #h(0pt) \
+A B
---
// Missing spacing.