I know that the indenting size of chapter
, section
and subsection
can be changed in tocloft
package using \cftsetindents
. I am using a Latex template and I shouldn't use tocloft
or any other TOC packages. So my question is how can I control those indents in the standard TOC? it's okay if I need to modify the cls files, etc but I don't know what are the settings to be changed.
\documentclass[singlespace,tocchapterhead,a4paper,openright,twoside]{MyThesisEnglish}
\usepackage{paralist}
\usepackage{natbib}
\usepackage[figuresright]{rotating}
\usepackage{lscape}
\usepackage[caption=false]{subfig}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{calc}
\usepackage{mathrsfs}
\usepackage{stmaryrd}
\usepackage{eucal}
\usepackage{float}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{epsfig}
\usepackage{setspace}
\usepackage{color}
\usepackage{epstopdf}
\usepackage{dsfont}
\usepackage{algorithmic}
\usepackage{textcomp}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{url}
\usepackage{tipa}
\usepackage{array}
\citestyle{unsrt}
\usepackage[top=25mm, bottom=25mm, left=40mm, right=25mm]{geometry}
\begin{document}
\pagenumbering{roman}
\include{Title}
\addcontentsline{toc}{chapter}{\textbf{DEDICATIONS}}
\include{Dedication}
\addcontentsline{toc}{chapter}{\textbf{ABSTRACT}}
\include{Abstract}
\addcontentsline{toc}{chapter}{\textbf{\textit{ABSTRACT2}}}
\include{ABSTRACT2}
\addcontentsline{toc}{chapter}{\textbf{ACKNOWLEDGEMENTS}}
\include{Acknow}
\addcontentsline{toc}{chapter}{\textbf{APPROVAL}}
\include{Approval}
\addcontentsline{toc}{chapter}{\textbf{DECLARATION}}
\include{Declaration}
\makeatletter
\renewcommand{\@dotsep}{10000}
\makeatother
\tableofcontents
\listoftables
\listoffigures
\newpage
\addcontentsline{toc}{chapter}{\textbf{LIST OF ABBREVIATIONS}}
\include{abbrev}
\mainmatter
\singlespace
\addtocontents{toc}{\addvspace{.5cm}}
\include{Chapter1}
\addtocontents{toc}{\addvspace{.5cm}}
\include{Chapter2}
\addtocontents{toc}{\addvspace{.5cm}}
\include{Chapter3}
\addtocontents{toc}{\addvspace{.5cm}}
\include{Chapter4}
\addtocontents{toc}{\addvspace{.5cm}}
\include{Chapter5}
\addtocontents{toc}{\addvspace{.5cm}}
\include{Chapter6}
\addcontentsline{toc}{chapter}{\textbf{REFERENCES/Bibliography}}
\begin{singlespace}
\bibliography{bibfile}
\bibliographystyle{ai}
\end{singlespace}
\newpage
\addcontentsline{toc}{chapter}{\textbf{APPENDICES}}
\appendix
\include{AppendixA}
\include{AppendixB}
\addcontentsline{toc}{chapter}{\textbf{BIODATA OF STUDENT}}
\include{biodata} %
\addcontentsline{toc}{chapter}{\textbf{LIST OF PUBLICATIONS}}
\include{listofpublications} %
\end{document}
Update: I increased the indention for chapter titles using \setlength\@tempdima{5.5em}
but still couldn't find the way to increase the indention of sections and subsections. https://imgur.com/a/3lUcG
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\setcounter{secnumdepth}{3}%
\setcounter{tocdepth}{2} %
\addpenalty{-\@highpenalty}%
\vskip .1cm \@plus \p@ %{the v-distance between the headings in the contents}
\setlength\@tempdima{5.5em}% %{the distance between the number of the chapter and its title}
\begingroup
\parindent\z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode
\advance \leftskip \@tempdima
\hskip -\leftskip
\etchapterheadstyle{#1}\nobreak
% CCW: The following 3 lines add dots to the chapter TOC listings
\leaders\hbox{$\m@th
\mkern \@dotsep mu\hbox{.}\mkern \@dotsep
mu$}\hfill
\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
epsfig
is totally obsolete (for more than twenty years) and should be replaced with\includegraphics
. Is there any reason not to use a toc package? You load geometry, which certainly modifies the general layout.epstopdf
twice, by the wayepsfig
package. Other toc packages change the appearance of the table of content and I don't have time to change them back to the original design. I just need to increase the indents.epstopdf
at all unless you're using a really old version of TeX.