Skip to main content

define_counter_ids

Function define_counter_ids 

Source
pub fn define_counter_ids(
    ctr: &str,
    within: &str,
    options_opt: Option<&NewCounterOptions<'_>>,
) -> Result<()>
Expand description

The id half of new_counter (Perl Package.pm:689-705, NewCounter’s idprefix/idwithin/nested): records @ID@prefix@<ctr> and nested_counters_<ctr>, and defines \the<ctr>@ID and \@<ctr>@ID. A binding calls it alone for a counter a raw class declared, to give it the ids its standard-class binding gives (the KOMA classes, koma_script.rs: S1.SS1, not section1.subsection1); the register and its reset list stay the class’s.