Add in the LaTeX TOC an included PDF

后端 未结 2 1033
时光说笑
时光说笑 2021-02-05 20:28

In my document I include a PDF using

\\includepdf[pages=-]{./mypdf.pdf}

The problem I\'m having is how to add a TOC entry for this pdf.

<
相关标签:
2条回答
  • 2021-02-05 21:01

    From the documentation of pdfpages (page 6) it looks like there is an experimental tag called addtotoc. I think you'd use it like:

    \includepdf[pages=-, addtotoc={<page number>, section, 1, <heading>, <label>}]
    

    Where <page number> is the desired page number of the included PDF (edit) to link to, <heading> is the title in the TOC, and <label> is how you may \ref to the section.

    0 讨论(0)
  • 2021-02-05 21:09

    Have you tried

    \section[text for toc]{text for document}
    

    in your case

    \section[text for toc]{}
    

    to suppress the output in the document.

    0 讨论(0)
提交回复
热议问题