I am not very familiar with all latex details, but I'd like to use the listings
package in a tufte-book document. However, the listings
package places its captions above or below the listing and I couldn't find a way to adjust that in a way so that the caption is put to the page margin as with tufte-book's \marginnote
etc.
Any idea how to solve that?