i want to have the word 'ΚΕΦΑΛΑΙΟ' which means Chapter in greek, before the chapter number in the table of contents and the 'ΠΑΡΑΡΤΗΜΑ' before appendices, i am using memoir class and the command \tableofcontents* for the produstion of toc.
I provide a MWE, and a picture of what i get now. The number 1 before the chapter title, is inserted automatically in the toc.
\documentclass[9pt,twoside,openright,showtrims]{memoir}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{mathspec,xltxtra}
\usepackage{url,graphicx}
\usepackage{polyglossia}
\makeatletter %
\makechapterstyle{sofia}{
\setlength{\beforechapskip}{-48pt}
\setlength{\midchapskip}{0.5\baselineskip}
\setlength{\afterchapskip}{5\baselineskip}
\renewcommand{\chapterheadstart}{\vspace*{\beforechapskip}}
\renewcommand{\chapnamefont}{\raggedright\bfseries\huge\SingleSpacing}
\renewcommand{\printchaptername}{\chapnamefont \@chapapp}
\renewcommand{\chapternamenum}{\space}
\renewcommand{\chapnumfont}{\bfseries\huge}
\renewcommand{\printchapternum}{\chapnumfont \thechapter}
\renewcommand{\afterchapternum}{\par\nobreak\vskip \midchapskip}
\renewcommand{\printchapternonum}{\vspace*{\midchapskip}\vspace*{5mm}}
\renewcommand{\chaptitlefont}{\raggedright\bfseries\HUGE}
\renewcommand{\printchaptertitle}[1]{\chaptitlefont ##1}
\renewcommand{\afterchaptertitle}{\par\nobreak\vskip \afterchapskip}
}
\makeatother
\chapterstyle{sofia}
\begin{document}
\tableofcontents*{}
\clearpage
\cleartorecto
\listoffigures
\clearpage
\cleartorecto
\listoftables
\clearpage
\input{ch01}
\input{ch02}
\input{app1}
\end{document}
Best Answer
It is just
\renewcommand\cftchaptername{\chaptername~}
in order to get at prefix into the tocJust as an addition to the comment, if you want to do the same with the appendices in the toc, use