

From owner-ntemacs-users@cs.washington.edu  Fri Jul 25 12:47:16 1997
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Fri" "25" "July" "1997" "13:02:02" "+0200" "Lars Schmidt-Thieme" "lschmidt@ix.urz.uni-heidelberg.de" nil "104" "installing AucTeX with mikTeX and NTemacs" "^From:" nil nil "7" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id MAA27159 for <voelker@june.cs.washington.edu>; Fri, 25 Jul 1997 12:47:15 -0700
Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id MAA41023 for <voelker@joker.cs.washington.edu>; Fri, 25 Jul 1997 12:47:14 -0700
Received: (majordom@localhost) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) id MAA23325 for ntemacs-users-outgoing; Fri, 25 Jul 1997 12:04:51 -0700 (PDT)
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id MAA23319 for <ntemacs-users@trout.cs.washington.edu>; Fri, 25 Jul 1997 12:04:47 -0700 (PDT)
Received: from relay.urz.uni-heidelberg.de (relay.urz.uni-heidelberg.de [129.206.119.201]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with ESMTP id MAA22416 for <ntemacs-users@cs.washington.edu>; Fri, 25 Jul 1997 12:04:45 -0700
Received: from ix.urz.uni-heidelberg.de (root@aixterm1.urz.uni-heidelberg.de [129.206.119.41]) by relay.urz.uni-heidelberg.de (8.7.6/8.7.4) with SMTP id VAA22056 for <ntemacs-users@cs.washington.edu>; Fri, 25 Jul 1997 21:04:11 +0200 (MET DST)
Received: from modem.urz.uni-heidelberg.de by ix.urz.uni-heidelberg.de (AIX 3.2/UCB 5.64/4.03aixterm1)           id AA70818; Fri, 25 Jul 1997 21:04:32 +0200
Message-Id: <9707251904.AA70818@ix.urz.uni-heidelberg.de>
Reply-To: Lars Schmidt-Thieme <lschmidt@ix.urz.uni-heidelberg.de>
X-Mailer: Lars Schmidt-Thieme's registered AK-Mail 3.0b [ger]
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Precedence: bulk
From: Lars Schmidt-Thieme <lschmidt@ix.urz.uni-heidelberg.de>
Sender: owner-ntemacs-users@cs.washington.edu
To: ntemacs-users@cs.washington.edu
Subject: installing AucTeX with mikTeX and NTemacs
Date: Fri, 25 Jul 1997 13:02:02 +0200

There where several persons asking, how to install AucTeX with
mikTeX and NTemacs. First of all I want to state that there is
a mailing list dedicated to aucTeX:

   auc-tex@sunsite.auc.dk

To join, send a request to auc-tex-request@sunsite.auc.dk.

To install aucTeX:

1) the latest version is (so far I now) 9.7p.

2) Make and directory for all your emacs-addons (don't put
    them in the emacs-directory, because they will get lost,
    if you install a new release of emacs), say
    c:/programme/emacsPlugins

3) gunzip and (un)tar the aucTeX-archiv in this directory,
    which will result in a subdirectory auctex-9.7p with
    the elisp files and an subsubdirectory doc with the
    info-documentation. Rename the actual version to
    auctex (no links in stupid win32).

4) install the documentation first. You have to add the lines

    * AUCTeX: c:/programme/emacsPlugins/auctex/doc/auctex).
        AUC TeX. Improved TeX/LaTeX mode.

   to the info-dir-file dir (if your emacs resides in
   c:/programme/emacs, this will be c:/programme/emacs/info/dir)

   Now you can read the documentation by chosing help/read manuals
   from the menus.

5) next you will have to do some additions to your .emacs file
   (or your site-startup file, if you have any), copying parts from
   tex-site.el and from tex.el. I did the following:

; -------------------------------------------------------------------------
; 12. tex-site: aucTex   (was: tex-site.el)
; --------------------------------------------------------------------------
(defvar no-doc
  "This function is part of AUC TeX, but has not yet been loaded.
Full documentation will be available after autoloading the function."
  "Documentation for autoload functions.")

(defvar TeX-lisp-directory "c:/programme/emacsPlugins/auctex/"
  "*The directory where the AUC TeX lisp files are located.")

(defvar TeX-macro-global
  '("c:/programme/miktex/tex/" "c:/data/tex/texinput/")
  "*Directories containing the sites TeX macro files and style files.")

(defvar TeX-command-list
  (list(list "LaTeX2e" "latex.exe \\\\nonstopmode\\\\input{%t}"
	        'TeX-run-LaTeX nil t)
       (list "dviPS" "dviPS %d -o %f" 'TeX-run-command nil t)
	(list "DVIView" "/programme/dviwin/dviwin2.exe -1 %d"
	      'TeX-run-command nil t)
	(list "Ghostview" "/programme/ghostscript/gsview/gsview32.exe %f"
	      'TeX-run-LaTeX nil t)
	(list "BibTeX" "bibtex %s" 'TeX-run-BibTeX nil nil)
	(list "Index" "makeindex %s" 'TeX-run-command nil t)
	(list "Check" "lacheck %s" 'TeX-run-compile nil t)))
(add-load-path TeX-lisp-directory)

(defvar bibtex-mode-hook nil)
(or (memq 'BibTeX-auto-store bibtex-mode-hook) ;No `add-hook' yet.
    (setq bibtex-mode-hook (cons 'BibTeX-auto-store bibtex-mode-hook)))

(autoload 'BibTeX-auto-store "latex" no-doc t)

(autoload 'tex-mode "tex" no-doc t)
(autoload 'plain-tex-mode "tex" no-doc t)
(autoload 'latex-mode "latex" no-doc t)
(setq TeX-default-mode 'LaTeX-mode)
; --------------------------------------------------------------------------
-----

6) The values you have to adjust are only the directory names:

- TeX-lisp-directory should point to your aucTeX-directory (as described
above).
- TeX-macro-global should point to your TeXinput-directories. If you
installed
  mikTeX to c:/programme/miktex, this is c:/programme/miktex/tex/; you might
  wish to add some other directory for your personal include-files
  (above: c:/data/tex/texinput/).

The settings of TeX-command-list assume, that you want to use dviwin as
DVI-previewer instead of yap, which comes with mikTeX; if you prefer yap,
replace c:/programme/dviwin/dviwin2.exe by yap.

If you don't have ghostview, you could delete the line in TeX-command-list
concerning ghostview; probably you want to delete the line with
dvips, too.

This works fine for me. But I am using cygwin's bash as shell; if you don't
(think about it!), you have to  say "\\" instead of "\\\\" in
TeX-command-list and a prayer, that it works in spite of Microsoft.

  With best regards,
    Lars Schmidt-Thieme


