reworked pdf exporter to use typst
Some checks failed
Tests / Run Go Tests (push) Failing after 1m44s
Some checks failed
Tests / Run Go Tests (push) Failing after 1m44s
This commit is contained in:
63
WIR-typst/main.typ
Normal file
63
WIR-typst/main.typ
Normal file
@@ -0,0 +1,63 @@
|
||||
#set page("a4")
|
||||
#set text(font: "Lato")
|
||||
|
||||
= Stunden
|
||||
|
||||
== Kim Mustermensch
|
||||
|
||||
Zeitraum: 01.10.2025 - 31.10.2025
|
||||
|
||||
Arbeitszeit: 136h 19min
|
||||
|
||||
Überstunden: -39h 41min
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// #show table.cell: it => {
|
||||
// if it.y == 0 {
|
||||
// set text(white)
|
||||
// strong(it)
|
||||
// } else if it.body == [] {
|
||||
// // Replace empty cells with 'N/A'
|
||||
// pad(..it.inset)[0min]
|
||||
|
||||
// } else {
|
||||
// it
|
||||
// }
|
||||
// }
|
||||
|
||||
#let subgrid(body) = {
|
||||
table.cell(colspan: 3, inset: 0em)[
|
||||
#table(
|
||||
columns: (1fr, 1fr, 1fr),
|
||||
gutter: 0em,
|
||||
stroke: black,
|
||||
[..#body]
|
||||
)
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
"01.09.2025",
|
||||
"08:07",
|
||||
"16:28",
|
||||
"Büro",
|
||||
"7h 51min",
|
||||
"30min",
|
||||
"-9min",
|
||||
"02.09.2025",
|
||||
// return work, pause, overtime
|
||||
table.cell(colspan: 3, inset: 0em)[#table(
|
||||
columns: (1fr, 1fr, 1fr),
|
||||
gutter: 0em,
|
||||
stroke: black,
|
||||
[08:12], [16:24], [Büro],
|
||||
[16:30], [17:24], [Homeoffice]
|
||||
)],
|
||||
"6h",
|
||||
"0min",
|
||||
"-1h 15min"
|
||||
|
||||
)
|
||||
Reference in New Issue
Block a user