summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-10-16 21:58:22 +0200
committerLaurenz <laurmaedje@gmail.com>2019-10-16 21:58:22 +0200
commit58693486f97ddbb34595efa1a81a4e7b1d3204c9 (patch)
tree4e8c066928361df07d238c00c1cea997c4cdabc9 /tests
parentf2f05e07b0ff2d98e3c822b2618d02281ed1078c (diff)
Allow center alignment 📐
Diffstat (limited to 'tests')
-rw-r--r--tests/layouts/align.typ9
-rw-r--r--tests/layouts/pagebreaks.typ2
-rw-r--r--tests/layouts/shakespeare.typ7
3 files changed, 11 insertions, 7 deletions
diff --git a/tests/layouts/align.typ b/tests/layouts/align.typ
new file mode 100644
index 00000000..8cad240c
--- /dev/null
+++ b/tests/layouts/align.typ
@@ -0,0 +1,9 @@
+{size:150pt*206pt}
+
+[align: left][Left: {lorem:20}]
+
+[align: right][Right: {lorem:20}]
+
+[align: center][Center: {lorem:80}]
+
+[align: left][Left: {lorem:20}]
diff --git a/tests/layouts/pagebreaks.typ b/tests/layouts/pagebreaks.typ
index 6887613f..00684f56 100644
--- a/tests/layouts/pagebreaks.typ
+++ b/tests/layouts/pagebreaks.typ
@@ -1,2 +1,2 @@
{size:200pt*200pt}
-{lorem:400}
+{lorem:300}
diff --git a/tests/layouts/shakespeare.typ b/tests/layouts/shakespeare.typ
index 09edd361..19450ce4 100644
--- a/tests/layouts/shakespeare.typ
+++ b/tests/layouts/shakespeare.typ
@@ -1,8 +1,3 @@
-// Basic unboxed
-{include:shakespeare.tpl}
-
-// Boxed, but still left-aligned
+[align: center][{include:shakespeare.tpl}]
[align: left][{include:shakespeare.tpl}]
-
-// Boxed, and right-aligned
[align: right][{include:shakespeare.tpl}]