#Saw some nicely presented tables recently and decided to throw my hat in the ring too
3 messages · Page 1 of 1 (latest)
And what would you say if I told you it was generated using a nested config by column with inherited values
..rigor-table(
stroke: none,
column-gutter: (0.5em, 0.5em, 0.5em, 0em, 0.5em, 0em),
columns: (
(
key: "date",
display: [Date],
fill: bg-fill-1,
width: 1.5cm,
align: horizon + center,
),
(
key: "particulars",
display: text(tracking: 5pt)[Particulars],
align: horizon,
fill: white,
width: 10fr,
),
(
key: "ledger",
display: [Ledger],
width: 2cm,
fill: bg-fill-2,
align: horizon + center,
),
(
key: "amount",
display: align(center)[Amount],
fill: bg-fill-1,
align: horizon,
children: (
(
key: "unit",
display: align(left)[£],
width: 4fr,
align: horizon + right
),
(
key: "decimal",
display: align(right, text(number-type: "old-style")[.00]),
width: 2fr,
align: horizon + left
),
)
),
(
key: "total",
display: align(center)[Total],
fill: white,
children: (
(
key: "unit",
display: align(left)[£],
width: 4fr,
align: horizon + right
),
(
key: "decimal",
display: align(right, text(number-type: "old-style")[.00]),
width: 2fr,
align: horizon + left
),
)
)
),
(),
..(..(v(1em),)*7, table.hline(stroke: midrule-stroke))*10,
),
)```