I'm writing a document in book class, using the `fancyhdr` package. I have both an index, and a symbol list, for which I use the `imakeidx` and `nomencl` packages. I had problems with getting the right headers for both. I managed to set the index straight, by using `\indexsetup{level=\chapter}` (which works fine since `\backmatter` had already been declared). However, I couldn't find out how do to the same for the nomenclature, so I ended up manually calling `\markboth` directly after `\printnomenclature`. This works, but feels dodgy (e.g., if I switched the order of the two, the `\markboth` affected the last chapter).

I was hoping someone had a better solution to this problem.

If you have the `\printnomenclature` command after `\backmatter`, it's simple:
``````\usepackage{nomencl}
In this way, the `thenomenclature` package will issue `\chapter{\nomname}` and the entry will set the headings and the annotation for the table of contents. Don't add the `intoc` option to `nomencl`.