From 67ba8d6c0e7b3326283a8f67d2546cd52df59970 Mon Sep 17 00:00:00 2001 From: frozolotl <44589151+frozolotl@users.noreply.github.com> Date: Fri, 1 Mar 2024 09:18:32 +0000 Subject: Add rounded corners and strokes to highlight (#3526) --- tests/typ/text/deco.typ | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tests/typ') diff --git a/tests/typ/text/deco.typ b/tests/typ/text/deco.typ index dbf86a86..cc9b9b3a 100644 --- a/tests/typ/text/deco.typ +++ b/tests/typ/text/deco.typ @@ -58,6 +58,17 @@ We can also specify a customized value #highlight[abc] #highlight[abc #sym.integral] +--- +// Test highlight radius +#highlight(radius: 3pt)[abc], +#highlight(radius: 1em)[#lorem(5)] + +--- +// Test highlight stroke +#highlight(stroke: 2pt + blue)[abc] +#highlight(stroke: (top: blue, left: red, bottom: green, right: orange))[abc] +#highlight(stroke: 1pt, radius: 3pt)[#lorem(5)] + --- // Test underline background #set underline(background: true, stroke: (thickness: 0.5em, paint: red, cap: "round")) @@ -68,7 +79,6 @@ We can also specify a customized value #set overline(background: true, stroke: (thickness: 0.5em, paint: red, cap: "round")) #overline[This is in the background] - --- // Test strike background #set strike(background: true, stroke: 5pt + red) -- cgit v1.2.3