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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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; }


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
up vote 8 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

Your Answer


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.