Reference to figure with tablex is not aware it is table
When I make a tablex table inside a figure and reference it, it thinks it is a figure, and not a table:

Whereas a normal table changes the counter and text separately for tables:

From the docs the text problem has to do with the supplement field. I do not know about the internals of the counters.
I have a deadline in a month (June 1st). Do you think this could be worked out before that, so that I can keep using this awesome package, and get the fix in before the deadline?
This is a Typst limitation, but you can use kind: table on your figure to force Typst to recognize it as a table (which should work).
In the future, I plan on making this easier by adding some option which places the table in a figure for you or something.
Perhaps related: https://github.com/typst/typst/issues/1058
This is a Typst limitation, but you can use
kind: tableon your figure to force Typst to recognize it as a table (which should work).In the future, I plan on making this easier by adding some option which places the table in a figure for you or something.
Doing type: table worked as expected, thanks, as I now ran into this issue even when not using this package in the linked issue above.
When wrapping it in #figure() my tablex seems to be forced onto a single page. All text is supposed to be black and not mostly grey and in the last row 8 rows are overlapping.
When wrapping it in #figure() my tablex seems to be forced onto a single page. All text is supposed to be black and not mostly grey and in the last row 8 rows are overlapping.
Figures are not breakable by default, I'm afraid (see https://github.com/typst/typst/issues/977 and https://github.com/typst/typst/pull/1121). You will need to use #show figure: set block(breakable: true) before the figure to override the default behavior and allow it to span multiple pages.
Edit: also make sure you add kind: table as a parameter to your figure so that Typst displays it as Table <N> when referenced.
Thanks, that had worked but I know just realized that the repeat-header: true, doesn't work anymore. Is that just something that doesn't work atm or am I missing something to make it work?
It is supposed to work in most cases, but sometimes it can break for no apparent reason. This will probably improve for v0.1.0.
is there something I can try to maybe make it work?
is there something I can try to maybe make it work?
Not sure. It tends to work better with smaller tables, or with less tables in the document. I hope to be able to work on this update soon enough though.
Refer to #43 for the full issue.
Blocked by https://github.com/typst/typst/issues/147
