erste Tabelle

This commit is contained in:
2025-12-07 20:13:13 +01:00
parent 48667d9580
commit b4079eed15
3 changed files with 43 additions and 16 deletions

37
svensk_fras.typ Normal file
View File

@@ -0,0 +1,37 @@
- kom ihåg att ta med ... $->$ Denk daran, ... mitzunehmen.
#set table(
stroke: none,
gutter: 0.2em,
fill: (x, y) =>
if x == 0 or y == 0 { gray },
inset: (right: 1.5em),
)
#show table.cell: it => {
if it.x == 0 or it.y == 0 {
set text(white)
strong(it)
} else if it.body == [] {
// Replace empty cells with 'N/A'
pad(..it.inset)[_N/A_]
} else {
it
}
}
#let a = table.cell(
fill: green.lighten(60%),
)[A]
#let b = table.cell(
fill: aqua.lighten(60%),
)[B]
#table(
columns: 3,
[Svensk], [], [Tysk],
[kom ihåg att ta med ...], [$->$], "Denk daran, ... mitzunehmen.",
)