Added verschaltung
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 20s

This commit is contained in:
alexander
2026-01-31 19:17:45 +01:00
parent 1c19402b01
commit 1573913f3f
5 changed files with 318 additions and 15 deletions

View File

@@ -27,6 +27,9 @@
align(left, block(e))
}
#let tableFillHigh = white
#let tableFillLow = color.lighten(gray, 30%)
#let sinTable = [
#let data = json("../sintable.json")
#table(
@@ -34,10 +37,11 @@
rows: data.keys().len(),
stroke: none,
table.hline(stroke: (thickness: 0.3mm)),
fill: (x, y) => if (calc.rem(y, 2) == 0) { color.lighten(gray, 50%) } else { white },
fill: (x, y) => if (calc.rem(y, 2) == 0) { tableFillLow } else { tableFillHigh },
..for (label) in data.keys() {
([*#eval(label, mode: "math")*], )
table.vline(),
..for (i, label) in data.keys().enumerate() {
([*#eval(label, mode: "math")*], if i > 0 { table.vline() } else { table.vline(stroke: none) })
},
table.hline(stroke: (thickness: 0.3mm)),
@@ -46,6 +50,7 @@
for (col) in data.keys() {
(eval(data.at(col).at(i), mode: "math"),)
}
}
},
table.hline(stroke: (thickness: 0.3mm)),
)
]