I am writing a book using the book class. In the table of contents, I want
PART 1 Whatever
Chapter 1 whatever
...
and then to switch, in the appendices to
APPENDICES
Appendix A Whatever
...
I cannot seem to get latex to recognize the \renewcommand to change from Part to blank and Chapter to Appendix. I can't seem to get rid of the ``PART" before APPENDICES without getting rid of it on all the other sections, or to change ``Chapter" to "Appendix"
I would also like to delete the page numbers on pages 1 9 and 15. I have tried placing \thispagestyle{empty} in various places in the document, but to no avail.
Here is my code:
\documentclass[11pt]{book}
\usepackage[toc,page]{appendix}
\usepackage{tocloft}
\begin{document}
\renewcommand{\cftpartfont}{\bfseries}
\renewcommand{\cftpartpagefont}{\bfseries}
\renewcommand{\cftpartpresnum}{PART~}
\renewcommand{\cftpartaftersnum}{:}
\renewcommand{\cftpartnumwidth}{6em}
\renewcommand{\cftchapfont}{\bfseries}
\renewcommand{\cftchappagefont}{\bfseries}
\renewcommand{\cftchappresnum}{Chapter~}
\renewcommand{\cftchapaftersnum}{:}
\renewcommand{\cftchapnumwidth}{6em}
\frontmatter
\thispagestyle{empty}
\setcounter{tocdepth}{1}
\tableofcontents
\mainmatter
\renewcommand\partname{PART}
\part{Theory of Junk}
\input{Ch1}
\input{Ch2}
\input{Ch3}
\part{Theory of Garbage}
\input{Ch4}
\input{Ch5}
\renewcommand\partname{}
\renewcommand\thepart{\null}
\renewcommand{\cftpartpresnum}{}
\part{APPENDICES}
\appendix
\renewcommand{\cftchappresnum}{Appendix~}
\input{A1}
\input{A2}
\backmatter
\end{document}
Page Layout ⇒ changing format within a table of contents
-
- Posts: 1
- Joined: Mon Apr 05, 2021 1:45 pm
NEW: TikZ book now 40% off at Amazon.com for a short time.