I produce a table of content with \tableofcontents and do not see how to add a bit of separating space between the section number and the title - they are run together. What should I change?
I read the answer which refers in the title to Roman Numerals which is not my case; the answer nevertheless partially applicable, but most of the advice is for an obsolete package (tocstyle) and it is therefore somewhat tricky to identify the parts still valid. The current KOMA version has much simpler solutions, which I think should be searchable in StackExchange.
My MWE is:
\documentclass[
headings=standardclasses, % to use serif font for titles
a4paper,
10pt,
notitlepage
]{scrartcl}
\usepackage{fontspec}
\usepackage[english]{babel}
\usepackage{csquotes}
\makeindex
\addtokomafont{part}{\LARGE} % reduce size of part
\addtokomafont{partnumber}{\LARGE}
\counterwithin{section}{part}
\renewcommand{\thepart}{\arabic{part}}
\usepackage{bookmark}
\begin{document}
\tableofcontents
\section{should be 0.1}
Each page shows :
\section{should be 0.2}
The index pages list automatically.
\part{is Part 1}
\section{should be 1.1}
Some nonsense text
\subsubsection{should be 1.1.1}
The tufte style does discourage
\part{is Part 2}
\section{should be 2.1}
References
\end{document}
and the output shows no space between section numbers and titles::

dynnumwidthoption of thetocbasicKOMA configuration options (see KOMA manual). It essentially determines such run-ins in previous runs and adds space in the next run. In my experience, it usually works. – TeXnician Jun 05 '23 at 23:34\DeclareTOCStyleEntry[dynnumwidth]{tocline}{section}should work. Also move the\counterwithin{section}{part}behind the bookmark package so that hyperref updates also the target names for the links. – Ulrike Fischer Jun 06 '23 at 07:56toc=flatin the options for the documentclass sufficient and even simpler. Anything wrong with this? – user855443 Jun 08 '23 at 18:53