I have a big LaTeX file which I would like to compile so that certain environments like figure
are not shown. To that end I wanted to make use of the renewenvironment
command. But the facilities of this command are rather limited: essentially, one can only replace an environment by something which is logically also an environment. What would suffice for me, hence, is to introduce a 'dummy enviroment' - one which discards the argument. Is there any way to define it?
EDIT: I also need to eliminate the displaymath
environment. This might be essential, because the argument of it is not going to be valid text on its own.