I have a .tex file of about 100 pages which is a handout of my answer key to a course I'm teaching. The file contains exercises with provided solutions in red color. I would like to delete all the texts in red color. Deleting these texts one at a time is a daunting task, how do I delete all the texts at a go?
There is a similar question here Create fill-in-the-blank version of a document with ability to toggle blanks on and off but that one talks about creating "empty spaces" or "fill-ins" within the content of the document. My question is about deleting all texts in red not necessary replacing the texts in red color with "empty spaces" or "fill-ins".
The color packages in the .tex file is:
\usepackage[usenames]{color}
\newcommand{\red}[1]{{\color{red}#1}}

\newcommand{\red}[1]{{\color{black}#1}}Have you tried that? – Jes Mar 01 '21 at 22:55\redto\newcommand\red[1]{}and then all text inside\red{...}will go. – David Carlisle Mar 02 '21 at 00:20