diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-16 21:58:22 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-16 21:58:22 +0200 |
| commit | 58693486f97ddbb34595efa1a81a4e7b1d3204c9 (patch) | |
| tree | 4e8c066928361df07d238c00c1cea997c4cdabc9 /tests | |
| parent | f2f05e07b0ff2d98e3c822b2618d02281ed1078c (diff) | |
Allow center alignment 📐
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/layouts/align.typ | 9 | ||||
| -rw-r--r-- | tests/layouts/pagebreaks.typ | 2 | ||||
| -rw-r--r-- | tests/layouts/shakespeare.typ | 7 |
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}] |
