add .tex and cleanup