首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >针织图在Evince中查看时没有轴(更新了RStudio,R和Texlive)

针织图在Evince中查看时没有轴(更新了RStudio,R和Texlive)
EN

Stack Overflow用户
提问于 2014-09-02 07:55:54
回答 1查看 112关注 0票数 2

在下面的MWE中,我的图在RStudio中编译时根本没有轴。但是,当我执行knit2pdf("myfile.Rnw")并编译生成的.tex文档时,一切都很正常。为什么?更新:该问题仅发生在Ubuntu 14.04 Evince (GNOME文档查看器3.10.3)中。例如,当用Okular打开时,一切都可以正常工作。

代码语言:javascript
复制
\documentclass{article}
\begin{document}
<<>>=
plot(rnorm(100))
@
\end{document}

Rstudio版本0.98.1028 (最新)

R块内的sessionInfo()的输出

代码语言:javascript
复制
R version 3.1.1 (2014-07-10)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8
[3] LC_TIME=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8
[9] LC_ADDRESS=C
[11] LC_MEASUREMENT=en_US.UTF-8
LC_NUMERIC=C
LC_COLLATE=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_NAME=C
LC_TELEPHONE=C
LC_IDENTIFICATION=C

attached base packages:
[1] stats
graphics grDevices utils
datasets
methods
other attached packages:
[1] knitr_1.6
loaded via a namespace (and not attached):
[1] evaluate_0.5.5 formatR_0.10
highr_0.3
[5] tools_3.1.1

knitr内部

代码语言:javascript
复制
Sys.which('pdflatex'); cat(system('pdflatex --version', intern = TRUE), sep = '\n')
pdflatex
"/opt/texbin/pdflatex"
pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2014)
kpathsea version 6.2.0
Copyright 2014 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.6.10; using libpng 1.6.10
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with xpdf version 3.03

从终端:

代码语言:javascript
复制
anh@anh-IdeaPad-Y570:~$ which pdflatex; pdflatex --version
/opt/texbin/pdflatex
pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2014)
kpathsea version 6.2.0
Copyright 2014 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.6.10; using libpng 1.6.10
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with xpdf version 3.03

EN

回答 1

Stack Overflow用户

发布于 2014-09-02 14:48:10

我在不能真正理解原因的情况下修复了这个问题。(我向所有花时间帮助我的人道歉)。我刚刚安装了texlive 2014 (我之前的版本是texlive 2013,它在这一点上被冻结了),一切正常。

我不认为这是texi2dvi,因为尽管一切正常,运行knit2pdf()仍然会产生texi2dvi not found错误。

我的RStudio版本也没有变化(0.98.953,最新版本为0.98.1028)。

我没有接触到RStudio中的任何选项。唯一改变的是将texlive从2013升级到2014。

如果我现在没有重要的文档要写,我会忍不住重新安装texlive并重新创建这个问题。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25614107

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档