From 5cdecb7d8d3ec7acd2544488b2e3789fe7e414c2 Mon Sep 17 00:00:00 2001 From: June Date: Wed, 6 Mar 2024 22:03:57 +0100 Subject: [PATCH] Move basically the entire label content inside the item function Move basically the entire label content, except for the footer, inside the item function. This results in a more simplified workflow for generating labels for different items, since there's just one function call left where the arguments need to be modified. --- label-item.typ | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/label-item.typ b/label-item.typ index 05d6219..3153bd2 100644 --- a/label-item.typ +++ b/label-item.typ @@ -55,16 +55,18 @@ #import "@preview/cades:0.3.0": qr-code -#let item(itemslug) = [ +#let item(itemname, itemslug, usage) = [ + == #itemname #qr-code("https://wiki.hamburg.ccc.de/item:" + itemslug) #text(8pt)[wiki.hamburg.ccc.de/item:#itemslug] + === Usage + #usage ] -== Prusa i3 MK3S - -#item("prusa-i3") - -=== Usage -//Introduction required -See instructions (in the wiki) -//Freely +#item( + "Prusa i3 MK3s", + "prusa-i3", + // "Introduction required" + "See instructions (in the wiki)" + // "Freely" +)