Not too well up on LaTeX, but I want to use the listings package for listings spanning a two-column format.

Unfortunately, asterisks cannot save me (like for figures/tables); this doesn't work:


I've Googled about, but got no satisfactory answer, and getting a bit desperate. Should be simple... hope I'm not missing something stupid. Perhaps it's possible to embed this into a separate spanning float?


(P.S., I've posted this on the main stackoverflow site as well... https://stackoverflow.com/posts/3744232/edit if this is considered a duplicate, please comment and I'll remove the other. Getting a bit desperate fighting a deadline.)

1 Answer 1


The answer is in the listings documentation.

  • So simple :). Many thanks for that. I had scanned the listings documentation a few times and had missed it (was rushing for a deadline). I had also scanned a few forums. In the end, managed to fit the listing in one column with 'tiny' font... not ideal, but now I know for future.
    – badroit
    Sep 19, 2010 at 15:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .