Sven:
> Hi,
> 
> I'm trying to enbed some code into my document by using the 
> subdocument,type=listing way.
> First I was surprised that the text wasn't automatically set to a 
> typewriter font. But basicstyle=\ttfamily fixed this though I'm not 
> totally certain how.
> 
> My current problem is how to set the line spacing in the listings to 
> singlespace which is set to onehalfspace for the whole document.
> 
> I wonder if there is a smarter way than placing /singlespace before each 
> listing?

Sven, I bet the answer is in the listing package documentation [1].
There numerous parameters with which you can do magic :-)

Cheers, Nikos

Reply via email to