Was helped briliantly before, here's another small problem I do not get fixed:
Using the fancyhdr package I get, as promised, fancy headers. However, a chapter in the frontmatter gets a 0. Chaptername and the Table of Contents simply Table of Contents.
So, the aim is to get rid of everything with a zero in my make-up.
I redefine the chaptermark command as follows:
\renewcommand{\chaptermark}[1]{\markboth{ \ifnum\thechapter>0 \thechapter.\space\fi #1}{}}}
But having Appendices, numbered A, B, C etc. this gives an error as follows:
Missing number, treated as zero.
Well, to be expected. How to solve this decently?
\chapter*or numberless chapters. So, printing of0. ChapterNamein the header is expected since nochaptercounter has been incremented. That's also why they don't show up in the ToC, since\chapter*doesn't by default (you need to do this manually via\addcontentsline). Finally, Appendices have\thechapterset as\Alph{chapter}. You should instead test for\value{chapter}>0, rather than\thechapter>0. – Werner Feb 6 '12 at 17:01fancyhdrproduces "CHAPTER 0", contrary to the barebookclass. – lockstep Feb 6 '12 at 17:11