2024-02-18 23:39:25 +01:00
|
|
|
#set text(
|
2024-02-24 23:31:16 +01:00
|
|
|
font: "Inter",
|
2024-02-18 23:39:25 +01:00
|
|
|
fallback: false,
|
|
|
|
size: 11pt,
|
|
|
|
lang: "en",
|
|
|
|
)
|
|
|
|
|
|
|
|
// for DK-11208 (address label)
|
|
|
|
#set page(
|
|
|
|
width: 38mm,
|
|
|
|
height: 90mm,
|
|
|
|
flipped: false,
|
2024-02-29 23:01:29 +01:00
|
|
|
// 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),
|
2024-02-18 23:39:25 +01:00
|
|
|
footer-descent: 0%,
|
|
|
|
footer: [
|
|
|
|
#set text(size: 8pt)
|
|
|
|
#set align(end)
|
|
|
|
#image("assets/ccchh.svg", height: 9pt, alt: "CCCHH")
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
#import "@preview/cades:0.3.0": qr-code
|
|
|
|
|
2024-03-06 22:03:57 +01:00
|
|
|
#let item(itemname, itemslug, usage) = [
|
|
|
|
== #itemname
|
2024-03-01 18:14:29 +01:00
|
|
|
#qr-code("https://wiki.hamburg.ccc.de/item:" + itemslug)
|
2024-02-18 23:39:25 +01:00
|
|
|
#text(8pt)[wiki.hamburg.ccc.de/item:#itemslug]
|
2024-03-06 22:03:57 +01:00
|
|
|
=== Usage
|
|
|
|
#usage
|
2024-02-18 23:39:25 +01:00
|
|
|
]
|
|
|
|
|
2024-03-06 22:03:57 +01:00
|
|
|
#item(
|
|
|
|
"Prusa i3 MK3s",
|
|
|
|
"prusa-i3",
|
|
|
|
// "Introduction required"
|
|
|
|
"See instructions (in the wiki)"
|
|
|
|
// "Freely"
|
|
|
|
)
|