–with-tex-dir=/dir If you want to specify an exact directory for the preview TEX files, use --with-tex-

dir=/dir. In this case, the files will be placed in /dir, and you’ll also need the following option:

–with-doc-dir=/dir –with-doc-dir=/dir –with-doc-dir=/dir This option may be used to specify where the TEX documentation goes. It is to be used

when you are using --with-tex-dir=/dir, but is normally not necessary otherwise.

0.1 Build/install

Once configure has been run, simply enter

make at the prompt to byte-compile the lisp files, extract the TEX files and build the documentation files. To install the files into the locations chosen earlier, type

make install You may need special privileges to install, e.g., if you are installing into system directo-

ries.

0.2 Loading the package

You can detect the successful activation of AUCTEX and previewlatex in the menus after loading a L^{A}TEX file like preview/circ.tex: AUCTEX then gives you a ‘Command’ menu, and previewlatex gives you a ‘Preview’ menu.

For XEmacs, if the installation occured into a valid package directory (which is the default), then this should work out of the box.

With Emacs (or if you explicitly disabled use of the package system), the startup files

auctex.el and preview-latex.el may already be in a directory of the site-start.d/

variety if your Emacs installation provides it. In that case they should be automatically loaded on startup and nothing else needs to be done. If not, they should at least have been placed somewhere in your load-path. You can then load them by placing the lines

(load "auctex.el" nil t t) (load "preview-latex.el" nil t t) into your init file. If you explicitly used --with-lispdir, you may need to add the specified directory into

Emacs’ load-path variable by adding something like (add-to-list ’load-path "~/elisp") before the above lines into your Emacs startup file. For site-wide activation in GNU Emacs, see Once activated, the modes provided by AUCTEX are used per default for all supported

file types. If you want to change the modes for which it is operative instead of the default, use

M-x customize-variable RET TeX-modes RET

If you want to remove a preinstalled AUCTEX completely before any of its modes have been used,

(unload-feature 'tex-site)

should accomplish that.