cleaning latex codes