Edit Latex document