2

I'm trying to remove "Première Partie" from the TOC, I just would like the part title. It works well if I remove polyglossia, but I need it for Asian languages in my document.

Minimal example:

\documentclass[11pt,openany]{memoir}
\usepackage{polyglossia}
\setdefaultlanguage{french}

\begin{document}

\tableofcontents

\part{Le début}

Salut

\end{document}

And the output (with xelatex): enter image description here

I know that polyglossia/French is messing up with \thepart, but the solution is beyond my latex level!

2

The typesetting of part titles in the table of contents uses \partnumberlinebox, which is defined to typeset its contents in a box with fixed width. You can redefine to take all the space it needs. I added an em-dash for separation.

\documentclass[11pt,openany]{memoir}
\usepackage{polyglossia}
\setdefaultlanguage{french}

\setheadfoot{14.4pt}{\footskip} % remove the warning

% fix the typesetting of the part number
\renewcommand\partnumberlinebox[2]{#2\ ---\ }

\begin{document}

\tableofcontents

\part{Le début}

Salut

\end{document}

enter image description here

| improve this answer | |
  • Thank you so much @egreg! Actually I wanted to completely remove the "Première partie", so I used \renewcommand\partnumberlinebox[2]{}. You made my day. – Blacksad Jan 5 at 19:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.