'Returns the LaTeX environment name for the table.
The class currently supports:
* longtable
* tabular
* tabulary'

def get_table_type(self):

    if self.is_longtable():
        return 'longtable'
    elif self.has_verbatim:
        return 'tabular'
    elif self.colspec:
        return 'tabulary'
    elif (self.has_problematic or (self.colwidths and ('colwidths-given' in self.classes))):
        return 'tabular'
    else:
        return 'tabulary'
