Cleanup tex.