将 pdf 包含在 latex 中(附录)

将 pdf 包含在 latex 中(附录)

我面临一个大问题,我正在使用附录中的 includepdf 添加许多 Pdf 文件,问题是当我开始在附录中对页面进行编号时,我开始出现我不希望它出现的 fancyhead 我的代码是:

\documentclass[oneside,fr,maths]{ty_book}
\begin{document}
\frontmatter
\input{title}   
\tableofcontents
\mainmatter
\pagestyle{fancy}
\geometry{top=1in,bottom=1in,left=1in,right=0.8in}
\fancyhf{}
\fancyhead[L]{}
\fancyhead[R]{\includegraphics[width=2.5cm]{ESSA}}
\fancyfoot[C]{-- \thepage\ / \pageref*{LastPage} --}
\fancypagestyle{plain}{
\fancyhf{}
\fancyhead[L]{}
\fancyhead[R]{\includegraphics[width=2.5cm]{ESSA}}
\fancyfoot[C]{-- \thepage\ / \pageref*{LastPage} --}}


\begin{appendices}
\newpage
\begin{figure}[H]
\centering 
\includepdf[pages=1,\includepdf[pagecommand={\thispagestyle{plain}}]{DMOS1}
\end{figure}
\newpage
\end{document}

简要地说,我想通过编号我的页面来包含一个pdf文件,而不需要花哨的头脑

答案1

没有给出 MWE。仍然使用 memoir 找到此解决方案

\documentclass{memoir}

\usepackage[final]{pdfpages}


\begin{document}


\backmatter

\includepdf[pages=1-2,pagecommand=\thispagestyle{plain}]{Sample}
\newpage

\end{document}

这对我来说很有效。请确保其文件夹中有一个名为 Sample.pdf 的 pdf 文件。

相关内容