pub fn reset_counter_in_cascade(
ctr: &Token,
path: &mut Vec<String>,
tex_step: bool,
) -> Result<()>Expand description
reset_counter within one cascade: path holds the counters stepped or reset on the way to ctr, from
path[0], which tex_step says TeX steps too (\stepcounter), not LaTeXML alone (an id’s UN counter, a reset).
A cycle of reset lists (\newcounter{subsubsection}[subsubsection], AEA.cls:800, witness 2308.05200; any
\@addtoreset/\numberwithin chain back to its start) loops in TeX’s \@stpelt (latex.ltx:10138) and in
Perl’s ResetCounter (Package.pm:892, deep recursion) once stepped. A counter already on the path is reset, so
it is skipped: an Error where TeX’s own lists loop from that step (“TeX capacity exceeded”), else a Warning naming
it (each once; its UN companion, whose list mirrors its own, is not named).