I am using the class memoir
and I am writing a text in both French and Greek (only some words in Greek). I found some snippets online and managed to have something working with the command \textgreek{...}
. The problem is that now I don't have Roman numbers in the table of contents for the different parts that compose my book. Here is a MWE that demonstrates the problem.
\documentclass[10pt]{memoir}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{polyglossia}
\usepackage{hyperref}
\setstocksize{190mm}{130mm}
\settrimmedsize{190mm}{130mm}{*}
\setlrmarginsandblock{20mm}{15mm}{*}
\setulmarginsandblock{20mm}{20mm}{*}
\checkandfixthelayout
\pretitle{\begin{center}\Huge\bfseries}
\title{Title}
\posttitle{\par\vskip1em{\normalfont\LARGE\scshape L'évolution\par\vfill}\end{center}}
\author{Name FamilyName}
\predate{\vfill\begin{center}\large}
\date{22 juin 2017}
% simple headers: only page number
\pagestyle{simple}
\setmainlanguage{french}
\setotherlanguage{greek}
\newfontfamily{\greekfont}{GFSDidot}[
Extension=.otf,
UprightFont=*,
ItalicFont=*Italic,
BoldFont=*Bold,
BoldItalicFont=*BoldItalic,
Scale=MatchLowercase,
]
\linespread{1.2}
\makeatletter
\@addtoreset{chapter}{part}
\makeatother
\begin{document}
\frontmatter
\begin{titlingpage}
\maketitle
\end{titlingpage}
\tableofcontents
\cleardoublepage
\chapter{Introduction}
\lipsum[1-3]
\mainmatter
\part{blah}
\chapter{blah blah}
Something in Greek: \textgreek{αττικόν}
\lipsum[1-3]
\chapter{blah}
\lipsum[1-3]
\part{blah}
\chapter{qwerty}
\lipsum[1-3]
\chapter{azerty}
\lipsum[1-3]
\end{document}
How can I solve this problem?
\thepart
is empty for your style, try\AtBeginDocument{\renewcommand{\thepart}{\Roman{part}}}
– user31729 Jun 12 '17 at 8:30