[texhax] boldfacing words from a list

Steve Peter speter at dandy.net
Thu Sep 28 20:47:47 CEST 2006


On Sep 28, 2006, at 12:58 PM, Tom Schneider wrote:

>> 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.
>
> Nice.  Presumably one generalizes using:
>
> \newcommand{\vocabulary}{\textbf{#1}}

Almost. You need to tell the new command how many parameters it has:

\newcommand\vocabulary[1]{\textbf{#1}}

Steve



More information about the texhax mailing list