diff options
Diffstat (limited to 'tests/layouting')
| -rw-r--r-- | tests/layouting/align.typ | 23 | ||||
| -rw-r--r-- | tests/layouting/coma.typ | 26 | ||||
| -rw-r--r-- | tests/layouting/lines.typ | 14 |
3 files changed, 63 insertions, 0 deletions
diff --git a/tests/layouting/align.typ b/tests/layouting/align.typ new file mode 100644 index 00000000..a7101932 --- /dev/null +++ b/tests/layouting/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/layouting/coma.typ b/tests/layouting/coma.typ new file mode 100644 index 00000000..d0a02b74 --- /dev/null +++ b/tests/layouting/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/layouting/lines.typ b/tests/layouting/lines.typ new file mode 100644 index 00000000..705de638 --- /dev/null +++ b/tests/layouting/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. +] |
