
\renewcommand{\cftsecfont}{\bfseries}
출력을 사용하여 목차의 텍스트를 굵게 표시할 때마다 다음과 같이 표시됩니다.
2 장 이름 ........................................... 24
2.1 섹션 이름.................................. 25
하지만 내가 원하는 것은 이렇습니다.
2 장 이름................................. 24
2.1 섹션 이름................................. 25
어떻게 해야 하나요?
답변1
몇 가지 제안 사항:
ToC의 장 수준 항목에 대해 "점 리더"를 활성화하려면 다음 지시어를 실행해야 합니다.
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
장 수준 항목의 페이지 번호를 굵게 표시하려면 다음 지시어를 실행해야 합니다.
\renewcommand{\cftchappagefont}{\mdseries}
전체 MWE(최소 작업 예):
\documentclass{book}
\usepackage{tocloft}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftchappagefont}{\mdseries}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\chapter{Uno}
\chapter{Due}
\end{document}