Skip to main content

register_counter_alias

Function register_counter_alias 

Source
pub fn register_counter_alias(alias: &str, base: &str)
Expand description

Records alias as an alias counter of base, as aliascnt.sty’s \newaliascnt{alias}{base} makes it (aliascnt_sty.rs; llncs.cls v2.16+’s \@spothm, llncs_cls.rs): \refstepcounter{alias} steps base’s root counter (counter_for_type, following a chain of aliases), so the alias shares its number and its ids, while the type stays alias — the counter LaTeX’s \refstepcounter is passed, whose name hyperref gives the target (\<alias>autorefname, \<alias>name; is_counter_alias). Witnesses 2605.20695 (aliascnt lemmas), 2202.10090 (llncs, envcountsame).