class documentation

class LimitsProcessor(MathsProcessor):

View In Hierarchy

A processor for limits inside an element.
Method checkcommand Check for the given type as the current element.
Method checklimits Check if the current position has a limits command.
Method checkscript Check if the current element is a sub- or superscript.
Method getlimit Get the limit for a limits command.
Method getscript Get the sub- or superscript.
Method limitsahead Limit the current element based on the next.
Method modifylimits Modify a limits commands so that the limits appear above and below.
Method modifyscripts Modify the super- and subscript to appear vertically aligned.
Method process Process the limits for an element.

Inherited from MathsProcessor:

Method __unicode__ Return a printable description.
def checkcommand(self, contents, index, type):
Check for the given type as the current element.
def checklimits(self, contents, index):
Check if the current position has a limits command.
def checkscript(self, contents, index):
Check if the current element is a sub- or superscript.
def getlimit(self, contents, index):
Get the limit for a limits command.
def getscript(self, contents, index):
Get the sub- or superscript.
def limitsahead(self, contents, index):
Limit the current element based on the next.
def modifylimits(self, contents, index):
Modify a limits commands so that the limits appear above and below.
def modifyscripts(self, contents, index):
Modify the super- and subscript to appear vertically aligned.
def process(self, contents, index):
Process the limits for an element.