included get_latex function