From 79de9da5a6e010c589346b62e1bcf080df609334 Mon Sep 17 00:00:00 2001 From: ndsboy Date: Sat, 15 Jun 2024 16:13:28 +0200 Subject: [PATCH] add protokoll --- .gitignore | 3 ++- protokoll.typ | 35 +++++++++++++++++++++++++++++++++++ protokoll.yml.template | 24 ++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 protokoll.typ create mode 100644 protokoll.yml.template diff --git a/.gitignore b/.gitignore index 34990f7..a2ad2d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.pdf -*.yml \ No newline at end of file +*.yml +*.png \ No newline at end of file diff --git a/protokoll.typ b/protokoll.typ new file mode 100644 index 0000000..65c656b --- /dev/null +++ b/protokoll.typ @@ -0,0 +1,35 @@ +#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") + +#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") + ] + ] + ] +] \ No newline at end of file diff --git a/protokoll.yml.template b/protokoll.yml.template new file mode 100644 index 0000000..bf24243 --- /dev/null +++ b/protokoll.yml.template @@ -0,0 +1,24 @@ +title: Mitgliederversammlung +date: Montag, 01.01.2024, 12:00 Uhr +location: Gartenstraße 11, Dornstetten +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/")