upgrade for tex files and deleting styles