Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using babel package for Turkish language and I also use listings package. A code sample for one of my listings is as follows:

\begin{lstlisting}[label=some-code,caption=Poo Class]
public class Person {

    public int ID { get; set; }
    public string Name { get; set; }
    public string Surname { get; set; }

}
\end{lstlisting}

As header, what I am getting is this:

Listing 7.1: Poo Class

I would like it to be like this:

Kod Örneği 7.1: Poo Class

Am I asking too much?

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

Redefine \lstlistingname:

\renewcommand\lstlistingname{New name}
share|improve this answer
    
Sweet! Will be accepted as answer 6 minutes later. It doesn't allow me to do that right now ;) –  tugberk Nov 10 '11 at 20:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.