\includepdf 作为附录

\includepdf 作为附录

我有附录使用\includepdf

我怎样才能使这些成为标题中出现的带标签的附录?即process.pdf= 附录 A

%!TEX root = ../main.tex
\begin{appendices}
\section{Project Proposal}
\includepdf[pages={1,2,3,4,5,6},scale=0.8]{Partridge.pdf}
\includepdf[pages={1,2},scale=0.8]{chapters/proposal.pdf}
\includepdf[pages={1},scale=0.8]{chapters/shedule.pdf}
\includepdf[landscape=true]{process.pdf}
\includepdf[pages={1},scale=0.8]{chapters/consent_form_final.pdf}
\includepdf[pages={1,2},scale=0.8]{Balkan_Rail_Requirements_Specification.pdf}
\includepdf[pages={1,2},scale=0.8]{control_requirements.pdf}
\includepdf[pages={1},scale=0.8]{chapters/affinity.pdf}
\includepdf[pages={1}]{chapters/cd_content.pdf}
\end{appendices}

答案1

在这里我提供一个 MWE 来解决你的问题

\documentclass[]{article}

\usepackage{pdfpages}
\usepackage{fancyhdr}
\pagestyle{fancy}

\begin{document}
Document

\tableofcontents

\section{Section 1}
\section{Section 2}

\appendix

\includepdf[pages=1, pagecommand={\pagestyle{fancy}}, addtotoc={1, section, 2, The section title, sec:sectionref}]{1.pdf}

\end{document}

内容 以附录格式包含标题的 PDF

我更喜欢添加fancyhdr包,以便更好地将附录纳入整个文档。它允许进行页码旋转等。

现在,您只需根据此结构调整您的 includepdf。

答案2

根据您的用途,您可能更喜欢简单地使用minipage。例如

\newpage
\begin{minipage}[c]{\linewidth}
    \vspace{-2in}
    \section*{Appendix A}
    \includepdf[pages=1,scale=0.8]{my.pdf}  % first page w/ header
\end{minipage}
\includepdf[pages=2-]{my.pdf}    % more pages w/o header  

相关内容