How to generate automatically numbered captions and references for tables without placing them inside a figure?

Hello,

If you place a table inside a figure in Typst, the table will not automatically break across pages. But if not placed in figure, then there is no original method to make auto numbered caption and reference. This seems a dilemma
, how to resolve this problem?

You can set the figure block to be breakable as shown in the documentation and use captions and references normally.

#show figure: set block(breakable: true)

Prevent page break directly between figure body and caption for breakable figures · Issue #5357 · typst/typst · GitHub. Additionally

#show figure.caption: set block(sticky: true)

is required.

Thanks!

Remember to mark the answer that helped you resolve your problem as a Solution using the :ballot_box_with_check: icon. Don’t feel pressed to do though if there hasn’t been a good solution so far!

1 Like