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