I'd like to modify the way parts are named, into my toc, in the same way they are named in the body of my document:
Première partie
For the first part.
Deuxième partie
For the second part, and so on. How could I do that? This is my MWE:
\documentclass[fontsize=11pt,%
twoside=semi,%
headings=small,%
chapterprefix=true,%
listof=flat]%
{scrbook}
\usepackage[utf8]{inputenc}% can be removed with an uptodate TeX distribution
\usepackage[T1]{fontenc}
\usepackage [french]{babel}
\usepackage{fontspec}
\setmainfont{Didot}
\usepackage{lipsum}
\renewcommand*{\chapterformat}{%
\mbox{\chapappifchapterprefix{\nobreakspace}\thechapter
\IfUsePrefixLine{}{\enskip}}%
}
\begin{document}
\tableofcontents
\part{Éléments d'analyse}
\chapter{Définitions}
\lipsum
\end{document}
titlesec
and thefmtcount
package, which has an\ordinal{counter}
command