From 72b60dfde751b4a2ab279aa1fcfa559b4a75eb51 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 13 Feb 2023 12:04:26 +0100 Subject: Fill and stroke properties for containers --- tests/typ/layout/columns.typ | 4 ++-- tests/typ/layout/container-fill.typ | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 tests/typ/layout/container-fill.typ (limited to 'tests/typ/layout') diff --git a/tests/typ/layout/columns.typ b/tests/typ/layout/columns.typ index 1d82113c..b5dbf96f 100644 --- a/tests/typ/layout/columns.typ +++ b/tests/typ/layout/columns.typ @@ -6,10 +6,10 @@ #set text(lang: "ar", "Noto Sans Arabic", "IBM Plex Serif") #set columns(gutter: 30pt) -#box(rect(fill: conifer, height: 8pt, width: 6pt)) وتحفيز +#box(fill: conifer, height: 8pt, width: 6pt) وتحفيز العديد من التفاعلات الكيميائية. (DNA) من أهم الأحماض النووية التي تُشكِّل إلى جانب كل من البروتينات والليبيدات والسكريات المتعددة -#box(rect(fill: eastern, height: 8pt, width: 6pt)) +#box(fill: eastern, height: 8pt, width: 6pt) الجزيئات الضخمة الأربعة الضرورية للحياة. --- diff --git a/tests/typ/layout/container-fill.typ b/tests/typ/layout/container-fill.typ new file mode 100644 index 00000000..ab5913ab --- /dev/null +++ b/tests/typ/layout/container-fill.typ @@ -0,0 +1,7 @@ +#set page(height: 100pt) +#let words = lorem(18).split() +#block(inset: 8pt, fill: aqua, stroke: aqua.darken(30%))[ + #words.slice(0, 12).join(" ") + #box(fill: teal, outset: 2pt)[incididunt] + #words.slice(12).join(" ") +] -- cgit v1.2.3