Is there a better way to set text parameters per grid/table?
In the example below, I have to explicitly unset the show rules of the outer grid for every inner grid. These show rule reversals are annoying to type and could easily get desynchronized from each other and the larger document.
I wish the grid function itself would accept text properties without having to show-set them before the grid call.
#{
show grid.cell.where(x: 0): set text(size: 14pt, weight: "bold")
show grid.cell.where(x: 2): set text(size: 14pt, weight: "bold")
grid(
columns: 4,
gutter: 2em,
"A",
"Text",
"B",
"Text",
"C",
grid(
columns: 2,
align: (right, left),
gutter: 0.5em,
[Inner], [Grid],
[Inhereits], [Rules],
),
"D",
{
// Need a new scoping and show rule to revert outer changes
show grid.cell: set text(size: 10pt, weight: "regular")
grid(
columns: 2,
align: (right, left),
gutter: 0.5em,
[Inner], [Grid],
[Inhereits], [Rules],
)
}
)
}
Also, is there an easy way to combine the first two lines together with calc.even(x) or similar? I couldn’t figure out the syntax to make where work with an unnamed function.

