0
我正在使用RMarkdown将各种.pdf拖入一个中心文件。这些.pdf是多页的长度。我使用的代码是:将.pdf的多个页面合并为RMarkdown
---
title: <center> <h1>Analysis Data</h1> </center>
mainfont: Arial
output:
pdf_document:
latex_engine: xelatex
sansfont: Arial
fig_crop: false
toc: true
classoption: landscape
fontsize: {10}
geometry: margin=0.30in
header-includes:
- \usepackage{booktabs}
- \usepackage{sectsty} \sectionfont{\centering}
- \renewcommand{\contentsname}{}\vspace{-2cm}
---
# File One
\begin{center}
\includegraphics[width=9.5in]{~/Desktop/DatasetOne.pdf}
\end{center}
\newpage
# File Two
\begin{center}
\includegraphics[width=9.5in]{~/Desktop/DatasetTwo.pdf}
\end{center}
然而,当我编织最终.PDF在一起,仅在每个.PDF文件(“DatasetOne.pdf”和“DatasetTwo.pdf”)的第一页包含而不是整个文件。
是否有可能拉动整个.pdf而不仅仅是第一页?
谢谢。
见https://stackoverflow.com/questions/2739159/inserting-a-pdf-file -in-latex – Marius
不幸的是,当我尝试使用pdfpages包时,出现以下错误:'!缺少$插入。 <插入的文本> $ L.137 ... esktop/DatasetOne.pdf} pandoc:错误生成PDF 错误:pandoc文档转换失败,出现错误43 执行halted' – user2716568
我能得到你的榜样工作在我的最后,看到我的答案。 – Marius