pub fn class_has_chapters_now() -> boolExpand description
The “has chapters” test made now (OXIDIZED_DESIGN #179), which settle_chapter_after_class_load stores after each
class load: the class has chapters when
- (a) its own code assigned
\chapter: a meaning other than the kernel’s (a raw class’s\providecommand\chapter, a binding’s own\chapter: ws-rv9x6, nic-series, jmlr, kluwer’schapteroption; a\let\chapter\artchapter), a redefinition the kernel’s lock refused (\chapter:redefined, state.rsinstall_definition, sect08.rs), or a stand-in copy’s definition its binding’s owned name kept aside or declined (pasj00.cls’s\def\chapter; ws-rv9x6.cls:499\newcommand\chapter, 2301.03442). A meaning that is undefined,\relax(\let\chapter\@undefined;\csname chapter\endcsname) or the undefined-error stub of a call is no definition; - (b) a compiled binding made the chapter counter (
\c@chapterof LaTeXML’s own origin: report, book, memoir…; Perl’s own probe, latex_constructs.pool.ltxml:690). A raw or copy\newcounter{chapter}alone is not; - (c) the class is unknown and OmniBus guesses it (
OmniBus:fallback: the class loader’s fallback, and subfiles, whose subfiles.cls:38-40 loads the main file’s class), as an unknown class may well have chapters: OmniBus autoloads book.cls on\thechapter(arXiv:2602.10407).