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
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?
latex-preview-pane
. What happens if you try to turndocview-mode
on in the preview pane? – T. Verron Jul 10 '14 at 13:15LaTeX-mode-hook
. – T. Verron Jul 10 '14 at 13:16xelatex
instead ofpdflatex
, yes it is possible: tex.stackexchange.com/questions/21200/auctex-and-xetex – T. Verron Jul 10 '14 at 13:16