uncover etc. increases figure count
this currently increases the figure count even if the figure is not inside the uncover block.
This is hard to fix without something like https://github.com/andreasKroepelin/polylux/issues/67
I wonder why you would use figures in slides, though? Especially numbered ones.
Oh I have a side-by-side slide, that has text inside uncover on the left, but have one figure on the right, but in this case the figure number increases
I find I can workaround this by using my own counter
#let figure_num = counter("figure_num")
#show figure: it => align(center)[
#it.body
#if it.caption != none [
#text(size: 0.7em, [
#it.supplement
#counter("figure_num").step()
#counter("figure_num").display():
#it.caption
])
]
]
also applies to the page counter. IMO the uncovered slides should keep the same slide number.
That's what you can use #logic.logical-slide.display() for.