Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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{\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~}
%%% 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!

share|improve this question

2 Answers 2

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

enter image description here

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

\renewcommand{\contentsname}{TABLE OF CONTENTS}
\renewcommand{\listfigurename}{LIST OF FIGURES}
\renewcommand{\listtablename}{LIST OF TABLES}
\renewcommand*{\cftchapterleader}{\hfill}

\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).

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

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}
share|improve this answer
    
I will give this a try this evening. Thanks! –  brucebond007 Nov 4 '11 at 19:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.