draft version of LaTeX parser