PgBiel / typst-tablex

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

Set kind of tablex to 'table', to get the supplement right if it is used inside a figure environment #57

Closed JMNnl closed 1 year ago

JMNnl commented 1 year ago

Hi, this is only a small issue: The kind() of a tablex() is set to the figure type, but should be set to table to get the supplement correctly if it is used inside a figure environment to give it a caption and make it referenceable. Minimal example of the issue is given in the image below:

grafik

Workaround: set the type inside the figure environment manually, see documentation for details https://typst.app/docs/reference/meta/figure/#parameters-kind

#figure(
  kind: table,
  tablex()
)
PgBiel commented 1 year ago

Hi, see #7

This is a Typst thing and there isn't much we can do at the moment, unfortunately.