zzamboni.org

Installing AucTeX on EmacsW32 on Win7/64bit

Today I had to install AucTeX to use on my Win7/64 machine under EmacsW32. I found the basic instructions here: http://www.sturmnet.org/blog/2007/09/01/installing-auctex-in-emacsw32, but I had to modify them a bit (in particular, I am using tetex installed from cygwin instead of MiKTeX). Here are the commands I used:

$  mkdir -p /usr/local/share/texmf
$ ./configure –prefix=’c:/Program Files (x86)/Emacs/emacs’ –with-texmf-dir=’/usr/local/share/texmf’ –with-lispdir=’c:/Program Files (x86)/Emacs/emacs/site-lisp’
$  make
$  make install

I then added the following lines to my C:\Program Files (x86)\Emacs\site-lisp\site-start.el file:

(load “auctex.el” nil t t)
(load “preview-latex.el” nil t t)
(eval-after-load ‘info
       ‘(add-to-list ‘Info-directory-list “c:/Program Files/Emacs/share/info”))
(setq TeX-auto-save t)
(setq TeX-parse-self t)

Everything seems to be working properly, even preview-mode.