tags:

views:

79

answers:

1

Qucik question, 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 didn't work, any suggestions on what I can try?

[edit]I got it working with

\renewcommand{\cfttoctitlefont}{\hfill\Huge}
+1  A: 

This works (without the usepackage):

\renewcommand{\contentsname}{\centering Contents}

Make sure it's in the preamble, perhaps, and try killing the .aux file.

jleedev