PgBiel / typst-tablex

More powerful and customizable tables in Typst
MIT License
370 stars 12 forks source link

rowspanx prints overlapping cell #105

Closed mangkoran closed 8 months ago

mangkoran commented 8 months ago

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 https://github.com/PgBiel/typst-tablex/discussions/104#discussioncomment-7983522

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

PgBiel commented 8 months ago

Related: #82

PgBiel commented 8 months ago

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

PgBiel commented 8 months ago

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

image

PgBiel commented 8 months ago

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

PgBiel commented 8 months ago

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.

mangkoran commented 8 months ago

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

Also CeTZ renderer looks cool 👀