For some reason the TABLE OF CONTENTS text refuses to center. Can you fix this? [code]
- User
For some reason the TABLE OF CONTENTS text refuses to center. Can you fix this?
% ====================================================== % 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 % ====================================================== \renewcommand{\contentsname}{TABLE OF CONTENTS} \renewcommand{\cfttoctitlefont}{\centering\bfseries\normalsize} \thispagestyle{empty} % Add a bit of vertical space between chapter entries in the ToC \begin{document} \makecoverpage \pagenumbering{roman} \makecopyrightpage \renewcommand{\contentsname}{\centering\small TABLE OF CONTENTS} \setcounter{tocdepth}{3} % Control depth of entries \tableofcontents \newpage \addcontentsline{toc}{section}{Introduction} \mainmatter \input{sections/introduction} \input{sections/chapter1} \input{sections/chapter2} \input{sections/chapter3} \addcontentsline{toc}{section}{References} \bibliographystyle{apalike} \bibliography{refs.bib} \end{document}
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.