Text Formatting ⇒ Different types of listing captions in the same document
Different types of listing captions in the same document
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p