summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-18 12:50:28 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-18 12:50:28 +0100
commit5a59bb48216352d04f78c9a9392ca7cef280d7b2 (patch)
tree463ec7ef40078df17ea79e018caa3e8943bffc94 /tests
parentb2e6a297893348a871fba8997017a9fc98d5674b (diff)
Page fill
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/layout/page.pngbin6907 -> 5829 bytes
-rw-r--r--tests/typ/layout/page.typ22
2 files changed, 11 insertions, 11 deletions
diff --git a/tests/ref/layout/page.png b/tests/ref/layout/page.png
index 75ad00d1..dae3d488 100644
--- a/tests/ref/layout/page.png
+++ b/tests/ref/layout/page.png
Binary files differ
diff --git a/tests/typ/layout/page.typ b/tests/typ/layout/page.typ
index 1d2fdb62..9bb3097d 100644
--- a/tests/typ/layout/page.typ
+++ b/tests/typ/layout/page.typ
@@ -2,15 +2,15 @@
---
// Set width and height.
-#page(width: 120pt, height: 120pt)
+#page(width: 80pt, height: 80pt)
[#page(width: 40pt) High]
[#page(height: 40pt) Wide]
// Set all margins at once.
[
- #page(margins: 30pt)
- #align(top, left)[TL]
- #align(bottom, right)[BR]
+ #page(margins: 5pt)
+ #place(top, left)[TL]
+ #place(bottom, right)[BR]
]
// Set individual margins.
@@ -26,15 +26,10 @@
// Flipped predefined paper.
[#page(paper: "a11", flip: true) Flipped A11]
-// Flipped custom page size.
-#page(width: 40pt, height: 120pt)
-#page(flip: true)
-Wide
-
---
// Test a combination of pages with bodies and normal content.
-#page(height: 50pt)
+#page(width: 80pt, height: 30pt)
[#page() First]
[#page() Second]
@@ -43,4 +38,9 @@ Wide
Fourth
[#page(height: 25pt)]
Sixth
-[#page() Seventh and last]
+[#page() Seventh]
+
+---
+#page(width: 80pt, height: 40pt, fill: eastern)
+#font(15pt, "Roboto", fill: white, smallcaps: true)
+Typst