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 the minted package, which uses the float package. When I add the 'List of Listings' in my thesis, the \listoflistings command calls the \listofcommand from the float package.

My problem is that this command modifies the headings of subsequent pages, and shows 'LIST OF LISTINGS' in the header of the following pages, up to my second chapter. How can I prevent it from redefining the headers defined in my .cls file?

share|improve this question
Why does it go up to your second chapter and not change with the first? – Werner Apr 30 '12 at 15:41
I don't know... I guess this is because my first chapter is only two pages. – Charles Brunet May 1 '12 at 13:44
Or because my first chapter is in fact a chapter* – Charles Brunet May 2 '12 at 13:57
That's it. When using \chapter*, no headings are set. So, the \chapter* chapters takes the headings of the previously set page style. – Werner May 2 '12 at 19:08

Ok, I figured out:


And in bonus, I learned a little bit more about LaTeX internals.

share|improve this answer
Your solution worked like a charm for me, my issue was with list of frames. Only difference is that I replaced the #1 with \centering\bfseries\MakeTextUppercase{#1} t suit my needs. Thanks. – G. Bay Oct 29 '15 at 20:23

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.