Export tables to LaTeX or HTML