title: Table of contents Rmarkdown/papaja
body: <p>I have a question concerning Rmarkdown (papaja template) that I have not been able to solve so far (despite googling all day long...)</p>
  <p>(Part of) yy YAML header is as follows:</p>
  <pre><code>---
  title : &quot;MY TITLE&quot;
  authornote: |
    &quot;My author note&quot;
  
  abstract:  |
    &quot;My abstract&quot;
    
  floatsintext      : yes
  figurelist        : no
  tablelist         : no
  footnotelist      : no
  linenumbers       : no
  mask              : no
  draft             : no
  
  csl:                &quot;apa.csl&quot;
  documentclass     : &quot;apa7&quot;
  classoption       : &quot;man&quot;
  output            : papaja::apa6_pdf
  toc: true 
  
  header-includes:
    - \usepackage{setspace}
    - \AtBeginEnvironment{tabular}{\singlespacing}
    - \AtBeginEnvironment{lltable}{\singlespacing}
    - \AtBeginEnvironment{tablenotes}{\singlespacing}
  </code></pre>
  <p>As you can see I added a Table of contents by setting toc to true.
  This works, however the TOC also includes the title, author note and abstract, which I do not want to be part of it (obviously).
  How can I solve this?
  (I know how to hide specific headers within the document, but can't figure it out for those things appearing before..)
  I have already tried the Latex Syntax</p>
  <pre><code>\tableofcontents
  </code></pre>
  <p>but get the same results.</p>
  <p>I would be more than happy if anyone could help me with this!
  Thank you so much in advance!</p>