title: Add in the LaTeX TOC an included PDF
body: <p>In my document I include a PDF using </p>
  
  <pre><code>\includepdf[pages=-]{./mypdf.pdf}
  </code></pre>
  
  <p>The problem I'm having is how to add a TOC entry for this pdf.</p>
  
  <p>It supposed to be an appendix. I tried adding a new section in the appendix but of course the section name can't be printed on the same page than the included pdf, so the resulting TOC line directs to a wrong page.</p>
  
  <p>If I use <code>\addcontentsline</code> I loose the numbering and the page is wrong too because the included pdf actually starts at the next page...</p>
  
  <p>I'm a bit lost here so I would really appreciate if someone knows how to do this.</p>
  
  <p>Note: the pdf I try to include was not generated from LaTex.</p>