我正在通过添加 pdf 文件来创建动态目录。以下是问题
- 原始 pdf 文件有超链接,这些超链接在与目录合并后消失。如何在最终输出中保留超链接?
- 如何从目录页中删除页码并从“Cover_Letter”页开始?
以下是我的尝试
\documentclass{article}
\usepackage{pdfpages}
\usepackage{hyperref}
\usepackage{fancyhdr}
\usepackage{blindtext}
\usepackage[margin=1in, footskip=.7in]{geometry}
\fancypagestyle{includedpages}{%
\fancyhf{}%
\renewcommand{\headrulewidth}{0pt}%
\fancyfoot[R]{\thepage}%
}
\begin{document}
\tableofcontents
\addcontentsline{toc}{section}{Cover Letter}% or chapter
\includepdf[pagecommand={\thispagestyle{includedpages} }, pages=-]{Cover_Letter.pdf}
\clearpage\phantomsection
\addcontentsline{toc}{section}{Curriculum Vitae}% or chapter
\includepdf[pagecommand={ \thispagestyle{includedpages}}, pages=-]{CV.pdf}
\clearpage\phantomsection
\addcontentsline{toc}{section}{Teaching Statement}% or chapter
\includepdf[pagecommand={\thispagestyle{includedpages}}, pages=-]{Statement1.pdf}
\addcontentsline{toc}{section}{Research Statement}% or chapter
\includepdf[pagecommand={\thispagestyle{includedpages} }, pages=-]{Statement2.pdf}
\end{document}