set up latex structure, convenience latex2 function, and pacman clone