I'm currently writing my Master's thesis and want to avoid the use of "weasel words", i.e., ambigous and vague expressions that should not be in a scientific document. Is there a simple way I can make LaTeX "find" these expressions by providing a list of them and mark them e.g. in red or underline in the final output, so I catch them when proofreading?
Asked
Active
Viewed 34 times
perl -p0e 's/(?<!\\textcolor\{weaselred\}\{)(clearly|many)/\\textcolor{weaselred}{\1}/gi' yourfile > draftfile. Here I used it for the wordsclearlyandmany. You need to define the colorweaselredfor this to work. Using this, you can 'undo' the made changes withperl -p0e 's/\\textcolor\{weaselred\}\{(clearly|many)\}/\1/gi' draftfile > undonefile. Of course this is a basic solution, you can expand it to your liking/needs. You could use it in amakefile for draft versions. – nox Jul 19 '18 at 12:41