Dear All,
I have the following problem: in my PhD thesis, I have two "types" of listings - say those that contains definitions and pseudocode and those that contain examples.
I know that I can use the caption package in order to change the appearance of captions for the listings. However, I want to be able to have two different types of captions, one to be used for each different type of listing and to be able to switch between them every time I have a lstlisting environment.
Is there a way of doing this?
Regards,
George
Text Formatting ⇒ Different types of listing captions in the same document
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: Different types of listing captions in the same document
Take a look at \lstnewenvironment (described in the listings package documentation)
Re: Different types of listing captions in the same document
Works like a charm, thank you very much!