I am inserting my CV (using moderncv) into my set of application documents. The CV is a separate project and I'm using \includepdf
to insert the resulting pdf into my main document. This is the contents of my tex
file that handles the CV:
\pagebreak
\begin{textblock*}{60mm}(20mm,0.01\textheight)
\color{white}{\section{Curriculum vitae}[Curriculum vitae]*}
\end{textblock*}
\includepdf[pages={1-7}, addtotoc={},scale=1,pagecommand={}]{cv_eng.pdf}
\pagebreak
Here is an overview of the structure of my documents:
*
|
+---Cover
|
+---ToC
|
+---Cover letter
|
+---CV
|
+---Work references
|
+---Diplomas and certificates
All sections (yes, sections) are added to the main structure using \input
and are separate tex
files. All (except for the cover and ToC) contains simple inclusion with some formatting (e.g. scaling) using \includepdf
. All but the CV section have no ToC on their own.
CV
|
+---Education
|
+---Working experience
|
+---Soft skills
|
+---Technical experience
|
+---Activities
As I have discovered while the CV pdf file has its own ToC upon inserting it into my main document this ToC disappears. I was expecting for the ToC to be added as a nested one (e.g. a section becomes subsection and so on) but it's not added at all. Below is a mockup what I would like to have:
*
|
+---Cover
|
+---ToC
|
+---Cover letter
|
+---CV
| |
| |
| +---Education
| |
| +---Working experience
| |
| +---Soft skills
| |
| +---Technical experience
| |
| +---Activities
|
|
+---Work references
|
+---Diplomas and certificates
Any ideas how to solve this problem?
\includepdf
only looks at the pdf, not the toc file. You could try inputting that, but it would have incorrect page numbers. (For that matter, what do you want to happen to the page numbers?). How many complicated is the CV's toc? Could you use tex.stackexchange.com/a/592007/107497 ?