%20%E5%A4%9A%E9%A0%81%20pdf.png)
我想包含一個/多個多頁 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}