Understanding how table captions work when using Typst format #11456
-
DescriptionHi, I have read #9369 and some of the off-shooting discussions. I am still not clear on why table captions ONLY show up when you add a label and the label must have the For example:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The unsatisfactory answer is that "Figures are special", which is a historical accident from Pandoc's handling of Figure captions. Captions in figures without labels are best thought of as "Pandoc captions", not "Quarto captions". In Quarto, captions are associated with "floats" (more accurately, with |
Beta Was this translation helpful? Give feedback.
The unsatisfactory answer is that "Figures are special", which is a historical accident from Pandoc's handling of Figure captions. Captions in figures without labels are best thought of as "Pandoc captions", not "Quarto captions".
In Quarto, captions are associated with "floats" (more accurately, with
FloatRefTarget
objects). These objects can be Figure, Table, or most anything else. Floats need to have ids whose prefixfig-
,tbl-
, etc associate them with the appropriate type (Figure, Table, etc).