title: How to customise font size of Table of Contents generated by package{tocloft} in LATEX
body: <p>I am using document class "report" and package {tocloft}. I am having a problem in changing font size of sections, chapters, subsections explicitly on Table of Contents generated by "\tableofcontents". It is actually taking the size of contents as they are present in  report but I want to alter the font size of table of contents page . </p>
  
  <pre><code>\documentclass{report}
  
  \usepackage{tocloft,lipsum,pgffor}
  
  \setcounter{tocdepth}{3}% Include up to \subsubsection in ToC
  
  \renewcommand{\cftpartfont}{\normalfont\sffamily\bfseries}% \part font in ToC
  \renewcommand{\cftchapfont}{\normalfont\large\itshape}    % \chapter font in ToC
  \renewcommand{\cftsecfont}{\normalfont\slshape}           % \section font in ToC
  \renewcommand{\cftsubsecfont}{\normalfont\itshape}        % \subsection font in ToC
  \renewcommand{\cftsubsubsecfont}{\normalfont\small}       % \subsubsection font in ToC
  
  \begin{document}
  
  \tableofcontents% ToC
  
  % Create a dummy document with multiple (5) levels of sectional units
  \foreach \curpart in {\Huge First, Second, Third, Last} {
    \part{\curpart{} part}
    \foreach \curchap in {\huge First, Second, Third, Last} {
      \chapter{\curchap{} chapter} \lipsum[1]
      \foreach \cursec in {\LARGE First, Second, Third, Last} {
        \section{\cursec{} section}\lipsum[2]
        \foreach \cursubsec in {First, Second, Third, Last} {
          \subsection{\cursubsec{} subsection}\lipsum[3]
          \foreach \cursubsubsec in {First, Second, Third, Last} {
            \subsubsection{\cursubsubsec{} subsubsection}\lipsum[4]
          }% \subsubsection
        }% \subsection
      }% \section
    }% \chapter
  }% \part
  
  \end{document}
  </code></pre>
  
  <p>I have added \huge and \LARGE in section headings in dummy document.</p>
  
  <pre><code>\foreach \curchap in {\huge First, Second, Third, Last} {
      \chapter{\curchap{} chapter} \lipsum[1]
      \foreach \cursec in {\LARGE First, Second, Third, Last} {
  </code></pre>
  
  <p>Doing this also reflects the change in size of that section heading in TOC page.
  <a href="https://i.stack.imgur.com/YH7ht.png" rel="nofollow noreferrer">Before adding \huge and \LARGE inside the section heading</a></p>
  
  <p><a href="https://i.stack.imgur.com/10yvM.png" rel="nofollow noreferrer">After</a></p>
  
  <p>I want to make font size of sections and chapter headings in TOC page to be independent of what happens to them inside the document.</p>