views:

25

answers:

1

Hi all, I'm using the listing package with this \begin command:

\begin{lstlisting}[caption=blabla, label=amb]

This yields a nice code listing with a caption like ”Listing 1.1 blabla”. Is there a way to change the caption and have something like ”Code 1.1 blabla” ?

I saw the ”title” command but it doesn't use a numbering system.

Any hint will be greatly appreciated!

tnx for reading!

Nick

+2  A: 

The caption name is defined with \lstlistingname command. You should add a line that reads

\renewcommand{\lstlistingname}{Code}

to change it the way you wanted. For more tricks you should check the manual for package listings.

finrod