This might be a question better suited for bash, but posting here as well in case someone has come across the same issue...
When I edit documents together with other people, I often colorcode edits from different people, so that we each know what we have edited when we read a new version of the document.
I do this with e.g. \newcommand{\supernano}[1]{\textcolor{blue}{#1}}
, and then in the text I just put new text into \supernano{}
.
Once we've all read and discussed the new version, we remove all the color coding, but so far I been doing it manually, by searching for and deleting each instance of \supernano{
and going through the text to find the corresponding }
.
Does anyone know of a more efficient way that this could be done? I'm thinking there must be some bash way of using reg expressions to remove the command instances while keeping the text inside, but I haven't been able to find a similar example.