How can I undefine an environment?
This is how to undefine a command:
\newcommand\foo
\makeatletter
\let\foo\@undefined
\makeatother
I need to undefine the spacing environment from the setspace package.
This does not seem to work:
\usepackage{setspace}
\makeatletter
\let\beginspacing\@undefined
\let\endspacing\@undefined
\makeatother
\makeatletter? – Alexey Jun 04 '20 at 14:45\let\whatever\relaxand\let\endwhatever\relaxbefore loading the package (if the environment is calledwhatever). – egreg Jun 04 '20 at 21:50