class documentation

class LimitsProcessor(MathsProcessor): (source)

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 __str__ Return a printable description.
def checkcommand(self, contents, index, type): (source)

Check for the given type as the current element.

def checklimits(self, contents, index): (source)

Check if the current position has a limits command.

def checkscript(self, contents, index): (source)

Check if the current element is a sub- or superscript.

def getlimit(self, contents, index): (source)

Get the limit for a limits command.

def getscript(self, contents, index): (source)

Get the sub- or superscript.

def limitsahead(self, contents, index): (source)

Limit the current element based on the next.

def modifylimits(self, contents, index): (source)

Modify a limits commands so that the limits appear above and below.

def modifyscripts(self, contents, index): (source)

Modify the super- and subscript to appear vertically aligned.

def process(self, contents, index): (source)

Process the limits for an element.