diff --git a/.gitignore b/.gitignore deleted file mode 100644 index a136337..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.pdf diff --git a/assets/ccchh-no-padding.svg b/assets/ccchh-no-padding.svg deleted file mode 100644 index 7e41354..0000000 --- a/assets/ccchh-no-padding.svg +++ /dev/null @@ -1,143 +0,0 @@ - - - - Exported SVG - - - - - - diff --git a/label-item-rotated.typ b/label-item-rotated.typ deleted file mode 100644 index e86e97a..0000000 --- a/label-item-rotated.typ +++ /dev/null @@ -1,72 +0,0 @@ -#set text( - font: "Inter", - fallback: false, - size: 11pt, - lang: "en", -) - -// for DK-11208 (address label) -#set page( - width: 38mm, - height: 90mm, - flipped: true, - // Those are modified margins from label-item.typ. See that file for - // documentation on why these margins are the way they are. - // Of note for this paticular document: - // - We don't have a footer, so no need to add 9pt to the bottom margin. - // - Since this document is flipped, the margins are on different sides. - margin: (bottom: 0mm, top: 4mm, left: 9mm, right: 0mm), -) - -#import "@preview/cades:0.3.0": qr-code - -#let item(itemname, itemslug, usage) = [ - #grid( - columns: 1, - // 9pt for the bottom row to make its content fit on the page. - rows: (1fr, 9pt), - gutter: 2mm, - [ - #grid( - columns: (1fr, auto), - rows: 1, - gutter: 2mm, - [ - == #itemname - - === Usage - #usage - ], - [ - #qr-code("https://wiki.hamburg.ccc.de/item:" + itemslug) - ] - ) - ], - [ - #grid( - columns: (1fr, auto), - rows: 1, - gutter: 2mm, - [ - #set text(size: 8pt) - #set align(start + bottom) - wiki.hamburg.ccc.de/item:#itemslug - ], - [ - #set align(end + bottom) - // For a 9pt ccchh.svg with padding, 6.84pt is roughly the size of the - // actual logo. - #image("assets/ccchh-no-padding.svg", height: 6.84pt, alt: "CCCHH") - ], - ) - ] - ) -] - -#item( - "Prusa i3 MK3S", - "prusa-i3", - // "Introduction required" - "See instructions (in the Wiki)" - // "Freely" -) diff --git a/label-item.typ b/label-item.typ index 3153bd2..651cbd5 100644 --- a/label-item.typ +++ b/label-item.typ @@ -10,41 +10,7 @@ width: 38mm, height: 90mm, flipped: false, - // Because, for this document, our printer setup - a Brother P-touch QL-500 - // label printer driven by a CUPS with the printer-driver-ptouch - and - // DK-11208 Large Address Labels (38x90mm), either the printer driver or the - // printer itself doesn't properly print on the labels, we need to deploy some - // workarounds using margins. - // Link to the printer-driver-ptouch: - // https://github.com/philpem/printer-driver-ptouch - // - // For the horizontal margins, we use a 4mm margin on the left and a 0mm - // margin on the right. - // Do this because by default the print itself is offset to the left sadly. It - // seems like the printer is printing from the very edge, where the label - // roll, but not the label itself, is. On the label roll on the left there are - // 2mm of material until the label itself starts, so we need to offset by 2mm - // on the left for the print to be on the label itself. However this offset - // also results in a forced margin of 2mm on the right, so to have an even - // margin on the resulting label, add another 2mm of margin on the left, - // resulting in 4mm of margin on the left in total. Also just don't have any - // margin on the right, since there's a forced margin already anyway. - // - // For the vertical margins, we use a 0mm top margin and a 9mm + 9pt bottom - // margin. - // Do this because the printer doesn't print from the very top of the label - // sadly, so since we then have a forced margin there anyway (one of 6mm), we - // don't need to add any top margin. - // On the bottom, we already need a margin of 9pt for the image to be fully on - // the page. However, because the printer doesn't start at the very top, the - // printing ends after the label already ended. To combat this, add a margin - // of 7mm for the logo to still be on the page and add another 2mm for the - // margin to be same as the margin at the sides (resulting in 9mm). - // - // These workarounds were developed for this document, our Brother P-touch - // QL-500 label printer in combination with DK-11208 Large Address Labels - // (38x90mm). - margin: (left: 4mm, right: 0mm, top: 0mm, bottom: 9mm + 9pt), + margin: (x: 3mm, top: 3mm, bottom: 3mm+9pt), footer-descent: 0%, footer: [ #set text(size: 8pt) @@ -55,18 +21,16 @@ #import "@preview/cades:0.3.0": qr-code -#let item(itemname, itemslug, usage) = [ - == #itemname - #qr-code("https://wiki.hamburg.ccc.de/item:" + itemslug) +#let item(itemslug) = [ + #qr-code("https://wiki.hamburg.ccc.de/item:#itemslug") #text(8pt)[wiki.hamburg.ccc.de/item:#itemslug] - === Usage - #usage ] -#item( - "Prusa i3 MK3s", - "prusa-i3", - // "Introduction required" - "See instructions (in the wiki)" - // "Freely" -) +== Prusa i3 MK3S + +#item[prusa-i3] + +=== Usage +//Introduction required +See instructions (in the wiki) +//Freely