diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-17 10:12:34 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-17 10:12:34 +0200 |
| commit | f22f9513aea21408ebf6febd01912e630e9ad5e6 (patch) | |
| tree | 06885bca8bc31d26189f33c059649ed7909af282 /tests | |
| parent | 9a1d57a11a510b8e6af024b4338ee58d791f3088 (diff) | |
Add pagebreak function ⏭
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/layouts/align.typ | 28 | ||||
| -rw-r--r-- | tests/layouts/pagebreaks.typ | 12 | ||||
| -rw-r--r-- | tests/layouts/styles.typ | 13 |
3 files changed, 39 insertions, 14 deletions
diff --git a/tests/layouts/align.typ b/tests/layouts/align.typ index f13a2010..68e5fab5 100644 --- a/tests/layouts/align.typ +++ b/tests/layouts/align.typ @@ -1,25 +1,33 @@ -{size:150pt*208pt} +{size:150pt*215pt} -// Without newline in between +// ---------------------------------- // +// Without newline in between. [align: left][Left: {lorem:20}] [align: right][Right: {lorem:20}] -// With newline in between +// Over three pages. [align: center][Center: {lorem:80}] -[align: left][Left: {lorem:20}] +// Over multiple pages after the pervious 3-page run. +[align: left][Left: {lorem:80}] + +[pagebreak] -// Context-modifying align +// ---------------------------------- // +// Context-modifying align. [align: right] -New Right: {lorem:30} +Context Right: {lorem:10} -[align: left][Inside Left: {lorem:10}] +[align: left][In-between Left: {lorem:10}] Right Again: {lorem:10} -// Reset context-modifier +// Reset context-modifier. [align: left] -// All in one line -{lorem:25} [align: right][{lorem:50}] {lorem:15} +[pagebreak] + +// ---------------------------------- // +// All in one line. +All in one line: {lorem:25} [align: right][{lorem:50}] {lorem:15} diff --git a/tests/layouts/pagebreaks.typ b/tests/layouts/pagebreaks.typ index 00684f56..8de361ab 100644 --- a/tests/layouts/pagebreaks.typ +++ b/tests/layouts/pagebreaks.typ @@ -1,2 +1,10 @@ -{size:200pt*200pt} -{lorem:300} +{size:150pt*200pt} +{lorem:100} + +[pagebreak] +[pagebreak] + +{lorem:20} +[pagebreak] + +{lorem:150} diff --git a/tests/layouts/styles.typ b/tests/layouts/styles.typ index 767a0b73..b3f67132 100644 --- a/tests/layouts/styles.typ +++ b/tests/layouts/styles.typ @@ -1,5 +1,4 @@ -_Multiline:_ -{lorem:45} +{size:250pt*500pt} _Emoji:_ Hello World! 🌍 @@ -8,3 +7,13 @@ built-in syntax! _Styles with functions:_ This [bold][word] is made bold and [italic][that] italic using the standard library functions `bold` and `italic`! + +[italic] +Styles can also be changed through [bold] context modification. +This works basically in the same way as the built-in syntax. +_ + +This is not italic anymore, but still bold. +[bold] + +This is completely reset. 😀 |
