[texhax] boldfacing words from a list

Christopher W. Ryan cryan at binghamton.edu
Thu Sep 28 16:05:22 CEST 2006


As I was typing my daughter's school essay the other night, I began
wondering whether there is a latex package that would cause all words
from a particular list, when appearing in a document, to be boldfaced.

She had to write a story with an economics theme, like opening a
business (her's was about a sandwich shop.)  She had to use the
vocabulary words (like capital, competition, labor, wages, management,
profit, and so on).  Those words, when appearing in the story, had to be
boldface.

Anyone know of a package that would take something like

\listofwords{blah foo bar}

in the preamble

and then whenever blah or foo or bar appeared in the source file, the
output would be as if the source file had contained \textbf{blah},
\textbf{foo}, and \textbf{bar}

Just wishful thinking.

Thanks.

--Chris
-- 
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
and Wilson Family Practice Residency, Johnson City, NY
cryanatbinghamtondotedu
GnuPG and PGP public keys available at http://pgp.mit.edu

"If you want to build a ship, don't drum up the men to gather wood,
divide the work and give orders. Instead, teach them to yearn for the
vast and endless sea."  [Antoine de St. Exupery]


More information about the texhax mailing list