% ======================================================
% Configurations
% ======================================================
\documentclass{configurations}
\renewcommand{\baselinestretch}{1.0}
\usepackage{fullpage}
\usepackage{natbib}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{graphicx}
\usepackage{pgfgantt}
\usepackage{hyperref}
\usepackage{tocloft}
\usepackage[utf8]{inputenc}
\usepackage[dvipsnames]{xcolor}
\usepackage[margin=1in,letterpaper]{geometry}
\usepackage[justification=centering,font=small]{caption}
\hypersetup{colorlinks=true,citecolor=blue,linkcolor=purple,urlcolor=blue}
\captionsetup[figure]{labelfont={bf},name={Fig.},labelsep=period}
% ======================================================
% Cover Page Information
% ======================================================
% ======================================================
% Document Layout
% ======================================================
\thispagestyle{empty}
% Add a bit of vertical space between chapter entries in the ToC
\begin{document}
\makecoverpage
\makecopyrightpage
\renewcommand{\contentsname}{\centering\small TABLE OF CONTENTS}
\setcounter{tocdepth}{3} % Control depth of entries
\tableofcontents
\newpage
\addcontentsline{toc}{section}{Introduction}
\input{sections/introduction}
\input{sections/chapter1}
\input{sections/chapter2}
\input{sections/chapter3}
\addcontentsline{toc}{section}{References}
\bibliographystyle{apalike}
\bibliography{refs.bib}
\end{document}
% ======================================================
% Configurations
% ======================================================
\documentclass{configurations}
\renewcommand{\baselinodespread}{1.0}
\usepackage{fullpage}
\usepackage{natbib}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{graphicx}
\usepackage{pgfgantt}
\usepackage{hyperref}
\usepackage{tocloft} % Keep this package!
\usepackage[utf8]{inputenc}
\usepackage[dvipsnames]{xcolor}
\usepackage[margin=1in,letterpaper]{geometry}
\usepackage[justification=centering,font=small]{caption}
\hypersetup{colorlinks=true,citecolor=blue,linkcolor=purple,urlcolor=blue}
\captionsetup[figure]{labelfont={bf},name={Fig.},labelsep=period}
% ======================================================
% Cover Page Information
% ======================================================
% (Presumably commands like \title, \author, etc. are here)
% ======================================================
% Document Layout
% ======================================================
% --- Customizing the Table of Contents appearance using tocloft ---
% Center and reduce font size of the ToC title "TABLE OF CONTENTS"
% Use \cfttoctitlefont command provided by tocloft
\renewcommand{\cfttoctitlefont}{\centering\small}
% If you want a specific space after the title, uncomment and adjust this:
% \setlength{\cftaftertoctitle}{20pt} % Example: 20pt vertical space
% Remove or comment out the old line that tried to redefine contentsname:
% \renewcommand{\contentsname}{\centering\small TABLE OF CONTENTS}
\thispagestyle{empty} % Typically for the title page
% The comment below about vertical space had no command following it.
% If you want to increase space between *entries* in the ToC, use tocloft commands like:
% \setlength{\cftbeforechapskip}{1.0\baselineskip} % Space before chapter entries
% \setlength{\cftbeforesecskip}{0.5\baselineskip} % Space before section entries
\begin{document}
\makecoverpage % Assuming this is a custom command for your cover page
\makecopyrightpage % Assuming this is a custom command for your copyright page
% --- Start Roman page numbering for front matter ---
% This applies to pages like Abstract, Acknowledgements, ToC, List of Figures, etc.
% Place this *before* your first front matter element that needs a roman number.
% If you have Abstract/Acknowledgements, they would typically go here before the ToC.
% Example: \chapter*{Abstract}\addcontentsline{toc}{chapter}{Abstract} etc.
% Since your code starts with ToC after cover/copyright, we'll start roman numbering here.
\pagenumbering{roman}
\setcounter{page}{1} % Start numbering from i
\setcounter{tocdepth}{3} % Control depth of entries (chapters, sections, subsections)
% Generate the Table of Contents
\tableofcontents
\newpage % Start new page after ToC
% --- Add other front matter lists if needed ---
% If you have List of Figures or List of Tables, include them here.
% Example:
% \listoffigures
% \listoftables
% These commands will also respect the current roman page numbering.
% If you need them in the ToC, you might need \addcontentsline depending on class.
% --- Switch to Arabic page numbering for the main body ---
% This applies to Introduction, Chapter 1, Chapter 2, etc.
% Place this *before* your first main content page.
\pagenumbering{arabic}
\setcounter{page}{1} % Start numbering from 1
% Your Introduction section - Added manually to ToC
% Note: Using \addcontentsline{toc}{section}{Introduction} makes it appear as a section in the ToC.
% A more standard dissertation structure might use \chapter{Introduction} or \chapter*{Introduction}
% followed by \addcontentsline if it's unnumbered but in ToC.
% Sticking to your current structure for the fix:
\addcontentsline{toc}{section}{Introduction}
\input{sections/introduction}
% Input your main chapters - Assuming these files contain \chapter commands
\input{sections/chapter1}
\input{sections/chapter2}
\input{sections/chapter3}
% Your References section - Added manually to ToC
% Similar note as Introduction regarding dissertation structure.
% Sticking to your current structure for the fix:
\addcontentsline{toc}{section}{References}
\bibliographystyle{apalike}
\bibliography{refs.bib}
\end{document}
This revised code should achieve the centering, font size reduction, and the Roman/Arabic page numbering switch for your Table of Contents and document pages.