my question is basically a follow-up on Adding a Prefix to Section Title, where the question is how to add an arbitrary prefix to the number that appears before a headline/section.
My follow-up question is: What do I need to do in order to ensure that the TOC has enough space so that the prefix-number does not overlap with the headline?
Consider the following MWE:
\documentclass{scrartcl}
\renewcommand*{\thesection}{Some Prefix~\arabic{section}:}
\begin{document}
\tableofcontents
\section{First Headline}
Some text.
\section{Second Headline}
More text!
\section{Third Headline}
And so on...
\end{document}
Without the second line (i.e., the renewcommand) the result looks as expected:
With the renewcommand, the sections themselve appear correct (btw: this is is the solution to the question linked above), but the text in the TOC overlaps:
Thus,
Question: What do I need to do to have enough space before the actual headline begins in the toc?