summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxwell Beck <max@rastertail.net>2026-07-13 17:44:44 -0500
committerMaxwell Beck <max@rastertail.net>2026-07-13 17:44:44 -0500
commit9c78ec8e532b69ee643f9b4346187a67a797990c (patch)
treea452ae6de750967b01307ed0d42bf0f3e585733d
parent1363e204b50d7901ba23b35f87aaae63c8c4deec (diff)
grid debug
-rw-r--r--raster.typ13
1 files changed, 12 insertions, 1 deletions
diff --git a/raster.typ b/raster.typ
index de72fa5..cb20fa3 100644
--- a/raster.typ
+++ b/raster.typ
@@ -1,6 +1,7 @@
#let raster(
paper: "a4",
grid: 6mm,
+ show-grid: false,
body: 11pt,
scale-base: 1.2,
rest,
@@ -16,8 +17,18 @@
margin: (
inside: grid * 6,
rest: grid * 4,
- )
+ ),
);
+ set page(
+ background: rect(
+ width: 100%,
+ height: 100%,
+ fill: tiling(size: (grid, grid), {
+ place(line(start: (0%, 0%), end: (100%, 0%), stroke: 2pt + rgb("#ccc")));
+ place(line(start: (0%, 0%), end: (0%, 100%), stroke: 2pt + rgb("#ccc")));
+ }),
+ ),
+ ) if show-grid;
set text(
font: "TeX Gyre Schola",