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'm using the book class and I need to add the word "Chap" before the chapters numbers in the TOC. Please keep in mind that the "Chap" should only appear before my chapters numbers, not before starred chapters titles, the Index, appendices or anything similar in the TOC.
By the way, I prefer to use the book class codes rather than to use packages.
Can anybode help me accomplish this?
Here is a minimal example: ‎

‎\chapter*{B‎la bla}
‎\addcontentsline{toc}{chapter}{bla‎ ‎bla}‎‎
‎\chapter{App one}‎
share|improve this question
up vote 5 down vote accepted

Make a copy of \@chapter and then redefine \@chapter to add the word "Chap"; from the point on where the word must not appear, restore the original meaning of \@chapter:


\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne



\chapter{Test Chapter One}
\chapter{Test Chapter Two}

\chapter{Test Appendix One}


An image of the resulting ToC:

enter image description here

share|improve this answer
Thank, this was exactly what i was looking for. – Vahid Damanafshan Jun 19 '12 at 23:46
@Gonzalo Medina How to use your code in \documentclass{report}? – minthao_2011 Feb 12 '14 at 15:22
@minthao_2011 Please feel free to open a follow-up question. – Gonzalo Medina Feb 12 '14 at 15:39

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.