回想録の章の横にあるドットを削除します

回想録の章の横にあるドットを削除します

私は LaTeX 初心者で、memoir パッケージを使用して TOC を生成しています。以下の TOC イメージの強調表示された部分を削除する必要があります。CHAPTERドットとページ番号を削除したいだけです。

これは私の.styファイル内のコードです---

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

これについて助けていただけませんか?

ここに画像の説明を入力してください

答え1

これは概念実証です:

\documentclass{memoir}

\renewcommand\cftchapterdotsep{\cftdotsep}

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

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

\mainmatter
\chapter{One}

\end{document}

\unexpanded引数が 2 回記述されるため、double が必要になります。

ここに画像の説明を入力してください

関連情報