0

I use memoir 3.7f and I can not change \@dotsep.

The bug was tested in two PCs.

How can I change the disctance between the dots now?

memoir documentation citations:

p.142 The distance, in math units2 between the dots in the leader is given by the value of \@dotsep.

p.142 The standard values for these internal commands are:...\@dotsep=4.5. The values can be changed by using \renewcommand, in spite of the fact that the first twoappear to be lengths.

p.143 See, please \@dotsep depicted in Fig. 9.2.

p.145 The dots in the leaders can be eliminated by increasing \@dotsep to a large value: \renewcommand{\@dotsep}{10000}

etc.

One of the succesfull cases of using \@dotsep mentioned in answers on the following question:

Changing the dot size in the table of contents

MWE

\documentclass{memoir} % tested version 3.7f
\makeatletter
\renewcommand{\@dotsep}{1}
\makeatother
%\renewcommand{\cftchapterdotsep}{\cftdotsep}
%    %% delete boxes
%    \renewcommand\numberlinebox[2]{#2} % for sections
%    \renewcommand\chapternumberlinebox[2]{#2} % for chapters 
%    %% set dot and space
%    \renewcommand\cftchapteraftersnum{.\space} 
%    \renewcommand\cftsectionaftersnum{.\space}        
%    \renewcommand\cftsubsectionaftersnum{.\space}    
%    \renewcommand\cftsubsubsectionaftersnum{.\space}  
%    %%enumeration levels in the ToC and text
%    \settocdepth{subsection} 
%    \setsecnumdepth{subsubsection}
%    \setrmarg{2.55em plus1fil} %hyphenation is forbidden
\begin{document}
\tableofcontents
\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
\chapter{First chapter}
\section{First section  long long long long long long long long long long long long title}
\subsection{First subsection  long long long long long long long long long long long long title}
\setcounter{chapter}{11}
\chapter{Another chapter long long long long long long long long long long long long title}
\section{First section  long long long long long long long long long long long long title}
\subsection{First subsection  long long long long long long long long long long long long title}
\subsection*{Short conclusion with long long long long long long long long long long long long title}
\addcontentsline{toc}{susubsection}{Short conclusion}
\end{document}

PDF

enter image description here

  • @daleif, is it a bug or new feature? – Vladimir Parkhomenko Oct 6 '17 at 12:11
  • 1
    Why do you think \cftdotsep uses \@dotsep? Change \cftdotsep (you can always do as I do, look in the code), I'll check what the manual says. – daleif Oct 6 '17 at 12:12
  • 1
    Remember the first part of that chapter describes how this is done in the standard classes, the memoir setup is then explained laters in the manual. Changing \cftdotsep works fine. – daleif Oct 6 '17 at 12:14
  • 1
    ??? memoir does not use \@dotsep in its TOC macros, it uses \cftdotsep – daleif Oct 6 '17 at 13:49
  • 1
    As I mentioned the part of the manual you are looking at describes the general latex toc methods. After that it is explained how memoir makes an interface for this. Thus doing this in a different way. Btw you should not self answer your question when someone else fave the answer is the comments, more polite to ask them to provide an answer you can then accept. – daleif Oct 6 '17 at 15:09
2

In many parts of the memoir manual, a chapter starts by explaining how a certain feature is done in standard latex (ie the standard classes). This is to give the reader a basic idea of how this feature does its thing and thus better understand what the memoir implementation of this feature does and how the configuration macros for the feature is related.

So, in standard latex, the space between does in the toc is controlled by \@dotsep, a protected macro (the @). In memoir, the interface uses \cftdotsep instead, a normal macro the user can easily change.

Thus to change the dot sep, use

\renewcommand\cftdotsep{6.5}

Or similar

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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