Skip to content

\mathcode

yex.keyword.Mathcode(doc, contents=None) #

Bases: yex.keyword.array.Catcode

Source code in yex/control/register.py
159
160
161
162
163
164
165
166
167
168
169
def __init__(self,
             doc: 'yex.document.Document',
             contents: Union[None, Mapping[str, Any]] = None,
             ):

    self.doc = doc

    if contents is None:
        self.contents = self._default_contents()
    else:
        self.contents = contents