TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use memoir class and got some problems with ToC. Chapter style defined as:

\font\robotoLarge="name:Roboto:protrusion=default;expansion=default;tlig;trep" at 24pt

\renewcommand*{\chapterheadstart}{\vskip 30mm}
\renewcommand*{\afterchaptertitle}{\hrule height 0.5mm\vskip 40pt}}\chapterstyle{general}

But when ToC is created, the chapter style is defferent: the font is smaller, the \hrule has no space before and sticks to letters. How can the style of ToC be fixed to be the same as my main chapterstyle?

share|improve this question
Welcome to TeX.SE! It would help if you posted a MWE (minimum working example), rather than some code snippets, that generates the problem behavior you're trying to get rid of. – Mico Mar 19 '12 at 13:30
You should use fontspec facilities for defining the "Roboto" font for usage in your document, not resorting to the \font primitive. – egreg Mar 19 '12 at 13:42
egreg, thanks. I will rewrite the code to use fontspec. – SadChi Mar 20 '12 at 6:35
up vote 5 down vote accepted

The toc title is typeset using the part of the chapter style which is suitable for un-numbered pages. People often forget to add this part, see \printchapternonum. Also remember that the un-numbered part never issues \afterchapternum so it may be an idea to add this to \printafternonum (which is empty by default).

Since I have no idea what that font is about, please post a minimal example, and which engine you are using. This test using palatino, does not seem to have any differences between numbered and un numbered:


\renewcommand*{\chapterheadstart}{\vskip 30mm}
 \renewcommand*{\afterchaptertitle}{\hrule height 0.5mm\vskip 40pt}}
%\chapter*{This is a test}
\chapter{This is a test}
share|improve this answer
Thanks! fontspec and \printafternonum make everything working as it should. – SadChi Mar 20 '12 at 6:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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