@classmethod
def getsummaryitems(cls, folder):
    result = []
    with open(os.path.join(folder, '{}Summary.txt'.format(cls.__name__))) as f:
        for line in f:
            split = line.rstrip('\n').split('\t')
            kwargs = {}
            for thing in split[:]:
                if thing.startswith('format='):
                    kwargs['format'] = thing.replace('format=', '', 1)
                    split.remove(thing)
                if thing.startswith('latexname='):
                    kwargs['latexname'] = thing.replace('latexname=', '', 1)
                    split.remove(thing)
                if thing.startswith('latexformat='):
                    kwargs['latexformat'] = thing.replace('latexformat=', '', 1)
                    split.remove(thing)
            name = split[0]
            values = split[1:]
            result.append(cls.SummaryItem(name, values, **kwargs))
    return result
@classmethod
def getsummaryitems(cls, folder):
    result = []
    with open(os.path.join(folder, '{}Summary.txt'.format(cls.__name__))) as f:
        for line in f:
            split = line.rstrip('\n').split('\t')
            kwargs = {}
            for thing in split[:]:
                if thing.startswith('format='):
                    kwargs['format'] = thing.replace('format=', , 1)
                    split.remove(thing)
                if thing.startswith('latexname='):
                    kwargs['latexname'] = thing.replace('latexname=', , 1)
                    split.remove(thing)
                if thing.startswith('latexformat='):
                    kwargs['latexformat'] = thing.replace('latexformat=', , 1)
                    split.remove(thing)
            name = split[0]
            values = split[1:]
            result.append(cls.SummaryItem(name, values, **kwargs))
    return result