summaryrefslogtreecommitdiff
path: root/tests/typ/layout/grid-rtl.typ
diff options
context:
space:
mode:
authorPgBiel <9021226+PgBiel@users.noreply.github.com>2024-03-06 05:41:16 -0300
committerGitHub <noreply@github.com>2024-03-06 08:41:16 +0000
commit898367f096fef507488438e00caae8c4ea1d0ff4 (patch)
treedf1911b8ed79fac943e3b4edcc54feb80a94bf90 /tests/typ/layout/grid-rtl.typ
parent5b2ffd9dd0612d391326e2dd5b5a4a026dec80eb (diff)
Repeatable Table Headers [More Flexible Tables Pt.5a] (#3545)
Diffstat (limited to 'tests/typ/layout/grid-rtl.typ')
-rw-r--r--tests/typ/layout/grid-rtl.typ15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/typ/layout/grid-rtl.typ b/tests/typ/layout/grid-rtl.typ
index be9fac51..cea67d96 100644
--- a/tests/typ/layout/grid-rtl.typ
+++ b/tests/typ/layout/grid-rtl.typ
@@ -178,3 +178,18 @@
[e],
[f]
)
+
+---
+// Headers
+#set page(height: 15em)
+#set text(dir: rtl)
+#table(
+ columns: 5,
+ align: center + horizon,
+ table.header(
+ table.cell(colspan: 5)[*Cool Zone*],
+ table.cell(stroke: red)[*N1*], table.cell(stroke: aqua)[*N2*], [*D1*], [*D2*], [*Etc*],
+ table.hline(start: 2, end: 3, stroke: yellow)
+ ),
+ ..range(0, 10).map(i => ([\##i], table.cell(stroke: green)[123], table.cell(stroke: blue)[456], [789], [?], table.hline(start: 4, end: 5, stroke: red))).flatten()
+)