hmisc :: latex表在外部xdvik窗口中打开,而不是插入到pdf输出文档中 [英] hmisc::latex tables open in external xdvik window instead of being inserted into the pdf output document
问题描述
自从对R2.15.1进行更新以来,我的lyx文档中的表是由对Latex函数(软件包Hmisc的调用)产生的,它们在外部xdvik窗口中打开,而不是插入到我正在编译的pdf文档中. 相反,使用xtable生成的表和使用ggplot生成的图确实会出现在文档中它们所属的位置.
Since our update to R2.15.1, the tables in my lyx documents that result from calls to the latex function (package Hmisc) open in an external xdvik-window instead of being inserted in the pdf-document that I am compiling. On the contrary, the tables produced with xtable and the graphs produced with ggplot do appear where they belong in the document.
乳胶调用的块头是
<<Specs,tidy=F,results='asis',eval=F>>=
然后,该块将被多次引用,例如
and the chunk is then referred to multiple times with e.g.
<<AGESpecs,ref.label='Specs',tidy=F,results='asis',echo=F>>=
xdvik窗口中的表格看上去很完美. 有什么想法吗?
The tables in the xdvik window do look perfect. Any ideas?
推荐答案
由于未在此处显示块体,因此我不得不根据经验进行猜测,而我的最佳猜测是您需要在函数file=''
中添加参数file=''
c1>,即
It looks I have to guess from experience since the chunk body was not shown here, and my best guess is you need an argument file=''
in the function latex()
, i.e.
library(Hmisc)
latex(object, file = '')
默认情况下,latex()
将对象写入tex文件,然后将其编译为dvi.这可能就是您看到xdvik窗口的原因.
By default, latex()
writes the object in a tex file, and compiles it to dvi. That is probably why you saw the xdvik window.
这篇关于hmisc :: latex表在外部xdvik窗口中打开,而不是插入到pdf输出文档中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!