
목차에서 하위 섹션 번호와 헤더 이름 사이의 간격을 늘리려면 어떻게 해야 합니까? 저는 www.sharelatex.com을 사용하고 있습니다.
하위 섹션이 많으면 섹션 번호와 헤더가 겹칩니다.
\documentclass[12pt, openany]{book}
% geometry sets paper dimensions
\usepackage[ paperheight=8in,
paperwidth=6in,
top=.1in,
bottom=.2in,
right=.1in,
left=.1in,
heightrounded]{geometry}
% Font Style
\usepackage{bookman}
\begin{document}
\tableofcontents
\setcounter{tocdepth}{3}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\section{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\end{document}
편집: 2014년 12월 22일 내 질문에 대한 답변을 찾았습니다.목차에서 로마 숫자가 "너무 넓어짐"
나는 이 두 줄을 서문에 추가했습니다.
\usepackage[tocindentauto]{tocstyle}
\usetocstyle{KOMAlike}
답변1
위에서 언급한 링크에는 titletoc
해결책이 없으므로 다음 중 하나를 참조하십시오.
\documentclass[12pt, openany]{book}
% geometry sets paper dimensions
\usepackage[ paperheight=8in,
paperwidth=6in,
top=.1in,
bottom=.2in,
right=.1in,
left=.1in,
heightrounded]{geometry}
% Font Style
\usepackage{bookman}
\usepackage{eqparbox}
\usepackage{titletoc}
\titlecontents{chapter}[0em]{\vspace{.25\baselineskip}}
{\eqparbox{ch}{\bfseries\thecontentslabel}\enspace}{}
{\hspace{.5em}\hfill\contentspage}
\titlecontents{section}[1.8em]{\vspace{.25\baselineskip}}
{{\thecontentslabel}\enspace}{}
{\hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}
\titlecontents{subsection}[4.5em]{\vspace{.25\baselineskip}}
{\eqparbox{Ss}{\thecontentslabel}\enspace}{}
{\hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}
\begin{document}
\tableofcontents
\setcounter{tocdepth}{3}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\section{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\end{document}