title: LaTeX, Two columns, Listings and Numbers
body: <p>I'm trying to get a report done and I have a small problem with the twocolums and the line numbering in listings.</p>
  
  <p>The document is on two columns :</p>
  
  <pre><code>\documentclass[8pt,[...],a4paper,twocolumn]{article}
  </code></pre>
  
  <p>The listings can end up either on the left or the right column. The problem is: if I put </p>
  
  <pre><code>\lstset{numbers=left,frame=tb,[...]}
  </code></pre>
  
  <p>the space between the columns is not sufficient when the listing is on the right column and the text from the first column is written over.</p>
  
  <p>Is there any way to ask the listings to put the line numbers "outside" ? I know I can modify the space between the columns, but I would prefer to move the numbers on the side.</p>
  
  <p>Thanks</p>