# Remove dots for chapters in ToC with memoir

I have seen similar posts but none seem to work. I simply need to remove the dots in the ToC between the chapter titles and the page numbers. I think the page numbers should line up (as if there were dots). This is using the memoir class. Here is my ToC info:

%%%% Do the ToC
\let\oldtoc\tableofcontents
\renewcommand{\tableofcontents}{\clearpage\pagestyle{toc}\oldtoc}

\renewcommand{\listfigurename}{LIST OF FIGURES}
\renewcommand{\listtablename}{LIST OF TABLES}
\renewcommand*{\aftertoctitle}{\thispagestyle{plain}%
\par\nobreak \mbox{}\hfill{\normalfont Page}\par\nobreak}
\renewcommand*{\cftchapterfont}{\normalfont}
\renewcommand*{\cftchapterpagefont}{\normalfont}
\cftchapterfont\cftdotfill{\cftchapterdotsep}}
\renewcommand*{\cftchapterdotsep}{\cftdotsep}
%\renewcommand*{\cftchaptername}{CHAPTER~}
%%% no extra space before the entry
\setlength{\cftbeforechapterskip}{0pt plus 0pt}
%% no extra 'chapter' space in LoF/LoT
\renewcommand*{\insertchapterspace}{}


I tried everything that was suggested. Nothing seemed to make any difference. I am stuck with this format. Any suggestions would be greately appreciated!

-
 Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). – lockstep Nov 4 '11 at 18:34 I appologize for the jumbled code. Let's try this again: – brucebond007 Nov 4 '11 at 19:34 Ah. Much better... – brucebond007 Nov 4 '11 at 19:36

You could just specify \renewcommand*{\cftchapterleader}{\hfill}:

\documentclass{memoir}% http://ctan.org/pkg/memoir

\renewcommand{\listfigurename}{LIST OF FIGURES}
\renewcommand{\listtablename}{LIST OF TABLES}

\begin{document}

\tableofcontents

\chapter{First chapter}
\section{First section}
\section{Second section}
\section{Last section}

\chapter{Second​​​ ​​​chapter}
\section{First section}
\section{Second section}
\section{Last section}

\chapter{Last chapter}
\section{First section}
\section{Second section}
\section{Last section}

​\end{document}


If you're interested in removing the section dots, include

\renewcommand*{\cftsectionleader}{\hfill}


as well. The dots are referred to as "leaders", hence the command \cft...leader.

I've removed all the other formatting-related stuff that doesn't pertain to the problem (like page style headings and \tableofcontents redefinition, for example).

-

You didn't provide a minimal working example (MWE) that illustrates your problem. However, try to remove (!) the following line in your code:

\renewcommand*{\cftchapterdotsep}{\cftdotsep}


Here's a MWE that shows the effect:

\documentclass{memoir}

% \renewcommand*{\cftchapterdotsep}{\cftdotsep}

\begin{document}

\tableofcontents

\chapter{foo}

\end{document}

-
 I will give this a try this evening. Thanks! – brucebond007 Nov 4 '11 at 19:41