6

複数の pdf プロットを 1 つのマスター pdf ファイルにマージしようとしています。

例:

入力: 「1.pdf」、「2.pdf」、「3.pdf」の 3 つの PDF ファイルがあります。

出力: これら 3 つのプロットを「combine.pdf」という 1 つのファイルに結合する方法

pdf() と pdftk() を使用してみましたが、まだ成功していません。単純に何かが欠けている可能性があります。助けを求める考え。どんな反応でも大歓迎です。

4

4 に答える 4

5

を使用sweave/knitrして、柔軟性を高め、新しいプロット、古いプロット、およびテキストを簡単にマージできます。

\documentclass{article}
\usepackage{pdfpages}
\begin{document}
 this my plot 1:    % write some texts here
\includepdf{1.pdf} 
 this my plot 2:
\includepdf{2.pdf} 
 this my plot 3:
\includepdf{3.pdf} 
 this my plot 4:
\includepdf{4.pdf} 
 a new plot:
<<echo=FALSE>>=         % chunk for new plots
x <- rnorm(100)
hist(x)
@
\end{document}
于 2013-08-05T22:48:50.720 に答える