Tell me more ×
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
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

2 Answers

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
\renewcommand*{\cftchapterleader}{\hfill}: worked great to eliminate the chapter dots. now I need to eliminate the section dot. I assume it is a similar line. thanks for your help. – brucebond007 Nov 5 '11 at 15:32
@brucebond007: I converted the non-answer to a comment to Werner's answer. – Stefan Kottwitz Nov 5 '11 at 15:35
@brucebond007: Yes, it is similar: \renewcommand*{\cftsectionleader}{\hfill}. I've added that to my answer. – Werner Nov 5 '11 at 15:46

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.