I am using pdfpages package and I have a 3 page document of pdf I want to insert into my main document. But the problem is I can't get the subsection heading to show on the top of the page before the pdf file is inserted ONLY ONCE. I used pagecommand but what that does is for everypage it writes out the subsection at the top. Here is the code im using Here is the code I am using

\includepdf[pages=-,pagecommand=\subsection{List of use cases}]{SE2.pdf}

What am i doing wrong?


You could use a command that inserts a section head then redefines itself to do nothing:

\subsection{List of use cases}%

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.