Added verschaltung
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 20s
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 20s
This commit is contained in:
@@ -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)),
|
||||
)
|
||||
]
|
||||
Reference in New Issue
Block a user