分页: 1 / 1

Emacs下用Auctex + preview-latex的问题

发表于 : 2006-01-09 21:25
hardegg
安装了最新的auctex,里面包括了preview-latex包
我现在想直接在Emacs窗口中输出某个region的预览,而不是探出另一个预览窗口。但每次都不成功,会出现一大堆的错误提示,主要的部
分应该是:

Preview-Latex finished with nothing to show
LaTeX: LaTeX found no preview images

我查阅过很多帖子,似乎安装的过程都很正常,为什么会出现这个问题
难道是ubuntu的问题
大家有过这方面的经验么,帮帮忙,急~~

发表于 : 2006-01-10 9:47
hardegg
没有人遇到过这个问题么?

发表于 : 2006-02-08 11:30
brainy
是不是emacs不支持图片?好像是ubuntu下默认安装的emacs没有编译进支持图片的功能吧。我也遇见这个问题。但是不想折腾了。

发表于 : 2006-02-27 23:02
notwind
在.emacs中加入

;; turn on image file support
(auto-image-file-mode)

试一下看看有没有用

发表于 : 2006-03-02 22:13
brainy
不行,说是没有找到image files
notwind 写了:在.emacs中加入

;; turn on image file support
(auto-image-file-mode)

试一下看看有没有用

发表于 : 2006-05-20 15:10
alinmn
目前我也遇到过这种情况,发现一个特别奇怪的问题,就是把文档中的注释全部去掉后就好了,加上去后就又不行了。

发表于 : 2006-05-20 22:31
duoxing
关于图片的问题加入一个图片的插件试试,(可以肯定的就是emacs肯定支持图片显示的)就是支持w3m里面显示图片的那个插件,然后在加入上面的代码试试。

发表于 : 2006-05-25 22:33
zhan
不是图片这样的问题,我发现,有些即使没有图片的tex文档只要有很多注释的话就会有问题。现在去掉注释后是没有问题的。比较奇怪的说。

Re: Emacs下用Auctex + preview-latex的问题

发表于 : 2009-01-08 23:13
roderic
An outdated ‘preview’ installation

The ‘preview.sty’ package is useful for more than just preview-latex. For example, it is part of TeXlive. So you have to make sure that preview-latex does not get to work with outdated style and configuration files: some newer features will not work with older TeX style files, and really old files will make preview-latex fail completely. There usual is a local ‘texmf’ tree, or even a user-specific tree that are searched before the default tree. Make sure that the first version of those files that gets found is the correct one.

Re: Emacs下用Auctex + preview-latex的问题

发表于 : 2013-03-09 22:27
mathematica
遇到同样问题了。。。 :em06

Re: Emacs下用Auctex + preview-latex的问题

发表于 : 2013-03-10 20:54
lhui
是 AUCTeX 的问题。把 preview.el 中的

代码: 全选

(defcustom preview-gs-options '("-q" "-dSAFER" "-dNOPAUSE"
改成

代码: 全选

(defcustom preview-gs-options '("-q" "-dNOSAFER" "-dNOPAUSE"
然后重新编译一下,覆盖原有的 preview.elc

Re: Emacs下用Auctex + preview-latex的问题

发表于 : 2013-03-10 22:44
mathematica
lhui 写了:是 AUCTeX 的问题。把 preview.el 中的

代码: 全选

(defcustom preview-gs-options '("-q" "-dSAFER" "-dNOPAUSE"
改成

代码: 全选

(defcustom preview-gs-options '("-q" "-dNOSAFER" "-dNOPAUSE"
然后重新编译一下,覆盖原有的 preview.elc


已尝试,问题如故,没有解决。。。

代码: 全选

Preview-LaTeX exited as expected with code 1 at Sun Mar 10 22:41:04
LaTeX: LaTeX found no preview images

Re: Emacs下用Auctex + preview-latex的问题

发表于 : 2013-03-10 22:48
mathematica
lhui 写了:是 AUCTeX 的问题。把 preview.el 中的

代码: 全选

(defcustom preview-gs-options '("-q" "-dSAFER" "-dNOPAUSE"
改成

代码: 全选

(defcustom preview-gs-options '("-q" "-dNOSAFER" "-dNOPAUSE"
然后重新编译一下,覆盖原有的 preview.elc
我是在软件中心里直接安装的auctex,想要preview的话,除了auctex还需要装别的什么package吗?

Re: Emacs下用Auctex + preview-latex的问题

发表于 : 2013-03-12 21:04
mathematica
lhui 写了:是 AUCTeX 的问题。把 preview.el 中的

代码: 全选

(defcustom preview-gs-options '("-q" "-dSAFER" "-dNOPAUSE"
改成

代码: 全选

(defcustom preview-gs-options '("-q" "-dNOSAFER" "-dNOPAUSE"
然后重新编译一下,覆盖原有的 preview.elc


已经解决,感谢!