1

I have redefined \thesection in my document to give me custom numbering. Now the section number is slightly longer, and the table of contents hasn't adjusted accordingly.

In the TOC below potatoes overlaps II.2. Similarly II.3.10 overlaps In.... (And the other subsections are almost overlapping, instead of having a space.)

How can I get rid of that overlap?

printscreen of TOC

\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 Answers1

0

As mentioned by Torbjørn T in a comment above, this post is a solution.

(Side note: Is there a way to mark a comment as a solution, instead of writing this whole post and marking it as the solution?)

  • Comments cannot be marked as solutions no. The normal thing to do if a suggestion in a comment solves the problem is to ask the commenter to write an answer, but in cases like this where an identical question has been asked before and the solution given there helps, then we close the new question as a duplicate of the old one. (I've cast the first close vote already.) – Torbjørn T. May 29 '16 at 12:25