combine multiple pdf plots into one file

前端 未结 4 1781

I am trying to merge multiple pdf plots into one master pdf file.

Example:

Input: I have three pdf files: \"1.pdf\", \"2.pdf\", and \"3.pdf\"

Outpu

4条回答
  •  一整个雨季
    2020-12-06 13:48

    You can use sweave/knitr to get more flexibility and merge easily new plots ,old ones and texts:

    \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:
    <>=         % chunk for new plots
    x <- rnorm(100)
    hist(x)
    @
    \end{document}
    

提交回复
热议问题