In order to revise a draft, and identify related sections, I would like to identify similar words (by color of text, highlight, underline, or otherwise) according to topic.
For example, I would like all uses of the terms "foo" or "bar" highlighted red and all uses of "biz" and "baz" highlighted green.
There might be four or five groups of words or word roots that I want to specify. This is only for revision, so it can be rather crude.
For example, replace this:
with this:
(In the example, it is hard to see the green text; perhaps bold+color or underline would be more useful)
Update A related question provides an answer using XeLaTex. My document does not compile with XeLaTex, I would prefer a solution compatible with pdflatex if available (since that is what I use), though my document also compiles with luatex.
Other related questions:
- Macro: Replace all occurrences of a word (answer is not generic - requires seven lines per string to be replaced)
- automatically apply special formatting to selected words in text (only provides xelatex solution)
- Automatically highlight words from a predefined list (uses chickenize, replaces string but does not add color)