
私は 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 が必要になります。