Latex rendering: removed unused files, corrected the script.