This PR attempts to track the counter manipulations in subcaption a bit better.
This package is a bit too clever for our own good; it tries to guess if/when to increment the "main" figure counter when subfigures are used (not even as part of \caption), and is rather brittle (and the binding probably even moreso). I've added a test case to guard against at least some likely regressions.
This PR attempts to track the counter manipulations in
subcaption
a bit better.This package is a bit too clever for our own good; it tries to guess if/when to increment the "main" figure counter when subfigures are used (not even as part of
\caption
), and is rather brittle (and the binding probably even moreso). I've added a test case to guard against at least some likely regressions.Fixes #2095 Fixes #2118