목차의 섹션 번호와 제목 사이의 간격 늘리기

목차의 섹션 번호와 제목 사이의 간격 늘리기

\tableofcontents목차를 생성하기 위해 간단한 일반 명령을 사용하고 있는데 섹션 번호와 섹션 제목 사이의 간격이 너무 작다는 것을 알았습니다.

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

누군가 이 문제를 해결하는 방법을 말해 줄 수 있습니까? memoir중요한 경우 내 문서 클래스는 입니다 .

답변1

ToC에서 섹션 번호의 너비는 이라는 길이로 정의됩니다 \cftKnumwidth. 여기서는 K섹션 수준(예 chapter: , 등)으로 대체되어야 합니다. 예를 들어 section를 사용하여 변경할 수 있습니다 .\setlength

\setlength\cftsectionnumwidth{4em}

섹션을 참조하세요9.2.2 항목 조판memoir이에 대한 자세한 내용은 설명서 를 참조하세요 .

완전한 예:

\documentclass{memoir}
% \setlength\cftsectionnumwidth{4em} % uncomment to see difference
\begin{document}
\tableofcontents
\chapter{A chapter}
\setcounter{section}{999} % just for this example
\section{A section}
\end{document}

또는 책 수업을 사용하는 경우https://tex.stackexchange.com/a/336618/50702아래 Torbjørn T.의 의견은 다음과 같습니다.

\documentclass{book}
% note you need the subfigure option if you are using the subfigure package
%\usepackage[subfigure]{tocloft}
\usepackage{tocloft}

\setlength\cftsecnumwidth{4em}

\begin{document}
\tableofcontents
\chapter{A chapter}
\setcounter{section}{999} 
\section{A section}
\end{document}

답변2

ToC에 큰 숫자가 있는 경우 다음 구문을 사용하여 서문에서 \cftsetindents명령( , 153페이지)을 사용하여 숫자 앞과 뒤의 공백을 제어할 수 있습니다.texdoc memoir

\cftsetindents{친절한}{톱니 모양}{너비}

어디친절한섹션화 수준(예: 하위 섹션)톱니 모양들여쓰기 길이(숫자 앞의 공백)이고너비숫자를 위한 공간이다그리고섹션 제목의 분리.

예를 들어:

\cftsetindents{section}{1em}{3em}

MWE

관련 정보