[Tex/LaTex] the best side-by-side preview method for Emacs24 AUCTeX

auctexemacspreviewwindows

I am new to the Emacs world. I did this transition from one of the best latex editors and despite of the complexity of Emacs at every turn, I can still see there is future in learning it on the long run. I installed windows version of GNU Emacs24 as it offers all-in-one bundle kindly authored by Vincent Goulet.

I installed the AUCTeX according to its manual. I wrote a small tex file, but I did not figure out how to get a side-by-side preview like that of TeXStudio for example.

I found one here called latex-preview-pane. It works but still do not get a PDF only bohemic script instead (see image below).

Another issue when I put the code (latex-preview-pane-enable) in the .emacs default.el, it throws an error, so this means I have to activate it each time from mini buffer area.

When I press M-P (Alt + Shift + p) it opens pdf in the default external pdf viewer I have on machine which is Foxit in this case without any problem.
So what am I missing here? How can I get a decent side-by-side preview in Emacs24?

By the way I want to compile every time with xelatex and not pdflatex is it possible to define this option in the .el file?

Screenshot

enter image description here

Note

  • Window seven 32bit
  • Texlive 2013 distribution
  • Emacs 24.3.1
  • AUCTeX 11.87.5

Update
The latex-preview-pane worked by when I press M-p it does not update the preview. Other issue the right margin is partially hidden whreas too much white space on the left (see screenshot below). How to fix that?

enter image description here

Best Answer

I installed the AUCTeX according to its manual. I wrote a small tex file, but I did not figure out how to get a side-by-side preview like that of TeXStudio for example.

I found one here called latex-preview-pane. It works but still do not get a PDF only bohemic script instead (see image below).

Author of latex-preview-pane here. It looks like (as T. Verron pointed out) you do not have doc-view-mode installed. On Windows Emacs installs this is sometimes the case. Here's a link to a guide for getting doc-view-mode working on Windows:

http://emacsworld.blogspot.com/2009/08/getting-docview-to-work-on-windows.html

Also, be sure to read through the latex-preview-pane Wiki page, here: http://www.emacswiki.org/emacs/LaTeXPreviewPane

In particular, make sure that you are getting it from MELPA, not elsewhere.

Related Question