Closed YDX-2147483647 closed 1 year ago
All figures' (equivalent) supplements are "figure", and they share a universal counter. When you reference table or something other than "figure", the label (and the counter) differs from what is shown.
figure
"figure"
table
kind, supplement, and counter are respected.
kind
supplement
counter
The example of modifying the appearance in Figure Function – Typst Documentation.
#show figure: it => align(center)[ #it.caption | #emph[ #it.supplement #it.counter.display(it.numbering) ] #v(10pt, weak: true) #it.body ]
https://github.com/typst/templates/commit/39bcb0aa832dd203fdef8a26ae1532d047066092
Relates-to: #8
The following is the result of diff-pdf. (cyan: new, red: old, black: unchanged)
Thanks for the fix!
Before
All
figure
s' (equivalent) supplements are"figure"
, and they share a universal counter. When you referencetable
or something other than"figure"
, the label (and the counter) differs from what is shown.After
kind
,supplement
, andcounter
are respected.Relevant
The example of modifying the appearance in Figure Function – Typst Documentation.
https://github.com/typst/templates/commit/39bcb0aa832dd203fdef8a26ae1532d047066092
Relates-to: #8