def parse(self, tex): # JAM: TODO: Do we have an ownerDocument at this point? MathShift._getEnvStack( self ).append(None) Command.parse(self, tex) MathShift._getEnvStack( self ).pop() return self.attributes
def parse(self, tex): MathShift.inEnv.append(None) Command.parse(self, tex) MathShift.inEnv.pop() return self.attributes
def invoke(self, tex): # If we're not in math mode, just treat this as a normal character if not self.ownerDocument.context.isMathMode: return tex.textTokens('_') Command.parse(self, tex)