Initial commit

This commit is contained in:
Michał Rudowicz 2026-07-24 18:23:59 +02:00
commit be2d4161e9
2 changed files with 52 additions and 0 deletions

38
0.0.1/hswro.typ Normal file
View File

@ -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()))
]]

14
README.md Normal file
View File

@ -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.