diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-16 21:31:14 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-16 21:31:14 +0200 |
| commit | f2f05e07b0ff2d98e3c822b2618d02281ed1078c (patch) | |
| tree | 6f4f8fa046af49c319d68c012a078f3489ab92aa /tests/layouts | |
| parent | a3c667895e4e5d5673931415397523b9615008d3 (diff) | |
Implement space extension (multipage) ➕
Diffstat (limited to 'tests/layouts')
| -rw-r--r-- | tests/layouts/pagebreaks.typ | 2 | ||||
| -rw-r--r-- | tests/layouts/shakespeare-right.tps | 88 | ||||
| -rw-r--r-- | tests/layouts/shakespeare.tpl (renamed from tests/layouts/shakespeare.tps) | 0 | ||||
| -rw-r--r-- | tests/layouts/shakespeare.typ | 8 | ||||
| -rw-r--r-- | tests/layouts/styles.typ (renamed from tests/layouts/styles.tps) | 5 |
5 files changed, 11 insertions, 92 deletions
diff --git a/tests/layouts/pagebreaks.typ b/tests/layouts/pagebreaks.typ new file mode 100644 index 00000000..6887613f --- /dev/null +++ b/tests/layouts/pagebreaks.typ @@ -0,0 +1,2 @@ +{size:200pt*200pt} +{lorem:400} diff --git a/tests/layouts/shakespeare-right.tps b/tests/layouts/shakespeare-right.tps deleted file mode 100644 index db670fdf..00000000 --- a/tests/layouts/shakespeare-right.tps +++ /dev/null @@ -1,88 +0,0 @@ -[align: right][ - [bold][Scene 5: _The Tower of London_] - - [italic][Enter Mortimer, brought in a chair, and Gaolers.] - - *Mortimer.* Kind keepers of my weak decaying age, - Let dying Mortimer here rest himself. - Even like a man new haled from the rack, - So fare my limbs with long imprisonment; - And these grey locks, the pursuivants of death, - Nestor-like aged in an age of care, - Argue the end of Edmund Mortimer. - These eyes, like lamps whose wasting oil is spent, - Wax dim, as drawing to their exigent; - Weak shoulders, overborne with burdening grief, - And pithless arms, like to a withered vine - That droops his sapless branches to the ground. - Yet are these feet, whose strengthless stay is numb, - Unable to support this lump of clay, - Swift-winged with desire to get a grave, - As witting I no other comfort have. - But tell me, keeper, will my nephew come? - - *First Keeper.* Richard Plantagenet, my lord, will come. - We sent unto the Temple, unto his chamber; - And answer was return'd that he will come. - - *Mortimer.* Enough; my soul shall then be satisfied. - Poor gentleman! his wrong doth equal mine. - Since Henry Monmouth first began to reign, - Before whose glory I was great in arms, - This loathsome sequestration have I had; - And even since then hath Richard been obscur'd, - Depriv'd of honour and inheritance. - But now the arbitrator of despairs, - Just Death, kind umpire of men's miseries, - With sweet enlargement doth dismiss me hence. - I would his troubles likewise were expir'd, - That so he might recover what was lost. - - - [italic][Enter Richard Plantagenet] - - *First Keeper.* My lord, your loving nephew now is come. - - *Mortimer.* Richard Plantagenet, my friend, is he come? - - *Plantagenet.* Ay, noble uncle, thus ignobly us'd, - Your nephew, late despised Richard, comes. - - *Mortimer.* Direct mine arms I may embrace his neck - And in his bosom spend my latter gasp. - O, tell me when my lips do touch his cheeks, - That I may kindly give one fainting kiss. - And now declare, sweet stem from York's great stock, - Why didst thou say of late thou wert despis'd? - - *Plantagenet.* First, lean thine aged back against mine arm; - And, in that ease, I'll tell thee my disease. - This day, in argument upon a case, - Some words there grew 'twixt Somerset and me; - Among which terms he us'd his lavish tongue - And did upbraid me with my father's death; - Which obloquy set bars before my tongue, - Else with the like I had requited him. - Therefore, good uncle, for my father's sake, - In honour of a true Plantagenet, - And for alliance sake, declare the cause - My father, Earl of Cambridge, lost his head. - - *Mortimer.* That cause, fair nephew, that imprison'd me - And hath detain'd me all my flow'ring youth - Within a loathsome dungeon, there to pine, - Was cursed instrument of his decease. - - *Plantagenet.* Discover more at large what cause that was, - For I am ignorant and cannot guess. - - *Mortimer.* I will, if that my fading breath permit - And death approach not ere my tale be done. - Henry the Fourth, grandfather to this king, - Depos'd his nephew Richard, Edward's son, - The first-begotten and the lawful heir - Of Edward king, the third of that descent; - During whose reign the Percies of the north, - Finding his usurpation most unjust, - Endeavour'd my advancement to the throne ... -] diff --git a/tests/layouts/shakespeare.tps b/tests/layouts/shakespeare.tpl index e0839302..e0839302 100644 --- a/tests/layouts/shakespeare.tps +++ b/tests/layouts/shakespeare.tpl diff --git a/tests/layouts/shakespeare.typ b/tests/layouts/shakespeare.typ new file mode 100644 index 00000000..09edd361 --- /dev/null +++ b/tests/layouts/shakespeare.typ @@ -0,0 +1,8 @@ +// Basic unboxed +{include:shakespeare.tpl} + +// Boxed, but still left-aligned +[align: left][{include:shakespeare.tpl}] + +// Boxed, and right-aligned +[align: right][{include:shakespeare.tpl}] diff --git a/tests/layouts/styles.tps b/tests/layouts/styles.typ index ef5d4e3b..767a0b73 100644 --- a/tests/layouts/styles.tps +++ b/tests/layouts/styles.typ @@ -1,8 +1,5 @@ _Multiline:_ -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy -eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam -voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet -clita kasd gubergren, no sea takimata sanctus est. +{lorem:45} _Emoji:_ Hello World! 🌍 |
