
우선, 나는 \pnumwidth
and 를 만지작거리는 것을 권장하는 답변을 보았습니다 \tocmarg
. 이를 변경하면 문제가 toc, lof 및 lot 내의 다른 곳으로 이동될 뿐입니다.
toc, lof 및 lot에서 hbox가 너무 가득 차지 않도록 하려면 어떻게 해야 합니까(예: 엉성하고 언더필되도록 허용)? 패키지 도 본 적이 있지만 tocloft
페이지 헤더에 문제가 발생하므로 피하고 싶습니다.
\documentclass[a4paper, 12pt]{report}
\usepackage[a4paper,left=4cm,right=2.5cm,top=3.5cm,bottom=3cm]{geometry}
\begin{document}
\begin{titlepage}
\centering
\today
\end{titlepage}
\tableofcontents
\chapter{Chapter title}
\section{Section title}
\subsection{Subsection containing extremely lengthy heading obnoxiously} % toc overrun by this title, words picked deliberately to exhibit the flaw
\end{document}
답변1
섹션화 명령의 선택적 인수를 사용할 수 있습니다.
\subsection[shorter title]{longer title}
이러한 방식으로 LaTeX는 제목과 목차 항목에 더 짧은 버전을 사용하여 기본 문서에 더 긴 제목을 표시합니다.