more parsing in latex.py