-
I am not sure if it is already reported. I have an example here, which could work in some documents by removing #import "@preview/tablex:0.0.7": tablex, cellx, rowspanx, colspanx
#set page(
height: 10cm,
)
#figure(
tablex(
columns: 2,
align: auto,
auto-vlines: false,
header-rows: 1,
map-cells: cell => {
if cell.y == 0 {
cell.align = center
cell.fill = rgb("#d4ebf2")
cell.content = {
set text(size: 10pt, fill: black)
strong(cell.content)
}
}
else if cell.y > 0 and cell.x == 0 {
cell.content = {
set text(size: 10pt)
strong(cell.content)
}
}
else {
cell.content = {
set text(size: 10pt)
cell.content
}
}
cell
},
/* Header*/
cellx(align: center)[Section], cellx(fill: blue, align: center)[Description],
[*\#*], [*Names end with 'rry'*],
/* Body */
[ 1], [Marry],
[ 2], [Harry],
[ 3], [Larry],
[ 4], [Barry],
[ 5], [Terry],
[ 6], [Jerry],
[ 7], [Perry],
[ 8], [Garry],
[ 9], [Derry],
[10], [Sherry],
[11], [Cherry],
[12], [Emery],
[13], [Hilary],
[14], [Rory],
[15], [Mallory],
[16], [Avery],
[17], [Thierry],
[18], [Merry]
),
kind: table
) |
Beta Was this translation helpful? Give feedback.
Answered by
PgBiel
Dec 31, 2023
Replies: 1 comment 1 reply
-
Use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
PgBiel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
#show figure: set block(breakable: true)