'Generate LaTeX Summary Table'

def as_latex(self):

    tables = self.tables
    settings = self.settings
    title = self.title
    if (title is not None):
        title = (('\\caption{' + title) + '}    \\\\')
    else:
        title = '\\caption{}'
    simple_tables = _simple_tables(tables, settings)
    tab = [x.as_latex_tabular() for x in simple_tables]
    tab = '\n\\hline\n'.join(tab)
    out = ('\\begin{table}', title, tab, '\\end{table}')
    out = '\n'.join(out)
    return out
