removes TeX constructs from a text file
