Setting:
I am writing a thesis, which consists of two parts that have to be completely independent from eachother but use the same structure, i.e. both contain for example a 'Data' chapter. Thus, chapters are numerated following the part number (Roman), e.g. Chapter I.3 or Chapter II.2. The MWE below does that and sets the headers (tribute to esdd, Part Number + Chapter in Header (scrlayer-scrpage)).
Problem:
Unfortunately, using this solution the table of contents is affected for higher part numbers (starting from II) in the way that spaces seem to vanish, e.g.: "II.2Heading on level 0" with the missing " " between "2" and "H". Is there a way to fix this?
Current output (toc):
Unfortunately, I am not well-versed in manipulating the toc (and adding '\ ' in front of all section and chapter names seems wrong), so I highly appreciate all help!
MWE:
\documentclass{book}
\usepackage{blindtext}
\usepackage[markcase=used]{scrlayer-scrpage}
%headers setup
\providepairofpagestyles{thesisSimple}{%
\clearpairofpagestyles
\automark[chapter]{chapter}
\ihead{\headmark}
\ohead[\pagemark]{\pagemark}
}
\ifoot{}
\ofoot{}
\pagestyle{thesisSimple}
\providepairofpagestyles[thesisSimple]{thesis}{%
\automark*[section]{}%
}
\providepairofpagestyles[thesisSimple]{review}{%
\ofoot[\shorttitle/\authorname]{\shorttitle/\authorname}
\ifoot[\today]{\today}
}
\pagestyle{thesis}
%adjust chapter names to include part number for uniqueness
\renewcommand\thechapter{\thepart.\arabic{chapter}} %following the suggestion of esdd
\begin{document}
\tableofcontents
\part{First part}
\blinddocument
\part{Second part}
\blinddocument
\end{document}

