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?

  • Why does it go up to your second chapter and not change with the first?
    – Werner
    Commented Apr 30, 2012 at 15:41
  • I don't know... I guess this is because my first chapter is only two pages. Commented May 1, 2012 at 13:44
  • Or because my first chapter is in fact a chapter* Commented May 2, 2012 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
    Commented May 2, 2012 at 19:08

1 Answer 1


Ok, I figured out:


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

  • 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
    Commented Oct 29, 2015 at 20:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .