[texhax] boldfacing words from a list

Philip TAYLOR P.Taylor at Rhul.Ac.Uk
Thu Sep 28 18:43:23 CEST 2006


She might have learned a great deal if you had taught
her to mark up the essay for herself; if she had done
so, and had tagged each of the vocabulary words as such

     "... avoiding excessive \vocabulary {profits} whilst still ..."

she would not only have achieved her immediate goal but
would have learned a far more important lesson : the
importance of proper tagging in document markup.

"Give a man a fish, and you feed him for a day;
  Teach a man to fish, and you feed him for life."

Philip Taylor
--------
Christopher W. Ryan wrote:
> 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


More information about the texhax mailing list