diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-12-08 11:15:04 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-12-08 11:36:18 +0100 |
| commit | 64f938b449b7ff5e53b6a06ed943bf9dedc1014b (patch) | |
| tree | c8237458ea10c21e9b3ce9fc2c02bdd7df9a1fca /tests/layouts | |
| parent | f364395e1d774456500ea61bb7b931f48a62ddfa (diff) | |
Improve testers ♻
Diffstat (limited to 'tests/layouts')
| -rw-r--r-- | tests/layouts/align.typ | 23 | ||||
| -rw-r--r-- | tests/layouts/coma.typ | 26 | ||||
| -rw-r--r-- | tests/layouts/lines.typ | 14 |
3 files changed, 63 insertions, 0 deletions
diff --git a/tests/layouts/align.typ b/tests/layouts/align.typ new file mode 100644 index 00000000..a7101932 --- /dev/null +++ b/tests/layouts/align.typ @@ -0,0 +1,23 @@ +[box][ + A short sentence. [align: right][words.] + + A short sentence. [n] [align: right][words.] + + A short sentence. [par.break] [align: right][words.] + + [align: bottom] + A longer sentence with a few more words. +] + +[page.break] + +[box][ + [align: vertical=top] + Top + + [align: vertical=center] + Center + + [align: vertical=bottom] + Bottom [n] Bottom [n] Bottom +] diff --git a/tests/layouts/coma.typ b/tests/layouts/coma.typ new file mode 100644 index 00000000..d0a02b74 --- /dev/null +++ b/tests/layouts/coma.typ @@ -0,0 +1,26 @@ +[page.size: width=450pt, height=300pt] +[page.margins: 1cm] + +[box][ + *Technical University Berlin* [n] + *Faculty II, Institute for Mathematics* [n] + Secretary Example [n] + Prof. Dr. Example [n] + Assistant #1, Assistant #2, Assistant #3 +] +[align: right][*WiSe 2019/2020* [n] Week 1] + +[v: 6mm] + +[align: center][ + *3. Ubungsblatt Computerorientierte Mathematik II* [v: 0.3mm] + *Abgabe: 03.05.2019* (bis 10:10 Uhr in MA 001) [v: 0.3mm] + *Alle Antworten sind zu beweisen.* +] + +*1. Aufgabe* [align: right][(1 + 1 + 2 Punkte)] + +Ein _Binärbaum_ ist ein Wurzelbaum, in dem jeder Knoten ≤ 2 Kinder hat. +Die Tiefe eines Knotens _v_ ist die Länge des eindeutigen Weges von der Wurzel +zu _v_, und die Höhe von _v_ ist die Länge eines längsten (absteigenden) Weges +von _v_ zu einem Blatt. Die Höhe des Baumes ist die Höhe der Wurzel. diff --git a/tests/layouts/lines.typ b/tests/layouts/lines.typ new file mode 100644 index 00000000..705de638 --- /dev/null +++ b/tests/layouts/lines.typ @@ -0,0 +1,14 @@ +[page.size: height=5cm] + +Line. + +[box][ + Lines with [box][two] [box][boxes]. + + Lines with two boxes. +] +[box][ + Lines without two boxes. + + Lines without two boxes. +] |
