set correct wrap mode for tex