diff options
Diffstat (limited to 'tests/typ/insert')
| -rw-r--r-- | tests/typ/insert/circle.typ | 26 | ||||
| -rw-r--r-- | tests/typ/insert/ellipse.typ | 10 | ||||
| -rw-r--r-- | tests/typ/insert/square.typ | 12 |
3 files changed, 24 insertions, 24 deletions
diff --git a/tests/typ/insert/circle.typ b/tests/typ/insert/circle.typ index 8d76f4ef..41e0c40d 100644 --- a/tests/typ/insert/circle.typ +++ b/tests/typ/insert/circle.typ @@ -5,22 +5,22 @@ Auto-sized circle. \ #circle(fill: rgb("eb5278"))[ - #align!(center, center) - But, soft! + #align!(center, center) + But, soft! ] Center-aligned rect in auto-sized circle. #circle(fill: forest)[ - #align!(center, center) - #rect!(fill: conifer) - #pad!(5pt) - But, soft! + #align!(center, center) + #rect!(fill: conifer) + #pad!(5pt) + But, soft! ] 100%-width rect in auto-sized circle. \ #circle(fill: forest)[ - #rect!(width: 100%, fill: conifer) - But, soft! what light through yonder window breaks? + #rect!(width: 100%, fill: conifer) + But, soft! what light through yonder window breaks? ] Expanded by height. @@ -29,11 +29,11 @@ Expanded by height. --- // Test relative sizing. #rect(width: 100%, height: 50pt, fill: rgb("aaa"))[ - #align!(center, center) - #font!(fill: white) - #circle(radius: 10pt, fill: eastern)[A] - #circle(height: 60%, fill: eastern)[B] - #circle(width: 20% + 20pt, fill: eastern)[C] + #align!(center, center) + #font!(fill: white) + #circle(radius: 10pt, fill: eastern)[A] + #circle(height: 60%, fill: eastern)[B] + #circle(width: 20% + 20pt, fill: eastern)[C] ] --- diff --git a/tests/typ/insert/ellipse.typ b/tests/typ/insert/ellipse.typ index 29f9b556..5044219d 100644 --- a/tests/typ/insert/ellipse.typ +++ b/tests/typ/insert/ellipse.typ @@ -3,13 +3,13 @@ --- 100% rect in 100% ellipse in fixed rect. \ #rect(width: 3cm, height: 2cm, fill: rgb("2a631a"))[ - #ellipse!(width: 100%, height: 100%, fill: forest) - #rect!(width: 100%, height: 100%, fill: conifer) - #align!(center, center) - Stuff inside an ellipse! + #ellipse!(width: 100%, height: 100%, fill: forest) + #rect!(width: 100%, height: 100%, fill: conifer) + #align!(center, center) + Stuff inside an ellipse! ] Auto-sized ellipse. \ #ellipse(fill: conifer)[ - But, soft! what light through yonder window breaks? + But, soft! what light through yonder window breaks? ] diff --git a/tests/typ/insert/square.typ b/tests/typ/insert/square.typ index 7d65b529..dd20ca62 100644 --- a/tests/typ/insert/square.typ +++ b/tests/typ/insert/square.typ @@ -3,24 +3,24 @@ --- Auto-sized square. \ #square(fill: eastern)[ - #align!(center) - #pad!(5pt) - #font!(fill: white, weight: bold) - Typst + #align!(center) + #pad!(5pt) + #font!(fill: white, weight: bold) + Typst ] --- // Test height overflow. #page!(width: 75pt, height: 100pt) #square(fill: conifer)[ - But, soft! what light through yonder window breaks? + But, soft! what light through yonder window breaks? ] --- // Test width overflow. #page!(width: 100pt, height: 75pt) #square(fill: conifer)[ - But, soft! what light through yonder window breaks? + But, soft! what light through yonder window breaks? ] --- |
