PgBiel/typst-tablex

rowspanx prints overlapping cell

mangkoran opened this issue · 6 comments

When I tried to use nested colspanx and rowspanx, it seems "ONE" is stacked in place, which is not what I expect.

image

#tablex(
  columns: (auto, auto, auto, auto),
  colspanx(4, rowspanx(3)[ONE]),
  [TWO], [THREE], [FOUR], [FIVE],
)

Originally posted by @PgBiel in #104 (reply in thread)

tablex 0.0.7
NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1702233742

Related: #82

MRE:

#import "@preview/tablex:0.0.7": tablex, cellx, colspanx, rowspanx

a

#tablex(
  columns: 3,
  colspanx(3, rowspanx(2)[a])
)

b

produces (Typst 0.10.0)

overlap between the table and the following paragraph

Seems to be a renderer-specific bug, as it renders fine in the experimental CeTZ renderer.

image

The bug will be fixed in the next release. Thanks!

In the meantime, you can use tablex.typ from the 0.0.x branch - just download the file, place it in your project and import it.

Thank you very much! I will just wait for next release as I can work around it 😁

Also CeTZ renderer looks cool 👀