From 88f39c00c80f0d0d4a11c6db891e489464a32fdb Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sun, 1 Oct 2023 02:35:30 +0000 Subject: [PATCH] Add 4x6 template --- cards_4x6.typ | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 cards_4x6.typ diff --git a/cards_4x6.typ b/cards_4x6.typ new file mode 100644 index 0000000..85dec54 --- /dev/null +++ b/cards_4x6.typ @@ -0,0 +1,23 @@ +#{ + set page(width: 6in, height: 4in, margin: 0em) + + import "common.typ" + + let options = json("options.json") + let cards = options.cards + let args = options.args + + let content_fn = if args.no_content { + _ => [] + } else { + import "content/content.typ" + content.content + } + + for (idx, card) in cards.enumerate() { + if idx != 0 { + pagebreak() + } + common.postcard_content(100%, 100%, content_fn, card) + } +}