当我的 .tex 文件中包含以下内容时:
\includepdf[pages={-},fitpaper={true}]{"Assignment 1 Brief.pdf}
我收到多行错误,指出
Undefined control sequence. ...,fitpaper={true}]{"Assignment 1 Brief.pdf}
Not defining \perthousand.
Not defining \micro.
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
File `"Assignment 1 Brief.pdf' not found
\headheight is too small (34.5pt): Make it at least 34.54448pt.
destination with the same identifier (name{page.2}) has been already used, duplicate ignored<to be read again> \relax l.24 \end{document} [2
当我删除该行时,文档可以顺利编译,不会出现错误。
我做错什么了!
答案1
重命名您的 PDF 文件Test.pdf
并将其放在与 TEX 文件相同的文件夹中。
如果以下代码有效,则pdfpages
有效(原则上)并且可能存在另一个问题(正如您在问题的评论中已经讨论过的,例如文件名或路径中的空格或奇怪的"
字符。)。
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-,fitpaper=true]{Test.pdf}
\end{document}
如果没有适当的代码示例,很难提供帮助——这在您的问题的评论中已经提到了。