[texhax] listings.sty question: how to implement single-spacing

martin f krafft madduck at madduck.net
Thu Jun 18 17:08:56 CEST 2009


also sprach Ulrike Fischer <news3 at nililand.de> [2009.06.17.1203 +0200]:
> There is no need to use an environment. Use the command:
> 
> \documentclass{article}
>   \usepackage{listings,setspace}
>   \doublespacing %for test
>   \lstnewenvironment{mylisting}
>   {\singlespacing\lstset{language=pascal}}

Grand! This worked. Danke!

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"time flies like an arrow. fruit flies like a banana."
                                                       -- groucho marx
 
spamtraps: madduck.bogus at madduck.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
URL: <http://tug.org/pipermail/texhax/attachments/20090618/b600c30e/attachment.bin>


More information about the texhax mailing list