fix: new typst version
All checks were successful
deploy / deploy (push) Successful in 12s

This commit is contained in:
ndsboy 2025-05-08 19:00:46 +00:00
parent abc5009d36
commit 89c447666d
5 changed files with 21 additions and 94 deletions

View file

@ -7,14 +7,9 @@
"packages": "fonts-noto-core,fonts-ubuntu" "packages": "fonts-noto-core,fonts-ubuntu"
} }
}, },
"containerUser": "vscode",
"containerEnv": { "containerEnv": {
"TYPST_FONT_PATHS": "/usr/share/fonts" "TYPST_FONT_PATHS": "/usr/share/fonts"
}, },
"runArgs": [
"--userns=keep-id",
"--security-opt=label=disable"
],
"customizations": { "customizations": {
"vscode": { "vscode": {
"extensions": [ "extensions": [

View file

@ -1,36 +0,0 @@
#import "templates/tmpl_page.typ": tmpl_page
#import "templates/form.typ": form, form_field
#let config = yaml("protokoll.yml")
#show: doc => tmpl_page(
title: config.title,
subtext: [
#config.date \
#config.location \
Protokoll: #config.author
Leitung: #config.lead
],
doc,
)
#set enum(numbering: "1.a.i.")
#eval(config.content, mode: "markup")
#v(3em)
#form[Unterschrift][
#form_field("Protokollant")
#if config.signature [
#place(top+left)[
#image("signature.png")
]
]
][
#if config.lead != none [
#form_field("Leitung")
#if config.signature [
#place(top+left)[
#image("signature_lead.png")
]
]
]
]

View file

@ -1,24 +0,0 @@
title: Mitgliederversammlung
date: Montag, 01.01.2024, 12:00 Uhr
location: Friedrichstraße 17, 72250 Freudenstadt
author: Autor
lead: Leitung # Optional
signature: false # wenn true wird signature.png (und ggf. signature_lead.png) geladen
content: |
Anwesend: alle
Nicht anwesend: niemand
= TOP 1 - Überschrift
Hier könnte Ihre Werbung stehen!
+ Nummerierter Punkt 1
+ Nummerierter Punkt 2
- Unterpunkt
- Weiterer Unterpunkt
+ Nummerierter Punkt 3
= TOP 2 - Typst
#link("https://typst.app/docs/tutorial/writing-in-typst/")

View file

@ -7,12 +7,8 @@
) = { ) = {
show: doc => common(title: title, doc) show: doc => common(title: title, doc)
set enum( set enum(numbering: "(1)")
numbering: "(1)" set text(size: 12pt)
)
set text(
size: 12pt,
)
// Titelblatt // Titelblatt
align(center)[ align(center)[
@ -23,7 +19,7 @@
#heading(outlined: false)[*#title*] #heading(outlined: false)[*#title*]
] ]
] ]
#changes.at(-3) - #changes.at(-2) \ #changes.at(-3) - #changes.at(-2) \
swablab e.V. \ swablab e.V. \
Katharinenstr. 1 \ Katharinenstr. 1 \
@ -34,9 +30,9 @@
footer: [ footer: [
#text(size: 10pt, fill: colors.subtext)[#changes.at(-3)] #text(size: 10pt, fill: colors.subtext)[#changes.at(-3)]
#h(2fr) #h(2fr)
#text(size: 10pt, fill: colors.subtext)[#counter(page).display()] #text(size: 10pt, fill: colors.subtext)[#context counter(page).display()]
], ],
margin: (bottom: 2.5cm) margin: (bottom: 2.5cm),
) )
// Inhaltsverzeichnis // Inhaltsverzeichnis
@ -49,9 +45,7 @@
outline(title: [*Inhaltsverzeichnis*]) outline(title: [*Inhaltsverzeichnis*])
set par( set par(leading: 1em)
leading: 1em,
)
pagebreak() pagebreak()
@ -80,13 +74,13 @@
#v(1.25em, weak: true) #v(1.25em, weak: true)
] ]
block(breakable: false)[ block(breakable: false)[
#heading([Änderungen]) #heading([Änderungen])
#table( #table(
columns: (auto, auto, 1fr), columns: (auto, auto, 1fr),
inset: 8pt, inset: 8pt,
align: auto, align: auto,
stroke: 0.5pt, stroke: 0.5pt,
[*Version*], [*Änderungsdatum*], [*Änderungen*], [*Version*], [*Änderungsdatum*], [*Änderungen*],
..changes ..changes
)] )]
} }

View file

@ -22,18 +22,16 @@
top + right, top + right,
dx: 2.5em, dx: 2.5em,
dy: -2.5em, dy: -2.5em,
image("lightmode-swablab.png", width: 25%) image("lightmode-swablab.png", width: 25%),
) )
block(width: 100%-100pt, height: 70pt)[ block(width: 100% - 100pt, height: 70pt)[
#par(justify: false)[ #text(font: "Ubuntu", 18pt)[
#text(font: "Ubuntu", 18pt)[ #heading(outlined: false)[*#title*]
#heading(outlined: false)[*#title*]
]
] ]
#subtext #subtext
] ]
doc doc
} }