How do I change the indentations of \section \subsection in the Table of Contents so that they line up flush left at the same indentation of the chapter heading? I am using book class format.

My code looks like this

\renewcommand*{\contentsname}{\normalsize Table of Contents}

\addcontentsline{toc}{chapter} {\trjnfamily{\fontsize{13pt}{13pt}\selectfont PART I THE CODEX AND ITS HISTORY}}
\chapter* {\trjnfamily{\fontsize{18pt}{18pt}\selectfont PART I\\ THE CODEX AND ITS HISTORY}}
\renewcommand{\chaptername}{{\large }}
\include{chapter1} %Physical description
\include{chapter2} %Provenance
\addcontentsline{toc}{chapter}{\trjnfamily{\fontsize{13pt}{13pt}\selectfont PART II LITERARY SOURCES}}
\chapter* {\trjnfamily{\fontsize{18pt}{18pt}\selectfont PART II\\ LITERARY SOURCES}}\
\chapter* {\trjnfamily{\fontsize{18pt}{18pt}\selectfont PART III\\ INTERPRETING THE TEXT}}
  • 2
    Welcome to TeX.SX! This fragment isn't compilable. – user31729 Sep 21 '15 at 11:46

You can use tocflat option of tocstyle package:


With tocloft, you can set indents using


Here entry is chapter, section etc, <indent> is indent and <numwidth> is the width reserved for typesetting the entry number.


enter image description here

| improve this answer | |

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.