小编Hed*_*our的帖子

在\ include图形后的Knitr空行

我有一个小问题,我不确定原因,但以下针织代码:

<<toto, echo=FALSE, comment=NA, results='asis'>>=
  #Data
     a<- c(1:100)
     b<- c(100:200)
  #Plot1
    plot(a)
  #Plot2
    plot(b)
@
Run Code Online (Sandbox Code Playgroud)

生成这个LaTeX代码:

\includegraphics[width=\maxwidth]{figure/toto1}
  (empty line here)
\includegraphics[width=\maxwidth]{figure/toto2}
  (empty line here)
Run Code Online (Sandbox Code Playgroud)

如何删除此空行?

latex r knitr

4
推荐指数
1
解决办法
148
查看次数

标签 统计

knitr ×1

latex ×1

r ×1