I have some listings that contain pseudo-code of algorithms. And I use this:
\lstset{caption={Descriptive Caption Text},label=DescriptiveLabel}
to add captions to them.
My problem is that the caption at the created file shows
Listing 1: Descriptive Caption Text
. I would like it to write
something like Algorithm 1: Descriptive Caption Text
.
How can this be done?
Best Answer
The following modifications are what you're after:
The example was taken directly from the
listings
documentation.