TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 have a preface for my document and instead of calling it Chapter 1, or using \chapter* to not include it in the table of contents, I would like it so it instead of a 1 I have a P. Then normal counting resumes - a bit like appendices.

so my table of contents looks like:

P Preface
   P.1 Stuff
   P.2 More Stuff

I    All about stuff

1 Stuff in itself
   1.1 Does stuff exist
   1.2 Does stuff matter
      1.2.1 The ethical implications of the non-existence of stuff


EDIT: Extra problem: I also want to not have it say:

Chapter P

but just


at the start of the preface - perhaps add to the table of contents manually - but my naive attempt didn't work so well.

share|improve this question
I just see that you have asked several questions and have received good answers to some of them, but you haven't accepted any. Please consider marking one of the answers as ‘Accepted’ by clicking on the tickmark below their vote count. This shows which answer helped you most (and it assigns reputation points to the author of the answer and to you!). – Gonzalo Medina Apr 6 '12 at 2:03
up vote 13 down vote accepted

You should manually switch the chapter counter representation before the out-of-the-ordinary chapters. Here's the basic idea (remember, the chapter counter is incremented at the start of \chapter):

\setcounter{chapter}{15}% Equivalent to "letter O"
\setcounter{chapter}{8}% Equivalent to "letter H"
\chapter{All about stuff}
\chapter{Stuff in itself}

Here's a more complete example, using \chapter* for the Preface, and \part for "All about stuff":

enter image description here


\setcounter{chapter}{16}% Equivalent to "letter P"
% Alternatively, replace the above two commands with
%   \renewcommand{\thechapter}{P}
% as in Gonzalo's answer - it's just simpler.
\part{All about stuff}
\chapter{Stuff in itself}
share|improve this answer
Sweet, worked like a charm! If I could give bonus points for giving me the right number for P I would :) – Lucas Apr 6 '12 at 0:08
Any ideas about my edit? – Lucas Apr 6 '12 at 0:17
@Lucas: Do you want to have remove the P from the ToC as well? – Werner Apr 6 '12 at 1:21
Nope. It was just that Chapter P looks rather silly. Gonzalo's solution seems to have sorted things. – Lucas Apr 6 '12 at 1:23
@Lucas: I've updated my answer to accommodate your latest request. Using \chapter* and then adding the necessary details in the ToC via \addcontentsline. The fake \numberline{P} preserves your required "Chapter P" in the ToC. – Werner Apr 6 '12 at 1:29

You can simply locally redefine the representation for the chapter counter and then set the counter to the proper value for the regular chapters. The titlesec package can be used to locally redefine the chapter title format:


\section{Preface Section One}
\section{Preface Section Two}

\part{First Part}
\chapter{First Regular Chapter}
\section{Regular Section One One}
\section{Regular Section One Two}


enter image description here

share|improve this answer
Nice! Thank you! – Lucas Apr 6 '12 at 1:18

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.