The first step is to configure the source code, telling it where various files will be. To do so, run
./configure options
(Note: if you have fetched preview-latex from CVS rather than
a regular release, you will have to first generate ./configure
by
running autogen.sh
in the preview
directory.)
On many machines, you will not need to specify any options, but if
configure
cannot determine something on its own, you'll need to
help it out with one of these options:
--with-emacs[=
/path/to/emacs]
$PATH
, or
configure
is not finding the right Emacs executable, you can
specify it with this option.
--with-xemacs[=
/path/to/xemacs]
--with-lispdir=
/dir
--with-packagedir=
/dir
If you are installing preview-latex for a single user, and you have
installed no XEmacs packages as that user before, then configure
may try to install preview-latex in the systemwide package directory
(that it cannot write to), causing installation to fail. In that case,
a good value for this option is ~/.xemacs/xemacs-packages
, as
XEmacs looks there for per-user packages by default.
--with-tex-site=
/dir
tex-site.el
file.
--with-texmf-dir=
/dir
--with-tex-dir=
/dir
--with-texmf-dir=
/dir
you can specify
where the TeX TDS directory hierarchy resides, and the
TeX files will be installed in
/dir/tex/latex/preview
.
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
.
--with-doc-dir=
/dir
--with-tex-dir=
/dir
,
but is normally not necessary otherwise.
--disable-8bit-test
--help
configure
exist, and we do not have the room to
describe them here; a short description of each is available, using
--help
.