Rowspan inside a table

Hello,

I’m trying to have 3 cells in a table to span 2 rows, I’ve checked on the app and in the documentation, but it seems that it does not work for me as it is here:

#figure(
 table(
  columns: 3,
  align: horizon,
  table.cell(colspan: 3, align: center, [`empty`]),
  [`charybde`], [`1U`], [`Dell R350`],
  table.cell(colspan: 3, align: center, [`empty`]),
  [`scylla`], [`1U`], [`Dell R350`],
  table.cell(colspan: 3, align: center, [`empty`]),
  [`wombat`], [`1U`], [`QNAP`],
  table.cell(colspan: 3, align: center, [`empty`]),
  [`capybara`], [`1U`], [`QNAP`],
  table.cell(colspan: 3, align: center, [`empty`]),
  table.cell(rowspan: 2, [`quokka`]), table.cell(rowspan: 2, `2U`), table.cell( rowspan: 2, `Dell 7960`),
  //
 
  table.cell(colspan: 3, align: center, [`empty`]),
 ),
 caption: [Rack placement],
) <rack-assignments>

the line with quokka does not span two rows. I tried setting the rows property to 12 or 13, to no avail.
I’m probably missing something basic, can anyone help?

Thanks.

Hi there @Keltounet ,

In this specific case, you need to have set rows size to something else than auto for that to work.

Try:

...
  table(rows: 1.2em, // adjust to your liking
  ...
)
...

This is the same as How can i make a table cell pass each other? - #5 by bluss

2 Likes

Thanks, it works. I didn’t expect this, but probably because I’m not familiar yet on how Typst works.