From 072baca6ba8b3172f3b270fd435b67fdf8a01b76 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Mon, 8 Apr 2024 00:29:52 +0000 Subject: [PATCH] dymo labels can be long, as a treat --- labels_dymo.typ | 2 +- labels_dymo_short.typ | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 labels_dymo_short.typ diff --git a/labels_dymo.typ b/labels_dymo.typ index 406cecd..2ba12dc 100644 --- a/labels_dymo.typ +++ b/labels_dymo.typ @@ -14,7 +14,7 @@ top + left, dx: 1in/4, dy: 0in, - common.address_block(2in + 3in/4, 15in/16, card) + common.address_block(3in + 1in/4, 15in/16, card) ) } } diff --git a/labels_dymo_short.typ b/labels_dymo_short.typ new file mode 100644 index 0000000..406cecd --- /dev/null +++ b/labels_dymo_short.typ @@ -0,0 +1,20 @@ +#{ + set page(width: 3.5in, height: 1.125in, margin: 0em) + + import "common.typ" + + let options = json("cache/options.json") + let cards = options.cards + + for (idx, card) in cards.enumerate() { + if idx != 0 { + pagebreak() + } + place( + top + left, + dx: 1in/4, + dy: 0in, + common.address_block(2in + 3in/4, 15in/16, card) + ) + } +}