![目录与自定义章节编号重叠](https://linux22.com/image/334853/%E7%9B%AE%E5%BD%95%E4%B8%8E%E8%87%AA%E5%AE%9A%E4%B9%89%E7%AB%A0%E8%8A%82%E7%BC%96%E5%8F%B7%E9%87%8D%E5%8F%A0%20.png)
我已\thesection
在文档中重新定义自定义编号。现在章节编号略长,目录尚未相应调整。
在下面的目录中potatoes
重叠II.2
。同样II.3.10
重叠In...
。(其他小节几乎重叠,而不是有空格。)
我怎样才能消除这种重叠?
\documentclass[a4paper]{article}
\usepackage[english]{babel} %
\renewcommand\thesection{\Roman{part}.\arabic{section}}
\begin{document}
\tableofcontents
\part{Fish}
\section{tuna}
\subsection{whatever}
\subsection{canned}
\part{Vegetables}
\section{potatoes}
\section{tunips}
\subsection{This is just to use}
\subsection{up subsections}
\subsection{because I want to get}
\subsection{to subsection 10}
\subsection{because extra digits}
\subsection{is what's causing the problem}
\subsection{what are tunips?}
\subsection{like, who eats them?}
\subsection{I've only ever seen them?}
\subsection{In Howl's moving castle}
\end{document}
答案1
正如 Torbjørn T 在上面的评论中提到的,这个帖子是一个解决方案。
(旁注:有没有办法将评论标记为解决方案,而不是写整篇文章并将其标记为解决方案?)