插入一个PDF文件在乳胶

我正在尝试在我的latex文件中作为附录插入PDF或doc文件。 你知道我怎么能做到这一点?

使用pdfpages包。

 \usepackage{pdfpages} \includepdf[pages={1}]{myfile.pdf} 

在shell中运行texdoc pdfpages以查看pdfpages的完整手册。

把整个PDF文件放在你的文件中,而不是只有一页,使用:

 \usepackage{pdfpages} \includepdf[pages=-]{myfile.pdf} 
 \includegraphics{myfig.pdf} 

我不认为会有一个自动的方式。 您可能还想正确添加页码到附录。 假设您已经有几页的pdf文档,那么您必须先使用Adobe Acrobat Professional将您的pdf文档的每个页面提取出来,并将它们保存为单独的pdf文件。 然后,你必须包括每个PDF文件作为图像在每个页面的基础上(每页1),并使用每页之间的新页e,g,

 \appendix \section{Quiz 1}\label{sec:Quiz} \begin{figure}[htp] \centering{ \includegraphics[scale=0.82]{quizz.pdf}} \caption{Experiment 1} \end{figure} \newpage \section{Sample paper}\label{sec:Sample} \begin{figure}[htp] \centering{ \includegraphics[scale=0.75]{sampaper.pdf}} \caption{Experiment 2} \end{figure} 

现在每个页面将以每页1个pdf图像的forms出现,底部将显示正确的页码。 如我的示例所示,您必须针对每个图像调整比例因子,以使其尺寸合适,以适合单个页面。 希望有帮助…

有一个选项,没有额外的包,在pdflatex下工作

适应这个代码

 \begin{figure}[h] \centering \includegraphics[width=\ScaleIfNeeded]{figuras/diagrama-spearman.pdf} \caption{Schematical view of Spearman's theory.} \end{figure} 

“diagrama-spearman.pdf”是用TikZ生成的一个图表,这是代码(它是另一个.tex文件,与我想要插入pdf的.tex文件不同)

 \documentclass[border=3mm]{standalone} \usepackage[applemac]{inputenc} \usepackage[protrusion=true,expansion=true]{microtype} \usepackage[bb=lucida,bbscaled=1,cal=boondoxo]{mathalfa} \usepackage[stdmathitalics=true,math-style=iso,lucidasmallscale=true,romanfamily=bright]{lucimatx} \usepackage{tikz} \usetikzlibrary{intersections} \newcommand{\at}{\makeatletter @\makeatother} \begin{document} \begin{tikzpicture} \tikzset{venn circle/.style={draw,circle,minimum width=5cm,fill=#1,opacity=1}} \node [venn circle = none, name path=A] (A) at (45:2cm) { }; \node [venn circle = none, name path=B] (B) at (135:2cm) { }; \node [venn circle = none, name path=C] (C) at (225:2cm) { }; \node [venn circle = none, name path=D] (D) at (315:2cm) { }; \node[above right] at (barycentric cs:A=1) {logical}; \node[above left] at (barycentric cs:B=1) {mechanical}; \node[below left] at (barycentric cs:C=1) {spatial}; \node[below right] at (barycentric cs:D=1) {arithmetical}; \node at (0,0) {G}; \end{tikzpicture} \end{document} 

这是我包括的图

在这里输入图像说明