title: Character spacing in LaTeX with lstlisting package
body: <p>I'm trying to get my code snippets to look as good as possible and so far I'm having troubles with the character spacing. Here is an example of the output: </p>
  
  <p><a href="http://grab.by/grabs/2bb230de7c088d007733f52b95a40363.png">alt text http://grab.by/grabs/2bb230de7c088d007733f52b95a40363.png</a></p>
  
  <p>While the text in small is perfect, all the keywords that are in capital letters look terrible. Here are the settings I use</p>
  
  <pre><code>\lstset{basicstyle=\footnotesize, basewidth=0.5em}
  </code></pre>
  
  <p>If I increase the basewidth, the capital letters look good, but I can't get any decent sized line of code in one line. The following example does not fit in a page and I already put two line breaks in:
  <a href="http://grab.by/grabs/97ec29aa5a6811ce28bcd30bd389b52f.png">alt text http://grab.by/grabs/97ec29aa5a6811ce28bcd30bd389b52f.png</a></p>
  
  <p>Does anyone have a clue how I can get this to work? Using \ttfamily does the trick, however, I'd prefer keeping the font. </p>
  
  <p>Thanks.</p>