I have a dissertation with lots of longtable and tabu environments.
longtable are on their own, while tabu are wrapped inside table environments.
I want something to put in the preamble of the document that makes the tables (both longtable and tabu) invisible. That suppresses them, like those environments were not there.
I have to do that because I have to give the dissertation to a person that needs to edit it, and I have to convert to Word
Surronding every table with the comment environment is not an option, because I have tons of tables.
I tried the solution here but it doesn't work. That solution is to put
\usepackage[figuresonly,nolists,nomarkers]{endfloat}
\renewcommand{\processdelayedfloats}{}
in the preamble. I tried with:
\renewenvironment{tabu}[1]{}{}
But the text of the table is still there unformatted. I assume because that command substitute \begin{tabu} with nothing and \end{tabu} with nothing, leaving the text inside
then I tried:
\renewenvironment{tabu}[1]{\comment}{\endcomment}
After loading the commentpackage, and the file does not compile
Can you help me please?

\usepackage{comment}do\excludecomment{longtabu}– egreg Nov 24 '17 at 18:28