--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.

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 directories.

Loading the package
===================

You can detect the successful activation of AUCTeX and previewlatex in the menus after loading a LaTeX 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.