It’s a little tricky to get AUCTeX working on windows, specially the preview feature working. Following steps helped me.
To customize/change a variables in Emacs use
- Install MikTeX.
- Install Ghostscript & GSview.
- Install Emacs & AUCTeX from here.
- Add to system PATH the location of gsview32c.exe. (Required for LaTeX-preview). Restart the system (Did not work without restart for me)
- 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. - Change variable (see next section) preview-image-type to pnm. To use other types install correct dll files in bin directory of emacs.
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