我想包含一个/几个多页 PDF 作为背景以便在其上打印附加信息(页眉、页码……)
保存mwe 包文档在目录中才能工作
\documentclass[oneside]{book}
\usepackage{mwe}
\usepackage{pdfpages}
\newcommand\invisiblesection[1]{%
\refstepcounter{section}%
\addcontentsline{toc}{section}{\protect\numberline{\thesection}#1}%
\sectionmark{#1}}
\begin{document}
\pagestyle{headings}
\part{First}
\invisiblesection{My section}
% Only single pages
\AddToShipoutPictureBG*{\includegraphics[page=1]{mwe}}
.\pagebreak
\AddToShipoutPictureBG*{\includegraphics[page=2]{mwe}}
.\pagebreak
\AddToShipoutPictureBG*{\includegraphics[page=3]{mwe}}
.\pagebreak
% ...
\part{Second}
\invisiblesection{My section 2}
% No headers, ...
\includepdf[pages=1-]{mwe}
\end{document}