diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-02 16:31:34 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-02 16:31:34 +0200 |
| commit | 533374db14087ac54fdc86afa5f009487ac1b850 (patch) | |
| tree | 0970eb1ca893fe45369d622b5bc1f226f0f66004 /tests | |
| parent | 2188ef6b899cc10c84ed985e9ad9049fcc3eb662 (diff) | |
Refactor argument parsing 🔬
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/coma.typ | 13 | ||||
| -rw-r--r-- | tests/stack.typ | 70 |
2 files changed, 8 insertions, 75 deletions
diff --git a/tests/coma.typ b/tests/coma.typ index be59e6fd..404a81b3 100644 --- a/tests/coma.typ +++ b/tests/coma.typ @@ -1,13 +1,16 @@ [page: width=450pt, height=300pt, margins=1cm] [box][ - *Technische Universität Berlin* [n] - *Fakultät II, Institut for Mathematik* [n] - Sekretariat MA [n] - Dr. Max Mustermann [n] + *Technische Universität Berlin* \ + *Fakultät II, Institut for Mathematik* \ + Sekretariat MA \ + Dr. Max Mustermann \ Ola Nordmann, John Doe ] -[align: right][*WiSe 2019/2020* [n] Woche 3] +[align: right][ + *WiSe 2019/2020* \ + Woche 3 +] [v: 6mm] diff --git a/tests/stack.typ b/tests/stack.typ deleted file mode 100644 index 78f6540e..00000000 --- a/tests/stack.typ +++ /dev/null @@ -1,70 +0,0 @@ -[page: w=5cm, h=5cm, margins=0cm] - -// Test 1 -[box: w=1, h=1, debug=false][ - [box][ - [align: center] - [box: ps=3cm, ss=1cm] - [direction: p=ttb, s=ltr] - [box: ps=3cm, ss=1cm] - [box: ps=1cm, ss=1cm] - [box: ps=2cm, ss=1cm] - [box: ps=1cm, ss=1cm] - ] -] - -// Test 2 -[box: w=1, h=1, debug=false][ - [align: s=top] Top - [align: s=center] Center - [align: s=bottom] Bottom - [direction: p=ttb, s=ltr] - [align: p=bottom, s=origin] - [box: w=1cm, h=1cm] -] - -// Test 3 -[box: w=1, h=1, debug=false][ - [align: center][ - Some-long-spaceless-word! - [align: left] Some - [align: right] word! - ] -] - -// Test 4 -[box: w=1, h=1, debug=false][ - [direction: p=ltr, s=ttb] - [align: center] - [align: s=origin] [box: ps=1cm, ss=1cm] - [align: s=center] [box: ps=3cm, ss=1cm] [box: ps=4cm, ss=0.5cm] - [align: s=end] [box: ps=2cm, ss=1cm] -] - -// Test 5 -[box: w=1, h=1, debug=false][ - [direction: p=btt, s=ltr] - [align: p=center, s=left] - [box: h=2cm, w=1cm] - - [direction: p=rtl, s=btt] - [align: center] - [align: v=origin] ORIGIN - [align: v=center] CENTER - [align: v=end] END -] - -// Test 6 -[box: w=1, h=1, debug=false][ - [box: w=4cm, h=1cm] - - [align: p=right, s=center] CENTER - - [direction: p=btt, s=rtl] - [align: p=center, s=origin] - [box: w=0.5cm, h=0.5cm] - [box: w=0.5cm, h=1cm] - [box: w=0.5cm, h=0.5cm] - - [align: p=origin, s=end] END -] |
