在Emacs中查看LaTeX输出 [英] Viewing LaTeX Output in Emacs

查看:182
本文介绍了在Emacs中查看LaTeX输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Emacs中查看LaTeX文件的输出。我遵循本指南:

I am trying to view the output of a LaTeX file in Emacs. I am following this guide:

http://www.r-bloggers.com/using-doc-view-with-auto-revert-to-view-latex -pdf-output-in-emacs /

我已经完成了他们所说的一切,但是当我运行 Cc Cc 并在其他Emacs窗口打开pdf,我变废话了。最好,当我运行 Cc Cc 时,我希望pdf在其他窗口中立即显示 - 我做了很多直播,我需要定期查看输出。

I have done everything they said, but when I run C-c C-c and open the pdf in the other Emacs window, I get nonsense. Preferably, I want the pdf to immediately show in the other window when I run C-c C-c--I do a lot of live texing, and I need to periodically view the output.

请注意,我正在从小牛指挥终端运行Emacs。我已经尝试了在google和Stack Exchange上找到的每一个建议,但没有任何帮助。目前我已经配置了.emacs文件:

Please note that I am running Emacs from the Mavericks command terminal. I have tried every suggest I could find on google and Stack Exchange, but nothing helps. At the moment I have configured my .emacs file as such:

(require 'xpdf)

(require 'ghostscript)

(setq TeX-PDF-mode t)

但是,这还是什么都不做。我是新来的Emacs,所以任何帮助将不胜感激。

However, this still does nothing. I am new to Emacs, so any help would be appreciated.

更新:我也尝试过 M-x doc-view-mode ,但它表示不匹配。为什么doc-view模式对我有用?

UPDATE: I have also tried M-x doc-view-mode, but it said "no match". Why doesn't doc-view mode work for me?

推荐答案

我的水晶球告诉我你正在使用一个非常旧的版本的Emacs,比如与macosx捆绑在一起的笨蛋。

My crystal ball tells me you're using a very old version of Emacs, such as the crappy one that comes bundled with macosx.

自己动手,安装一些类似 http://emacsformacosx.com/ (并确保您使用这个而不是另一个,因为您仍然安装旧的)。

Do yourself a favor and install something like http://emacsformacosx.com/ (and make sure you use this one rather than the other one, since you'll still have the old one installed).

M-:emacs-version RET 会告诉你你正在使用哪个版本。

M-: emacs-version RET will tell you which version you're using.

这篇关于在Emacs中查看LaTeX输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆