TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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'm using classichtesis and I would like to remove the header of List of Listings.

Before posting here, I tried the following strategies:

  • The command \renewcommand\lstlistlistingname{}, suggested here, makes disappear also the title of the list.
  • The command \markboth{}{} doesn't work.
  • The command \thispagestyle{empty} before \begingroup or \lstlistoflistings doesn't work.

Here is the code I'm using:

EDIT: Added some more information.


\globaldefs\@ne \let\c@loldepth\@ne

\renewcommand\lstlistlistingname{List of Algorithms}



\addcontentsline{toc}{chapter}{List of Figures}


\addcontentsline{toc}{chapter}{List of Tables}


\addcontentsline{toc}{chapter}{List of Listings}



\begin{lstlisting}[caption={First listing}]
for i = 1,...,n:
    print 'Hello'

\begin{lstlisting}[caption={Second listing}]
for i = 1,...,n:
    print 'Goodbye'


By compiling it, you can find the header of List of Listings in the second page. In my thesis is actually in the same page of List of Listings.

share|improve this question
up vote 6 down vote accepted

Add the following to your document preamble,


This overrides the usual definition:


Note that you may have to do this for other "List of ..."'s as well. In your MWE, the List of Listings (or Algorithms) actually overwrites and empties the header and since everything fits on a single page it works. However, if you other "List of ..."'s together span more than one page, it may require some work.

share|improve this answer
@mp87: the code provided by Werner must be enclosed inside \makeatletter, \makeatother (\makeatother is missing in your code). – Gonzalo Medina Apr 17 '12 at 4:03
@GonzaloMedina: Thanks, now it works. – mp87 Apr 17 '12 at 10:47

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.