Entfernen Sie die Punkte neben „Kapitel“ in den Memoiren

Entfernen Sie die Punkte neben „Kapitel“ in den Memoiren

Ich bin neu bei Latex und verwende das Memoir-Paket, um das Inhaltsverzeichnis zu generieren. Ich muss den hervorgehobenen Teil im folgenden Inhaltsverzeichnisbild entfernen. Ich möchte es einfach so CHAPTERund möchte die Punkte und die Seitenzahl entfernen.

Dies ist der Code in meiner .sty-Datei ---

%%%% 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}{}

Können Sie mir dabei bitte weiterhelfen?

Bildbeschreibung hier eingeben

Antwort1

Dies ist ein Proof of Concept:

\documentclass{memoir}

\renewcommand\cftchapterdotsep{\cftdotsep}

\begin{document}
\frontmatter
\tableofcontents*
\listoftables
\listoffigures

\addtocontents{toc}{%
  \unexpanded{\unexpanded{\renewcommand{\cftchapterdotsep}{\cftnodots}}}%
}

\mainmatter
\chapter{One}

\end{document}

Das Double \unexpandedist nötig, weil das Argument zweimal geschrieben wird.

Bildbeschreibung hier eingeben

verwandte Informationen