예제 #1
0
 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
예제 #2
0
 def parse(self, tex):
     MathShift.inEnv.append(None)
     Command.parse(self, tex)
     MathShift.inEnv.pop()
     return self.attributes
예제 #3
0
 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)
예제 #4
0
 def parse(self, tex):
     MathShift.inEnv.append(None)
     Command.parse(self, tex) 
     MathShift.inEnv.pop()
     return self.attributes