@mathjax/src
    Preparing search index...

    A class for managing the handler maps needed for to hold the definitions for each \begingroup...\endgroup block.

    Index

    Constructors

    Properties

    base: number = NewcommandPriority

    The base group's priority (can change to -2 for sandboxed groups).

    global: { [name: string]: TokenMap }

    The maps used for global definitions (the base maps of the stack).

    handlers: SubHandlers

    The handlers for the configuration containing this stack.

    i: number = NewcommandPriority

    The most recently used priority.

    MARKER: any = ...

    A temporary marker to use when deleting control sequences for global definitions.

    top: number = NewcommandPriority

    The priority of the "top" of the stack when the expression began (used to remove groups added during an expression that is restarted by a retry error).

    handlerConfig: {
        delimiter: NewcommandTables[];
        environment: NewcommandTables[];
        macro: NewcommandTables[];
    } = ...

    The maps to add for each group.

    handlerMap: {
        "new-Command": HandlerType;
        "new-Delimiter": HandlerType;
        "new-Environment": HandlerType;
    } = ...

    Mapping from map name to handler type.

    Methods

    • Removes the given tokens from the specified maps, and returns the global maps for the given names. (Called from NewcommandUtils.checkGlobal() to get the needed global maps when parser.stack.env.isGlobal is set).

      Parameters

      • tokens: string[]

        The token to remove from each handler

      • maps: HANDLERTYPE[]

        The names of the maps to check

      Returns TokenMap[]

      The global maps with the given names

    • Remove groups that are above the top. (Used to restore the stack when an expression is restarted due to a retry error from loading a dynamic component.)

      Returns void

    • Start sandbox mode: drop any open groups, and push a new one, setting that as the base. This is intended for use in forums where multiple users can post. Using this between user posts will prevent definitions made by one user from interfering with other users' posts. Global definitions that are made before the first \begingroupSandbox call will be available to all isolated sandboxes. The \begingroupSandbox macro can not be redefined by a user.

      Returns void