Rewrite latex all TD