I am embedding full pages from another PDF document (using the pdfpages package), but I would like to be able to declare my own section headings before each embedded document (for e.g. hyperlinking / TOC purposes). pdfpages has an experimental feature which lets me do this, but the problem is that I want to put all of these embedded documents inside a section, so I need to insert a section heading and a subsection heading on the first document I embed. Unfortunately pdfpages doesn't seem to be able to do this. Is there a way for me to do this?
Edit: Thank you for the suggestions. I am also in need of something similar for general labels — at the moment I am abusing the addtolist
option of \includePDF
but the objects I'm labelling aren't really figures or tables.
\phantomsection\addcontentsline{toc}{section}{Title}
?