brought fix_latex branch up to speed with master, and it typesets by the grace of the latex gods