matrix LaTeX parsing now fully functional