summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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",