From 29eb13ca6214461a4b0deb63d589cd39ad6d41c2 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 8 Apr 2022 17:08:30 +0200 Subject: Sum color and length into stroke --- tests/typ/code/repr.typ | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) (limited to 'tests/typ/code/repr.typ') diff --git a/tests/typ/code/repr.typ b/tests/typ/code/repr.typ index f766ee7e..8742f413 100644 --- a/tests/typ/code/repr.typ +++ b/tests/typ/code/repr.typ @@ -1,17 +1,8 @@ // Test representation of values in the document. ---- -// Variables. -#let name = "Typst" -#let ke-bab = "Kebab!" -#let α = "Alpha" - -{name} \ -{ke-bab} \ -{α} - --- // Literal values. +{auto} \ {none} (empty) \ {true} \ {false} @@ -27,29 +18,30 @@ {4.5cm} \ {12e1pt} \ {2.5rad} \ -{45deg} +{45deg} \ +{1.7em} \ +{1cm + 0em} \ +{2em + 10pt} \ +{2.3fr} --- // Colors. -#rgb("f7a20500") +#rgb("f7a20500") \ +{2pt + rgb("f7a20500")} --- // Strings and escaping. -{"hi"} \ -{"a\n[]\"\u{1F680}string"} +#repr("hi") \ +#repr("a\n[]\"\u{1F680}string") --- // Content. -{[*{"H" + "i"} there*]} +#repr[*{"H" + "i"} there*] --- // Functions #let f(x) = x -{rect} \ +{() => none} \ {f} \ -{() => none} - ---- -// When using the `repr` function it's not in monospace. -#repr(23deg) +{rect} -- cgit v1.2.3