회고록 [중복] 장 옆의 점을 제거하세요.

회고록 [중복] 장 옆의 점을 제거하세요.

저는 라텍스를 처음 사용하고 있으며 회고록 패키지를 사용하여 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인수가 두 번 작성되므로 double이 필요합니다.

여기에 이미지 설명을 입력하세요

관련 정보