Skip to content

class Nest

😱 Types incomplete or incorrect? 🙏 Please contribute!


fields


Nest.mode


Nest.mode : number

the meaning of these numbers depends on the engine and sometimes even the version; you can use tex.getmodevalues() to get the mapping: positive values signal vertical, horizontal and math mode, while negative values indicate inner and inline variants (all modes).

Nest.modeline


Nest.modeline : integer

source input line where this mode was entered in, negative inside the output routine (all modes).

Nest.head


Nest.head : Node {
    next: Node?,
    prev: Node?,
    id: integer,
    subtype: integer,
    head: Node?,
    attr: Node,
}

the head of the current list (all modes).

Nest.tail


Nest.tail : Node {
    next: Node?,
    prev: Node?,
    id: integer,
    subtype: integer,
    head: Node?,
    attr: Node,
}

the tail of the current list (all modes).

Nest.prevgraf


Nest.prevgraf : integer

number of lines in the previous paragraph (vertical mode).

Nest.prevdepth


Nest.prevdepth : integer

depth of the previous paragraph (vertical mode).

Nest.spacefactor


Nest.spacefactor : integer

the current space factor (horizontal mode).

Nest.dirs


Nest.dirs : Node {
    next: Node?,
    prev: Node?,
    id: integer,
    subtype: integer,
    head: Node?,
    attr: Node,
}

used for temporary storage by the line break algorithm (horizontal mode).

Nest.noad


Nest.noad : Node {
    next: Node?,
    prev: Node?,
    id: integer,
    subtype: integer,
    head: Node?,
    attr: Node,
}

used for temporary storage of a pending fraction numerator, for over etc. (math mode).

Nest.delimptr


Nest.delimptr : Node {
    next: Node?,
    prev: Node?,
    id: integer,
    subtype: integer,
    head: Node?,
    attr: Node,
}

used for temporary storage of the previous math delimiter, for middle (math mode).

Nest.mathdir


Nest.mathdir : boolean

true when during math processing the mathdir is not the same as the surrounding textdir (math mode).

Nest.mathstyle


Nest.mathstyle : integer

mmode the current mathstyle