title: LaTeX - Define a list of words to use a certain font
body: <h3>Problem</h3>
  <p>I'm writing an essay/documentation about an application. Within this doc there are a lot of <code>code</code>-words which I want to be highlighted using a different font. Currently I work with:</p>
  <pre><code>{\fontfamily{cmtt}\selectfont SOME-KEY-WORD}
  </code></pre>
  <p>Which is a bit of work to use every time.</p>
  <h3>Question</h3>
  <p>I'm looking for a way to declare a list of words to use a specific font within the text.
  I know that I can use the <em>listings</em> package and define <code>morekeywords</code> which will be highlighted within the listings-environment but I need it in the text.</p>
  <p>I thought of something like this:</p>
  <pre><code>\defineList{\fontfamily{cmtt}}{
      SOME-KEY-WORD-1,
      SOME-Key-word-2,
      ...
  }
  </code></pre>
  <h3>EDIT</h3>
  <p>I forgot to mention that I already tried something like:</p>
  <pre><code>\def\somekeyword{\fontfamily{cmtt}\selectfont some\_key\_word\normalfont}
  </code></pre>
  <p>which is a little bit better then the first attempt but I still need to use <code>\somekeyword</code> in the text.</p>
  <h3>EDIT 2</h3>
  <p>I came upon a workaround:</p>
  <pre><code>\newcommand{\cmtt}[1]{{\fontfamily{cmtt}\selectfont #1\normalfont}}
  </code></pre>
  <p>It's a little better then EDIT but still not the perfect solution.</p>