I've seen in some novel that, in the table of contents, the page number is before the chapter title, for example:

3    Down the Rabbit Hole
7    The Pool of Tears
15   The Caucus Race and a Long Tale

How can I obtain the same using memoir class?

  • This post: Formatting the title of the TOC is not related to memoir, but it might be a good starting point.
    – mvarela
    May 13 '12 at 6:26
  • 1
    @mvarela: Welcome to TeX.sx! I converted your answer to a comment because links to other answers do not qualify as answers themselves. Unfortunately you can't post comments to other peoples questions as long you don't have 50rep. May 13 '12 at 7:48

You can achieve the desired result in many ways. Below there's one such possibility; I assumed the sectional unit used was \chapter:


% redefinition for the ToC title

% redefinitions for chapter entries





\chapter{Down the Rabbit Hole}
\chapter{The Pool of Tears}
\chapter{The Caucus Race and a Long Tale}
\setcounter{page}{14}% just for the example


enter image description here

The code above will align the page numbers to the right; to get them aligned to the left, \l@mychap must be defined using something like


Using this redefinition (in the full example code above) instead of the initial one, one obtains

enter image description here

  • How is it possible to extend the left position of number to section pages too? thanx!
    – user41063
    Mar 13 '14 at 23:43
  • @user41063 : You can change the l@chapter like so : \renewcommand*{\l@section}[2]{% \l@mytocentry{\Large#1}{#2}{\sectionname}% } See the MWE of my question here which shows both Chapters and Sections : tex.stackexchange.com/questions/547344/…
    – agryson
    Jun 1 '20 at 13:20

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.