remove useless cat
improve the filename of the temporary tex file