Latex 乳胶包括在附录第节之后
我想使用以下命令在latex中的附录中添加一些pdf页面:Latex 乳胶包括在附录第节之后,latex,pdflatex,Latex,Pdflatex,我想使用以下命令在latex中的附录中添加一些pdf页面: \includepdf[pages=-,scale=.8,pagecommand={},linktodoc=true]{myPDF.pdf} 到目前为止效果很好,但是它总是放在新的页面中。。。换言之: 我添加了\section{title 1}和\includepdf-命令,然后添加\section{title 2}和\includepdf-命令。。。。。但是每次\section之后,我都会得到一个空页面,然后是pdf文件。但如果适用
\includepdf[pages=-,scale=.8,pagecommand={},linktodoc=true]{myPDF.pdf}
到目前为止效果很好,但是它总是放在新的页面中。。。换言之:
我添加了\section{title 1}
和\includepdf
-命令,然后添加\section{title 2}
和\includepdf
-命令。。。。。但是每次\section
之后,我都会得到一个空页面,然后是pdf文件。但如果适用的话,我希望它们放在章节标题之后
希望问题清楚。在这里找到了解决方案:
唯一的方法是在\includepdf的pagecommand中添加\section,如下所示:
\includepdf[pages=-,scale=.8,pagecommand={\section{title 1}\label{}},linktodoc=true]{myPDF1.pdf}
\includepdf[pages=-,scale=.8,pagecommand={\section{title 2}\label{}},linktodoc=true]{myPDF2.pdf}
....
谢谢各位
更新:
我注意到\label{}在pagecommand中不起作用,因此我无法引用这些附录文件。还有其他解决方法吗?或者,您可以使用minipage进行此操作
\begin{minipage}[t]{0.8\linewidth}
\includepdf[pages=1,scale=1,pagecommand={},linktodoc=true]{myPDF.pdf}
\end{minipage}
添加多页文档时的另一个时尚解决方案:
\includepdf[pages=1,scale=.8,pagecommand={\section{My header}\label{pdf:myfile}},linktodoc=true]{myfile.pdf}
\includepdf[pages=2-,scale=.8,pagecommand={},linktodoc=true]{myfile.pdf}
特点:
myPDF.pdf
中有多少页?myPDF.pdf
中的页面大小是否与您的文档相同?大小相同。页码是不同的。如果它们大小相同,那么您希望放在页面上的任何常规内容都将覆盖在包含的页面上,那么应该如何处理呢?我非常喜欢这种解决方案,不幸的是,对于多页PDF,每个页面都有自己的标题,从而阻塞ToC:1.1附录A,1.2附录A,1.3附录A等。