![회고록 [중복] 장 옆의 점을 제거하세요.](https://rvso.com/image/272029/%ED%9A%8C%EA%B3%A0%EB%A1%9D%20%5B%EC%A4%91%EB%B3%B5%5D%20%EC%9E%A5%20%EC%98%86%EC%9D%98%20%EC%A0%90%EC%9D%84%20%EC%A0%9C%EA%B1%B0%ED%95%98%EC%84%B8%EC%9A%94..png)
저는 라텍스를 처음 사용하고 있으며 회고록 패키지를 사용하여 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이 필요합니다.