Viewing LaTeX Output in Emacs
<p>I am trying to view the output of a LaTeX file in Emacs. I am following this guide:</p>

<p><a href="http://www.r-bloggers.com/using-doc-view-with-auto-revert-to-view-latex-pdf-output-in-emacs/" rel="nofollow">http://www.r-bloggers.com/using-doc-view-with-auto-revert-to-view-latex-pdf-output-in-emacs/</a></p>

<p>I have done everything they said, but when I run <code>C-c C-c</code> 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 <code>C-c C-c</code>--I do a lot of live texing, and I need to periodically view the output.</p>

<p>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:</p>

<pre><code>(require 'xpdf)

(require 'ghostscript)

(setq TeX-PDF-mode t)
</code></pre>

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

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