Added format_latex_table and refactored format_latex_align