I attach a new version of thesis08.cls that solves, I hope, your issues. You'll see changes in the definitions of \@chapter and \l@chapter. There is also a redefinition of \appendix. From now on you don't need the appendix package. Your MWE could be:
Code: Select all
\documentclass[12pt,letterpaper]{thesis08}
\begin{document}
\tableofcontents
\chapter{Test Chapter}
Some text in the chapter.
\section{A section}
\appendix
\chapter{}
Something in the appendix.
\chapter[\hspace*{-2em}]{}
Something in the appendix
\end{document}
Look at the table of contents and please note the difference between the two appendix entries. You should add an optional argument like above (or redefine \chapter for the appendices) if you are providing empty appendix titles. Likewise, the separated page with the "Appendices" title has now an style coherent with that of parts.
I've also undone or modified some of your changes, since, IMHO, they introduce some inconsistencies:
- Def. of \@part: Why inhibit the part counter to increase? If you don't need numbered parts, you should use \part* and then \addcontentsline to put it in the table of contents. You could also redefine \@spart to incorporate \addcontentsline and simply use \part*.
- In \l@part and \l@chapter, you have removed some commands leaving vertical space. The result is a table of contents excessively tight. I've put there the default values for the report class.
- The lists of figures and tables should be considered as chapters and appear as so in the TOC. This affects the new \addcontentsline in the def. of \listoffigures and \listoftables.
I've also added \addcontentsline to thebibliography.