Herbert Voss wrote: [...] > > have written some latex macros to > > get the kind of listings I want, but \marginpar fails > > inside a float. Is there another way of achieving something similiar? > > do you really need the floats? Or is it only the caption > which is important for you? If yes, than try the nonfloat > package, or controll the figure/algorithm counter by yourself.
I need floats because the listings tend to be half a page or so, causing lots of early page breaks if I use minipages. I don't want to break the page in the middle of code either. That gets awkward because I use two columns. Helge Hafting