Skip to main content

copy_provides_keeps_counter

Function copy_provides_keeps_counter 

Source
pub fn copy_provides_keeps_counter(ctr: &str) -> bool
Expand description

Does a stand-in’s copy, read now (note_copy_provides_assignment), (re)declare or renumber the counter ctr the stand-in binding’s own load declared or numbered (its \c@<ctr> assigned while the binding loaded, State::stand_in_meanings, or the \the<ctr> of a counter that exists: \newcounter, \numberwithin, \@addtoreset, \counterwithin)? Then the counter keeps the binding’s numbering: its reset list is the binding’s, as its \the<ctr> is. Any other counter is the copy’s, declared for real (new_counter suspends the copy’s provides-mode for it): the kernel’s equation with the pool’s article \theequation — as article.cls’s defaults yield to the real class’s own: jheppub.sty:313-314 \renewcommand\theequation{\thesection.\arabic{equation}} and \numberwithin{equation}{section} number (2.1) as its PDF does (2112.14648, 2607.20603) — and a counter the binding only has a \the<ctr> for, OmniBus’s \thechapter autoload stub: WileyNJDv5.cls:5728 and MRM.cls:2160 \newcounter{chapter}[part], ws-rv9x6.cls:399 \newcounter{chapter} (2301.03442: declined, \c@chapter was “not a register”). Logged once per copy, at Info.