Viewing LaTeX Output in Emacs

假如想象 提交于 2019-12-11 12:49:57

问题


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/

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.

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)

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

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


回答1:


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

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 will tell you which version you're using.



来源:https://stackoverflow.com/questions/34815426/viewing-latex-output-in-emacs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!