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 want to remove the dots of the table of content (toc), so i used:

    \makeatletter \renewcommand{\@dotsep}{10000} \makeatother
    

    but it doesn’t work…

  • How can I remove the title (name) of the toc?

I’m using memoir class and XeLaTeX.

share|improve this question
add comment

1 Answer

  • You need to use

    \renewcommand{\cftsectiondotsep}{\cftnodots}
    

    in order to remove the dots for \section titles in the ToC. Or, in general,

    \renewcommand{\cftKdotsep}{\cftnodots}
    

    for the sectional unit K. For removing all dots the easiest way is to redefine the dot used to be empty: \renewcommand{\cftdot}{}. See chapter 9 Contents Lists (p 164) of the memoir documentation.

  • You can change \contentsname. It will still be set as a chapter though. And you would most likely use \tableofcontents* to have it removed from the ToC itself.

Here's a short minimal example highlighting the above:

enter image description here

\documentclass{memoir}% http://ctan.org/pkg/memoir
\renewcommand{\cftsectiondotsep}{\cftnodots}% Remove dots for section
\renewcommand{\contentsname}{}% Remove \tableofcontents' title/name
\begin{document}
\tableofcontents*
\chapter{First chapter}
\section{Section One}
\section{Section Two}
\section{Section Three}
\chapter{Last chapter}
\section{Section One}
\section{Section Two}
\section{Section Three}
\end{document}
share|improve this answer
    
Hi ! Thanks for your answer. · For the dots, it works perfectly · I tried \renewcommand{\contentsname}{} and I found there was a problem with the package \usepackage[french]{babel} So I don’t know if I should remove french babel, or is there an other solution ? Thanks a lot! –  Calixte Jul 4 '12 at 21:49
    
\cftnodots is just the value 2000, so \renewcommand\cftdotsep{2000} may also be enough, since all of the dots settings in the toc referes back to this one –  daleif Jul 5 '12 at 11:41
add comment

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.