summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-28 12:40:16 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-28 12:40:16 +0100
commit989d170dc7318ca3cbaa5b76760eb14f4e6a8605 (patch)
tree0a486ddb4d339b8a43313f7c6e18b9595b8fd955 /tests
parent7caf98fe42797eab59a39ef71071030c9790245a (diff)
Fragments
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/graphics/line.pngbin3472 -> 1562 bytes
-rw-r--r--tests/typ/graphics/line.typ30
2 files changed, 16 insertions, 14 deletions
diff --git a/tests/ref/graphics/line.png b/tests/ref/graphics/line.png
index 7858b5c9..4a73ccd7 100644
--- a/tests/ref/graphics/line.png
+++ b/tests/ref/graphics/line.png
Binary files differ
diff --git a/tests/typ/graphics/line.typ b/tests/typ/graphics/line.typ
index 97dcb5cf..2cb2fc9c 100644
--- a/tests/typ/graphics/line.typ
+++ b/tests/typ/graphics/line.typ
@@ -22,22 +22,24 @@
#let star(width, ..args) = box(width: width, height: width)[
#set text(spacing: 0%)
#set line(..args)
-
- #align(left)[
- #line(length: +30%, origin: (09.0%, 02%))
- #line(length: +30%, origin: (38.7%, 02%), angle: -72deg)
- #line(length: +30%, origin: (57.5%, 02%), angle: 252deg)
- #line(length: +30%, origin: (57.3%, 02%))
- #line(length: -30%, origin: (88.0%, 02%), angle: -36deg)
- #line(length: +30%, origin: (73.3%, 48%), angle: 252deg)
- #line(length: -30%, origin: (73.5%, 48%), angle: 36deg)
- #line(length: +30%, origin: (25.4%, 48%), angle: -36deg)
- #line(length: +30%, origin: (25.6%, 48%), angle: -72deg)
- #line(length: +32%, origin: (8.50%, 02%), angle: 34deg)
- ]
+ #set par(align: left)
+ #line(length: +30%, origin: (09.0%, 02%))
+ #line(length: +30%, origin: (38.7%, 02%), angle: -72deg)
+ #line(length: +30%, origin: (57.5%, 02%), angle: 252deg)
+ #line(length: +30%, origin: (57.3%, 02%))
+ #line(length: -30%, origin: (88.0%, 02%), angle: -36deg)
+ #line(length: +30%, origin: (73.3%, 48%), angle: 252deg)
+ #line(length: -30%, origin: (73.5%, 48%), angle: 36deg)
+ #line(length: +30%, origin: (25.4%, 48%), angle: -36deg)
+ #line(length: +30%, origin: (25.6%, 48%), angle: -72deg)
+ #line(length: +32%, origin: (8.50%, 02%), angle: 34deg)
]
-#align(center, grid(columns: (1fr,) * 3, ..((star(20pt, stroke: 0.5pt),) * 9)))
+#align(center, grid(
+ columns: 3,
+ column-gutter: 10pt,
+ ..((star(20pt, stroke: 0.5pt),) * 9)
+))
---
// Test errors.