My question is very similar to this, but a little more complicated – Yet another leader dot question and related for TOC
I am trying to format my ToC using the memoir class. I want my ToC to look like this..
TABLE OF CONTENTS
Page
LIST OF TABLES ................. i
LIST OF FIGURES ................ ii
CHAPTER
1 First chapter ................ 1
subheading ................... 2
2 Second chapter ............... 3
Using the pwasu style file and memoir provided commands within, I have been able to make my ToC formatted to look like this…
TABLE OF CONTENTS
Page
LIST OF TABLES ................. i
LIST OF FIGURES ................ ii
CHAPTER ........................ 1
1 First chapter ................ 1
subheading ................... 2
2 Second chapter ............... 3
Here is my current code…
\documentclass[oneside,12pt]{memoir}
\usepackage{pwasu}
\begin{document}
\tableofcontents*
\listoftables
\listoffigures
\addcontentsline{toc}{chapter}{CHAPTER}
\chapter{First chapter}
\end{document}
Here is my best representation of minimal code from pwasu
\let\oldtoc\tableofcontents
\renewcommand{\tableofcontents}{\clearpage\pagestyle{toc}\oldtoc}
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\renewcommand{\listfigurename}{LIST OF FIGURES}
\renewcommand{\listtablename}{LIST OF TABLES}
\renewcommand*{\tocheadstart}{\vspace*{-\topfiddle}}
\renewcommand*{\aftertoctitle}{\thispagestyle{plain}%
\par\nobreak \mbox{}\hfill{\normalfont Page}\par\nobreak}
\renewcommand*{\cftchapterfont}{\normalfont}
\renewcommand*{\cftchapterpagefont}{\normalfont}
\renewcommand*{\cftchapterleader}{%
\cftchapterfont\cftdotfill{\cftchapterdotsep}}
\renewcommand*{\cftchapterdotsep}{\cftdotsep} %%%%
%\renewcommand*{\cftchaptername}{CHAPTER~}
\setlength{\cftbeforechapterskip}{0pt plus 0pt}
\renewcommand*{\insertchapterspace}{}
I want to get rid of the leaders and page number from the added content line, CHAPTER, as it is only there to signify the chapter numbers of subsequent chapters.
Best Answer
To add the word "CHAPTER", you can use the
\cftaddtitleline
command; its syntax isso with an empty fourth argument you suppress the page number.
A quick (somehow hackish way) to remove the leaders (dots) for this particular entry is to introduce a local change with
\cftlocalchange
and then restore the original settings using again this command. An example illustrating this approach; probably the first argument (309pt
) for\cftlocalchange
will have to be slightly changed depending on the actual settings introduced by the filepwasu.sty
(which is not available on CTAN):