Suggest me LaTeX command and package on how the words Chapter 1 can be appeared in the table of contents instead of just 1 and so on for the next chapters. Following is the template of the thesis of our university:

right=1in,top=1in, bottom=1.33in, footskip=0.33in]{geometry}

    \ \thechapter}{20pt}{\Huge}
%\usepackage[pdfencoding = auto, psdextra, bookmarksdepth = 4]{hyperref}

    \markboth{\chaptername\  \thechapter.\ #1}{}}
    \markright {\thesection.\ #1}}
{\setlength{\baselineskip}{#1 \defbaselineskip}}
    {2.0 \defbaselineskip}}
{\medskip\par\noindent{\bf Proof\;}}%
\hyphenpenalty 50
%\newcommand{\cchapter}[1]{\chapter[#1]}{\centering #1}}
%\newgeometry{left=1.5in, right=1.0in, bottom=1.75in, top=1in, footskip=0.75in}
%    \addtolength{\evensidemargin}{0.5cm}
%    \addtolength{\textwidth}{0.0cm}
%    \addtolength{\topmargin}{0.0cm}
%    \addtolength{\textheight}{0.0cm}
\pagestyle{plain} \setlinespacing{1.5}

Table of contents have the following command:

  • 1
    Off-topic: (a) Don't load the epstopdf and epsfig packages. (b) Don't load the subfigure package, as it's badly depecated; instead, load either subfig or subcaption. (c) Don't specify the option pdftex while loading graphicx. (d) Load xcolor, not color.
    – Mico
    May 28 at 8:57
  • 1
    For the sake of obtaining a useful answer to your query, your code could be stripped down to its essentials, e.g., \documentclass{book} \begin{document} \tableofcontents \chapter{AAA} \section{A1} \section{A2} \chapter{BBB} \section{B1} \section{B2} \end{document}.
    – Mico
    May 28 at 10:08
  • 1
    @Mico: Hear hear. In order to help we need to know what code you have used. Do not rely on anyone else guessing what you might have done. If you are using a package then ask the package creator May 28 at 18:14

1 Answer 1


I suggest you employ the tocloft package to achieve your formatting objective. Observe that the only thing the code shown below does is to insert the word "Chapter" (and space) before the chapter number. In particular, the appearance of section-level entries in the Table of Contents is not modified.

enter image description here


\usepackage{calc} % for '\widthof' macro
\renewcommand\cftchappresnum{Chapter }
\cftsetindents{chap}{0pt}{\widthof{\large\textbf{Chapter 1}}}




  • Thank you very much for your suggestion. However, I used \usepackage{subfigure} \usepackage[subfigure]{tocloft} instead of \usepackage[titles]{tocloft} as it was making error. Moreover, now the problem is that we have "Contents" instead of "Table of Contents" as the main heading. We want to achieve "Table of Contents". May 28 at 13:31
  • @user20255650 - Repeat after me: "The subfigure package is deprecated and shouldn't be used." Just because the tocloft package can work around some (but not all) of the problems created by the subfigure package is in no way a valid reason for using the subfigure in the first place. If your document contains subfigures and/or subtables, I suggest you look into using the subfig or subcaption package. To change the title, run \renewcommand{\contentsname}{Table of Contents} in the preamble. (\contentsname is a macro provided by the book document class.)
    – Mico
    May 28 at 13:57
  • Thank you very much again for your prompt and kind response. subfig and subcaption both are generating errors. Morover, I want to add that in the table contents as in sections and subsections there is a dotted line between the section/subsection title and page number, university format requirement is that there must also be a dotted line between Chapter and its pg number, for example " Chapter 1 Introduction . . . . . . . . . . 1 ". Last thing references are not the separate chapter. However, it must appear in the table of contents also with dotted lines also need to be present here as above. May 28 at 16:33
  • Instead of dribbling out your requirements one by one, could you please edit your posting to list all of them at once? You say something is “generating errors” — what are you doing, and which error messages are you getting? Is merely loading a package causing an error?!
    – Mico
    May 28 at 17:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .