AutoNumberingState is used to keep track of the current state of the auto-numbering process, including counters for heading levels and objects, current depth, and configuration settings.
Example code to initialize AutoNumberingState:
// Set Counters for equation numbering constlevelCounters: number[] = newArray(maxDepth).fill(0); // maintain two unique counters for non-heading and heading equations constnumberingState: AutoNumberingState = { levelCounters, objNumberBeforeHeading:0, objNumber:0, currentDepth:0, maxDepth, delimiter, globalPrefix, noHeadingObjPrefix:noHeadingEquationPrefix };
AutoNumberingState is used to keep track of the current state of the auto-numbering process, including counters for heading levels and objects, current depth, and configuration settings. Example code to initialize AutoNumberingState: