pub fn ref_step_counter_planned(
ctype: &str,
before: Vec<Token>,
continued: bool,
) -> Result<SymHashMap<Stored>>Expand description
A counter step as LaTeX’s caption, equation, item and section steps are: \refstepcounter
with its current meaning (latex.ltx:17391-17399 \refstepcounter\@captype, :15737-15738), so a
rebinding applies — floatrow measures each floatbox under \FR@loc@, whose \refstepcounter
is a local \advance undone with the box (floatrow.sty:543-556); cleveref’s (and hyperref’s, on a
format before 2024-11-01) wrap the kernel’s; crossreference.sty and old varioref copy it. As caption does
(caption.sty:551-570): before (its prepare hook) is digested first, and a continued float’s
step suppresses the counter’s own \stepcounter for the length of the \refstepcounter
(\caption@@refcounter), so the number repeats without resets. With the kernel meaning this is
direct; otherwise \refstepcounter{<counter>} is digested — the counter’s name in letters, as LaTeX
passes it (cleveref’s \cref@isinresetlist compares it with \ifx, cleveref.sty:658-685; fncylab’s
\stepcounter{#1} reads it) — with ctype
left for the kernel’s label to make the tags of (a shared-counter theorem’s own type); the props
are the ones it recorded, else (a rebinding that never reaches the kernel) the label of the
counter’s value as it now stands. Perl steps the counter directly (RefStepCounter; KPE #412).
Witness kaytannollista-latexia (floatrow), 2605.17685 (continued floats).
Guards perfect_kernel_batch58::{caption_steps_through_refstepcounter, floatrow_floatbox_steps_its_counter_once, floatbox_steps_its_equation_once, steps_keep_their_type_and_continuation_through_a_wrapper}.