AUCTeX on windows

May 13, 2011
It’s a little tricky to get AUCTeX working on windows, specially the preview feature working. Following steps helped me.
  1. Install MikTeX.
  2. Install Ghostscript & GSview.
  3. Install Emacs & AUCTeX from here.
  4. Add to system PATH the location of gsview32c.exe. (Required for LaTeX-preview). Restart the system (Did not work without restart for me)
  5. Add following lines to .emacs file (load "auctex.el" nil t t) (load "preview-latex.el" nil t t) .emacs file can be found in C:/users/username/appdata/roaming/ or in the home directory. 
  6. Change variable (see next section) preview-image-type to pnm. To use other types install correct dll files in bin directory of emacs.
Other customizations:
To customize/change a variables in Emacs use M-x customize-variable
  • Change default viewer: <to-find-out>
  • Change preview size: Customize variable display-mm-dimensions-alist. Experiment with width height. My setting: Width-250, height-180
Read more ...