Quantcast
Channel: Highlight every occurrence of a list of words? - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 7

Highlight every occurrence of a list of words?

$
0
0

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:

enter image description here

with this:

enter image description here

(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:


Viewing all articles
Browse latest Browse all 7

Trending Articles