From be2d4161e9537c41476103f75954d12952e91016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Rudowicz?= Date: Fri, 24 Jul 2026 18:23:59 +0200 Subject: [PATCH] Initial commit --- 0.0.1/hswro.typ | 38 ++++++++++++++++++++++++++++++++++++++ README.md | 14 ++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 0.0.1/hswro.typ create mode 100644 README.md diff --git a/0.0.1/hswro.typ b/0.0.1/hswro.typ new file mode 100644 index 0000000..5d11c77 --- /dev/null +++ b/0.0.1/hswro.typ @@ -0,0 +1,38 @@ +#let template( + document_date: datetime.today(), + city: "Wrocław", + page_type: "a4", + header_text: "", + heading_vspace: 10%, + page_margin: (top: 150pt), + doc +) = { +set page( + page_type, + margin: page_margin, + header: [ + #align(bottom)[#box(height: 30pt ,image("HSWRO-logo-mono.svg")) #h(1fr) #if document_date != none [#city, #document_date.display()] #header_text] + #rect( + height: 1pt, + width: 100%, + fill: black) + ], +) +show heading.where(level: 1): htext => [ + #set align(center) + #htext + #v(heading_vspace) +] +doc +} + + +#let dotted = tiling(size: (3pt, 6pt))[ + #place(rect(width: 50%, height: 100%, fill: black)) +] + +#let dotline(width: 100%) = [#rect(height: 0.5pt, width: width, fill: dotted)] + +#let signatures(who) = [#v(60pt)#columns(who.len())[ + #(who.map(name => [#dotline()#name.name\ #name.position]).join(colbreak())) +]] diff --git a/README.md b/README.md new file mode 100644 index 0000000..059ed6c --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# Hackerspace Wrocław typst package + +## Installation + +Clone this repository into your Typst packages directory, but call the checked out repository `hswro`. For example: + +- On Linux: `~/.local/share/typst/packages` +- On MacOS: `~/Library/Application Support/typst/packages` +- On Windows: `%APPDATA%/typst/packages` + +The directory may not exist, you may need to create it first. More info in [the Typst package repository](https://github.com/typst/packages#local-packages). If you're not sure which directory to use, run `typsy info` to see which directory is in use in your system. + +This will not be needed when we publish the package, so bear with us for a moment. +