title: How can I centre the title of the table of contents in LaTeX?
body: <p>I'm trying to centre the title of the table of contents in LaTeX with the following command</p>
  
  <pre><code>\usepackage{tocloft}
  \renewcommand{\contentsname}{\centering Table of Contents}
  </code></pre>
  
  <p>As I'm asking I'm sure you've all realised that this didn't work, any suggestions on what I can try?</p>
  
  <p><strong>Edit</strong>: I got it working with </p>
  
  <pre><code>\renewcommand{\cfttoctitlefont}{\hfill\Huge}
  </code></pre>