I'm trying to centre the title of the table of contents in LaTeX with the following command
\usepackage{tocloft}
\renewcommand{\contentsname}{\centering Table of Contents}
As I'm asking I'm sure you've all realised that this didn't work, any suggestions on what I can try?
Edit: I got it working with
\renewcommand{\cfttoctitlefont}{\hfill\Huge}
This works (without the usepackage):
\renewcommand{\contentsname}{\centering Contents}
Make sure it's in the preamble, perhaps, and try killing the .aux
file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With