At Tue, 03 Jan 2012 16:07:14 +0100, Lars Madsen wrote: > because of the expansion you canno store listings keys in macros. Use > listings styles instead, i.e. > > \lstdefinestyle{mystyle}{ > key-vals > } > > and then use it via style=mystyle > > very handy This is what I was looking for but didn't find. Thanks!