[Willem Minten's Home Page] [SISTA] [Department of Electrical Engineering (ESAT)] [Faculty of Engineering] [K.U.Leuven]

# Native 32-bit TeXing on PC

This page explains the basic installation steps to obtain a full-featured 32 bit environment of LATEX on a Win95 or WinNT4 PC.

Last modification June 29, 1998
Feedback? Willem.Minten@esat.kuleuven.ac.be
Page on
`http://www.esat.kuleuven.ac.be/~minten/NTTeXing/NTTeXing.html`
Software, and lisp files can be found in
ftp://ftp.esat.kuleuven.ac.be/pub/SISTA/minten/soft/NTemacs/ .

# Installing MiKTEX1.12

using anonymous ftp, the 32-bit LATEX software from any of the full CTAN hosts
(ftp://ftp.dante.de or ftp://ftp.tex.ac.uk or ftp://ctan.tug.org/ ):
```cd /tex-archive/systems/win32/miktex/
bin
get 1.11.zip
```
All other information about the installation can be found in
http://www.inx.de/~cschenk/miktex/ . I recommend to use the latest beta update (beta3) that can be down loaded from the down load area in http://www.inx.de/~cschenk/miktex/ .
Both the release 1.11beta1 and beta3 update have an install-shield .
For convenience I have put them in my ftp directory (see above for a hyper link).
Run
first `miktex111_beta1.exe`. In order to benefit from several setting used below, you are urged to use `c:\texmf` as root directory of MiKTEX. If you do not want to do this, then you should consult yourself the manuals to see what else should be modified too.
If the installation is successful it will end with a `dvi` preview with `YAP` (Yet Another Previewer).
The local guide of MiKTEX can be found in `c:\texmf\doc\miktex\` (`miktex.html` or `miktex.hlp` or `miktex.pdf`).
Thereafter the beta3 update bare.exe installs automatically the beta3 update. During the auto-install of the beta3 update you will notice that a local texmf tree `c:\localtexmf` can be created. It is recommended to use this local texmf tree for personal use (additional style files, etc.). See point 2 (Input directory) below.
PATH-variable
`PATH` has to be defined as follows:
* WIN95 users
should add the following line in their major `autoexec.bat`:
`set PATH=%PATH%;c:\texmf\miktex\bin`.
Win95 users should then restart their PC.
* winNT users
should select `<Control Pannel>`, `<System>`, `<Environment>`.
At the 'Variable' -prompt enter `PATH`.
At the 'Value' -prompt enter `%PATH%;c:\texmf\miktex\bin`.
Thereafter press `<OK>`.
This is necessary for running the distribution MiKTEX properly.

If you want to use additional packages that MiKTEX does not include currently, please consult the part on Extracting LATEX Macros of my first LATEX homepage (http://www.esat.kuleuven.ac.be/~minten/latex2e/latex2e.html#SECTION00025000000000000000 ).
2. Input Directory
The input directories of LATEX in MiKTEX are `c:\texmf\tex\latex`, `c:\texmf\tex\generic` and its subdirectories. By default, additional missing style files (`.sty`, `.tex`, and `.cls`), unpacked packages etc are to be put in these directories. The directory `c:\loacaltexmf` can be used for adding personal files. Then they should be placed in `c:\localtexmf\tex\latex`, `c:\localtexmf\tex\generic` and its subdirectories.
For plain TEX the input directories are `c:\texmf\tex\plain` and its subdirectories.
During the installation you can also add additional personal input paths. For examples see the `readme.txt` in `miktex.zip`.

# Installing emacs20.3

the pre-compiled (i386) version from somewhere in
ftp://ftp.cs.washington.edu/pub/ntemacs/ . All you need is located in the files -bin-i386.tar.gz and -lisp.tar.gz
Unzip
(and use folder names of the zipped files) both files in `c:\`.
Installation.
First rename `c:\emacs-XX.YY\` into `c:\emacs\` (This makes life and future updates easier). Then double-click on `c:\emacs\bin\addpm.exe` and click on `<OK>`. You can also type at a DOS prompt (while staying in the `bin` directory of NTemacs: `addpm.exe c:\emacs`)
Make a `shortcut to runemacs.exe` and place it where you want to keep it.
File Types setting.
Select `<My Computer>`, `<View>`, `<Options>`, `<File Types>`, `<New Type>`.
At the 'Description of type' -prompt type : `LaTeX file`.
At the 'Associated Extension' -prompt type: `tex`.
Then click `<New>`. At the 'Action' -prompt type `open`.
At the 'Application used to...' -prompt: browse to `C:\emacs\bin\shortcut to runemacs.exe`, AND append to this the option `--debug-init` (leave one space between the option and the executable; remark the two minus signs as option selector). This option warns you if the emacs INIT-file (i.e. `.emacs` or `_emacs`) contains errors.
Press `<OK>`, thereafter press `<Close>`, and again `<Close>`.
Create
the missing directories `C:\emacs\data` and `C:\emacs\lock.`
A test
Double-click on a `.tex`-file. Emacs will run with the selected file in a buffer. The default latex major mode should be selected. This is not yet the AUC-TEX mode.
Remark: Reading errors can occur if the `.tex`-file is located in a path containing a directory with spaces in its name. Avoid this!
Note for emacs novices: `C-x` is a simultaneous keypress of the `<Control>` and the `x` key, `M-x` is a simultaneous keypress of the `<Alt>` and the `x` key. An alternative of the `<Alt>` is the `<Esc>` key. Please consult the `<Help>` menu for additional information on using emacs.

# Installing AUC-TEX9.9g

AUC-TEX is a superior TEX mode for emacs. Below also the most fastest font highlighting (this lisp file is included in the AUC-TEX distribution) is installed.

the 32-bit AUC-TEX software `auctex.zip` from ftp://ftp.dina.kvl.dk/pub/Staff/Per.Abrahamsen/auctex/ (The AUCTEX home page is http://sunsite.auc.dk/auctex/ ).
Create
the directory `C:\emacs\site-lisp`.
Unzip
(and use folder names of the zipped files) `auctex.zip` in the directory
`C:\emacs\site-lisp\`.
Next rename `C:\emacs\site-lisp\auctex-X.YZ` into `C:\emacs\site-lisp\auctex` (This makes life and future updates easier).
Create the INIT-file
`.emacs` or `_emacs` in the NTemacs directory `C:\emacs`:
```;;beginning of _emacs
;; author W. Minten
;; last modification September 15, 1997

;; no emacs start-up message
(setq inhibit-startup-message t)

(put 'eval-expression 'disabled nil)
(setq text-mode-hook '(lambda() (auto-fill-mode 1)))

;; Redefine some keys.
(global-set-key [home] 'beginning-of-line)
(global-set-key [end] 'end-of-line)

;; prevent echoing ^M in the shell (a hard one)

;; fontification font-lock.el much better than the default hilit19.el
;***************************** (for coloring)
;;automatic Font Lock mode in TeX mode
;;if Font Lock necessary for other than .tex files, uncomment following
(global-font-lock-mode t)

;; load default lisp file (.el) for improved LaTeX mode
;; all settings are located in tex-site, hence
;**************************************************************

;;end of _emacs
```
In this file over-all settings of emacs are found. Because the specific Major-mode setting of AUC-TEX is rather large, it is defined in another lisp file, namely `tex-site.el` (next item); this is loaded with the last command of `_emacs`. Remark: this INIT-file will only be loaded if the `HOME` variable has been set properly to the NTemacs root directory. Therefore
* WIN95 users
should add the following line in their major `autoexec.bat`:
`set HOME=c:\emacs\`.
Win95 users should then restart their PC.
* winNT users
should select `<Control Pannel>`, `<System>`, `<Environment>`.
At the 'Variable' -prompt enter `HOME`.
At the 'Value' -prompt enter `c:\emacs\`.
Thereafter press `<OK>`.
In emacs this `HOME` directory is called `~\` or `~/`.
Intermediate test
You can comment the line `(load "~/site-lisp/tex-site")`, save that file as `.emacs` (or `_emacs`) in `~\`, and double click on a `.tex` file. This file should be loaded in an emacs buffer without any error interruption. Comments can be observed in the `<Buffer>`, `<Messages>`.
If you use a color screen, LATEX commands should be fontified. Now place your cursor half-way the text and press alternatively on the keys `<Home>` and `<End>`. The default behavior of NTemacs is to jump to the beginning and the end of the buffer. However, since these keys are redefined in the INIT file, its behavior should be a jump to the beginning and the end of the actual line.
Create the tex-site lisp file
`tex-site.el` in the NTemacs subdirectory `~\site-lisp`. Please read the important comments included in this lisp file!!
You can copy my effort (this `tex-site.el` can be found in this ftp directory:
```;;beginning of tex-site.el
;; modifications by W. Minten
;; Last modification August 17, 1997

;;; Customization:
;;  If you want to make AUC TeX aware of style files and multi-file
;;  documents right away.
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq default-TeX-master nil)

;; Copy variables you need to change from the start of `tex.el' and
;; insert them here.
(defvar no-doc
"This function is part of AUC TeX, but has not yet been loaded.

(defvar TeX-lisp-directory "~/site-lisp/auctex/"
"*The directory where the AUC TeX lisp files are located.")

;;; The two following definitions are in accordance with the installation
;; setting of MiKTeX as described in the Local Guide of MiKTeX
;; c:\texmf\doc\miktex\miktex.html
(defvar TeX-macro-global  '("c:/texmf/tex" "c:/localtexmf/tex")
"*Directories containing the  sites TeX macro and style files.
Normally, AUC TeX will only allow you to complete a short list of
built-in macros and environments and on the macros you define yourself.
AUC TeX, you will be able to complete on all macros available in the
standard style files used by your document.  To do this, you must set
this variable to a list of directories where the standard style files
are located.  ")

;; The 'TeX-command-list' (pull-down menu at the top of emacs appearing when
;; emacs is in TeX major mode) consists of the options below.
;; Invoking 'C-c C-c' in a TeX major mode will run the "LaTeX" command
;; of the command list. (After compiling, errors can be retrieved by
;; invoking 'C-c `' (Control-c accent-gr\`ave).
;; If no errors occur and if all cross-references are known, a second
;; 'C-c C-c' will run the 'View' command of the list.
(defvar TeX-command-list
(list(list "LaTeX" "latex \\nonstopmode\\input{%t}"
'TeX-run-LaTeX nil t)
(list "View" "yap %d"
'TeX-run-command nil t)
(list "dviPS" "dvips %d -o %f"
'TeX-run-command nil t)
(list "Ghostview" "c:\\GStools\\gsview\\gsview32.exe %f"
'TeX-run-command 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)
(list "Other" "" 'TeX-run-command t t)))

(setq TeX-default-mode 'LaTeX-mode)
; --------------------------------------------------------------------

(or (assoc TeX-lisp-directory (mapcar 'list load-path)) ;No `member' yet.
(assoc (substring TeX-lisp-directory 0 -1) ;Without trailing slash.

;; This hook will store bibitems when you save a BibTeX buffer.
(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)))

(setq text-mode-hook 'turn-on-auto-fill)

;for font-latex running on fast machines
(setq font-lock-maximum-decoration t)
;for font-latex in general
(require 'font-latex)

;;; tex-site.el ends here
```

If you install NTemacs on another disk than `c:` the hard disk drive letter `c:` should be changed in the definition of the variable `TeX-macro-global`.

In very rare cases two problems can occur with this tex-site.el (They can be cast back to the different shell that is used by the OS.). If you are in emacs, and you launch the latex compiler by using e.g. `'C-c C-c'`, then the LaTeX-command is executed in a shell. This LaTeX-command is defined in the TeX-command-list in tex-site.el by the sentence:

```(list(list "LaTeX" "latex \\nonstopmode\\input{%t}"
```
1.
Problems with the backslashes.
If you notice that this command is translated in the shell as
`'Running `LaTeX' on `filename' with ``latex nonstopmodeinputfilename.tex'''`,
then use 4 (four) backslashes instead of 2, i.e.
`(list(list "LaTeX" "latex \\\\nonstopmode\\\\input{%t}"`.
2.
Problems with the filename.
If you notice that you get two suffixes appending your filename in the shell command, i.e.
`'Running `LaTeX' on `filename' with ``latex \nonstopmode\input{filename.tex.tex}'''`,
then use the filename variable `%s` instead of `%t`.
If you encounter similar problems for the execution of a preview, please check the latex file extension .tex, it should be in lower case.

If you don't have ghostview for PC (`gsview32.exe`), please read also the next section.

Documentation
The AUC-TEX documentation can be installed in emacs, and retrieved in the emacs menu `<Help>`, `<Browse Manuals>`; or with `C-h i`: To achive this, load the file `c:\emacs\info\dir` in your favorite editor (emacs) and append in this file the following:
```* AUCTeX: (c:/emacs/site-lisp/auctex/doc/auctex)
AUC TeX. Improved TeX/LaTeX mode
```
Final check
First uncomment the load line of `tex-site` in the INIT file, and save it again. Then double-click on a `.tex` file. Emacs starts and `_emacs` is executed (and consequently also `tex-site.el`). Since a `.tex` file is selected, this file will be placed in a buffer using the major mode of AUC-TEX
These results can be seen in `<Buffers>`, `<Messages>`.

Please read `c:\emacs\site-lisp\auctex\Readme` for an efficient use of AUC-TEX. E.g. `'C-c C-c'` will start the latex compilation in nonstopmode. After compilation, errors can be retrieved with `'C-c `'`. If no more errors occur and if all cross references are well defined, a `'C-c C-c'` will launch the previewer of your choice. Etc.
If you want an efficient LATEX macro completion in AUC-TEX ('parsing' facility of LATEX macros, style files and classes), be sure that `TeX-macro-global` is set properly, and invoke
`M-x TeX-auto-generate-global`.
Then in the directory `~\site-lisp\auctex\auto\` the accompanying lisp files are saved. This generation will take a while.

# DVI- and PS-preview and printing

Basically, YAP is a GUI for previewing and printing DVI files, GhostView does the same for PS and EPS files.
The recent version of YAP is able to show postscript parts during previewing dvi-files (some bugs though,...). Therefore you need ghostscript, a postscript file graphics interpreter.
Remark that YAP itself is not able to print these postscript parts to a printer. Therefore you need to convert the DVI file to a complete PS file with dvips (also included in the MIKTEX distribution), and to read this PS file in GhostView. GhostView is also able to print entire postscript files to non-postscript printers.

Summarizing I recommend the following:
1.
use YAP for previewing (speed reasons). If the DVI file does not contain postscript parts you can immediately print this DVI file from within YAP.
2.
use YAP for immediate printing to a postscript printer, since YAP embeds facilities to compile the DVI file and to redirect the PS output to a postscript printer (see `<file>`, `<Dvips>`).
3.
use GhostView for previewing the entire file in PS format, or for printing to any printer, even a non-postscript printer.
For both facilites do as follows: Surf to the homepage of Ghostscript and GSview (http://www.cs.wisc.edu/~ghost/aladdin) where you can find the files you need: gsviewXX.zip, gsYYYini.zip, gsYYYfn1.zip, and gsYYYw32.zip.
GsviewXX.zip contains an automatic setup.
If you want to benefit form the settings above you should:
Unzip
`gsv22w32.zip` in `c:\gstools`.
Copy
all the other `.zip` files (`*fn1.zip`, `*ini.zip`, and `*w32.zip`) in `c:\gstools`.
Execute
`c:\gstools\setup.exe`. This extracts all the `.zip` files to the appropriate directory. Check that the default Ghostscript version is used during installation.
Final installation
will be done when `c:\gstools\gsview\gsview32.exe` is accessed for the first time. Every default setting should be ok.
If you want to use YAP in conjunction with ghostscript, then you should tell YAP (in ,<View>, <Options>, <GhostScript>) where to find ghostscript (`C:\gstools\gs5.10\gsdll32.dll`).

# How to speed-up things

1.
If everything works fine, you can kick-out the option `--debug-init` option in the File Types setting of Windows.
2.
You can speed-up the 'parsing' during loading by selective or even complete deletion of some not frequently used lisp files in `~\site-lisp\auctex\auto\`
3.
Byte-compile the AUC-TEX related lisp files. The most easy way is to load the file
`~\site-lisp\tex-site.el` in emacs and compile this one by selecting
`<Emacs-Lisp>`, `<Byte-compile This File>`.
To Byte-compile the remaining lisp files in `~\site-lisp\auctex`, do as follows:
(a)
type (the '`0`' is a zero) `C-u 0 M-x byte-recompile-directory` `<return>`
(b)
enter the AUC-TEX lisp file directory, `~/site-lisp/auctex` `<return>`
(c)
end with `<return>`
Similar things can be done to byte-compile other directories like `~\site-lisp\auctex\auto\`

# Full-featured LATEX support in NTemacs

Below, an extended INIT file is shown which also embeds useful lisp files (Please refer to Voelker's NTemacs home page (`http://www.cs.washington.edu/homes/voelker/ntemacs.html`, mirrored at
`http://ftp.sunet.se/pub/os/Win32/ntEmacs/docs/ntemacs.html`) and to the Elisp Home Page `http://www.cs.indiana.edu/usr/local/www/elisp/elisp-intro.html` to catch them (If you are brave you can also download them from the ftp directory):
stig-paren.el
Improved open/closed parentheses check.
bib-cite.el
(and others from ftp://ftp.phys.ocean.dal.ca/users/rhogee/elisp/index.html)
reftex.el
you can also use this reference tool.
(from http://www.strw.LeidenUniv.nl/ dominik/Tools/ )
untranslate.el
for proper mounting of UNIX disks.
ispell4.zip
Ispell for PC (see `http://cat.rpi.edu/~tibbetts/ispell_toc.html` for the installation procedure). The minimal things you will have to do is:
1.
unzip the zipfile (use the folder names of the zipped files) and use the settings below.
2.
move `ispell4.el` and `ispell4.elc` to the `c:\emacs\site-lisp directory`
3.
move `ispell` to `c:\emacs\info`
4.
append the line `*ispell v4: (ispell). GNU ispell version 4 for NT Emacs` to the file `c:\emacs\info\dir`
If you want to use them, download the lisp files in ~ /site-lisp/ and use the INIT file below (this `_emacs` can be downloaded from the ftp directory). Help on using these lisp files can be found in the beginning of the lisp files.
In the mean time also better frame and keyboard settings will be installed (e.g. better `<Backspace>` and `<Delete>` key support, dependent of the `<Insert>`-key toggle).

```;;beginning of _emacs
;; author W. Minten et al.
;; last modification June 28, 1998

;; default frame and color settings
; invoke   M-x list-colors-display    to choose the colors
; comment this if you want to see the default settings
(setq default-frame-alist      '((top . 000) (left . 350)
(width . 80) (height . 44)  (cursor-color . "red")
(background-color . "wheat")
(vertical-scroll-bars . right)
;fonts found on the mailing list, uncomment one at your convenience
;(font . "-*-Courier-normal-r-*-*-13-97-*-*-c-*-*-ansi-")
;(font . "-*-Terminal-normal-r-*-*-8-60-*-*-c-*-*-oem-")
;(font . "-*-Terminal-normal-r-*-*-12-72-*-*-c-80-*-oem-")
;(font . "-*-Terminal-normal-r-*-*-8-60-*-*-c-*-*-oem-")
;(font . "-*-Terminal-normal-r-*-*-19-142-*-*-c-*-*-oem-")
)
)
;; some interactive color settings by means of
; M-x set-mouse-color  RET magenta RET  ;strange but this seems not to work..
; M-x set-cursor-color RET red RET
; M-x set-background-color RET black RET
; M-x set-foreground-color RET yelow RET

(setq display-time-24hr-format t)                       ; In 24 hour format
(display-time)                                          ; Display the time
(setq-default auto-fill-hook 'do-auto-fill)
(setq fill-column 78)
(standard-display-european 1)              ; Display full ISO character set
(put 'eval-expression 'disabled nil)
(setq text-mode-hook '(lambda() (auto-fill-mode 1)))

;; no emacs start-up message
(setq inhibit-startup-message t)

;; Redefine some keys.
(setq kill-whole-line t)                                ; Kill EOL too
(global-set-key [kp-home] 'beginning-of-line)
(global-set-key [kp-end] 'end-of-line)
(global-set-key [home] 'beginning-of-line)
(global-set-key [end] 'end-of-line)
(global-set-key [C-home] 'beginning-of-buffer)
(global-set-key [C-end] 'end-of-buffer)
(global-set-key [S-delete] 'clipboard-kill-region)
(global-set-key [S-insert] 'clipboard-yank)
(global-set-key [C-insert] 'clipboard-kill-ring-save)
(global-set-key [S-right] 'set-mark-command)
(global-set-key [f1]      'goto-line)           ; goto line
(global-set-key [delete]  'delete-char)         ; delete character under cursor
(global-set-key [f4]      'indent-three-spaces) ; indent 3 spaces
(global-set-key [f8]      'kill-current-line)   ; delete current line
(global-set-key [f7]      'kill-current-or-next-word)   ; delete current word
(global-set-key [?\C-z] 'undo); added here because I usually do kills by mistake
(global-set-key "\C-x\C-j" 'goto-line) ; Command prompts for linenumber to go to.
;; Define function that indents three spaces.
(defun indent-three-spaces ()
"Indent three spaces."
(interactive)
(beginning-of-line)
(insert "   ")
(next-line 1)
)
;; Define function that removes the current line.
(setq kill-whole-line t)
(defun kill-current-line ()
"Delete the current line."
(interactive)
(beginning-of-line)
(kill-line)
)
;; Define function that removes the current word.
(defun kill-current-or-next-word ()
"Delete current or next word."
(interactive)
(forward-word 1)
(backward-kill-word 1)
;(delete-char 1)
)

;;;;Define keys and functions useful for AUC-TeX
;;If you do not want to use 'C-c C-c' or the pull-down menu "Command"
(global-set-key [(control f5)] 'do-LaTeX)      ; LaTeX  the current file
(global-set-key [(control f6)] 'do-DVIview)    ; DVIview  the current file
(defun do-LaTeX ()
"LaTeX the curent file."
(interactive)
(TeX-command "LaTeX" 'TeX-master-file))
(defun do-DVIview ()
"YAPview the curent file."
(interactive)
(TeX-command "View" 'TeX-master-file))
;;If you do not want to use the pull-down menu "Command" for dvips
(global-set-key [(control f7)] 'do-DVIPS)      ; DVIPS  the current file
(global-set-key [(control f8)] 'do-PSview)     ; PSview  the current file
(defun do-DVIPS ()
"DVIPS the curent file."
(interactive)
(TeX-command "dviPS" 'TeX-master-file))
(defun do-PSview ()
"DVIPS the curent file."
(interactive)
(TeX-command "Ghostview" 'TeX-master-file))

;; prevent echoing ^M in the shell

;; if you have a network connection with UNIX like environment
; take care of CR/LF disabling if NTemacs manages (load/save) files on it
; ftp://ftp.sunet.se/pub/os/Win32/ntEmacs/docs/ntemacs.html#translation
(add-untranslated-filesystem "d:")    ; d: is a UNIX drive
;if you encounter a file with ^M or ... at the end of every line,
; this means a worng copy by samba or floppy disk of the DOS file to UNIX.
; get rid of them by pressing [F5]
(global-set-key [f5]      'cut-ctrlM) ; cut all ^M.
(defun cut-ctrlM ()
"Cut all visible ^M."
(interactive)
(beginning-of-buffer)
(while (search-forward "\r" nil t)
(replace-match "" nil t))
)

;; use ISPELL on PC (see http://cat.rpi.edu/~tibbetts/ispell_toc.html
;  fot the installation procedure)
; you don't need to copy or move any file after unzipping
; if you define ispell-command and ispell-look-command properly.
; M-\$ for ispell word under cursor,  M-x ispell-buffer for whole buffer
(cond ((file-exists-p "c:/ispell4/exe/ispell.exe")
"Check spelling of word at or before point" t)
"Complete word at or before point" t)
"Check spelling of every word in the region" t)
"Check spelling of every word in the buffer" t)
(setq ispell-command "c:/ispell4/exe/ispell.exe"
ispell-look-dictionary "c:/ispell4/ispell.words"
ispell-look-command "c:/ispell4/exe/look.exe"
ispell-command-options (list "-d" "c:/ispell4/ispell.dict"))))
;still necessary
(setenv "TEMP" "c:/windows/temp")
(setenv "TMP" "c:/windows/temp")
(setq text-mode-hook '(lambda ()
(local-set-key "\M-\t" 'ispell-complete-word)))
(setq tex-mode-hook '(lambda ()
(local-set-key "\M-\t" 'ispell-complete-word)))
(setq latex-mode-hook '(lambda ()
(local-set-key "\M-\t" 'ispell-complete-word)))
; enable tex parser, also very helpful
(setq ispell-enable-tex-parser t)

;; fontification font-lock.el much better than the default hilit19.el
;***************************** (for coloring)
;;automatic Font Lock mode in TeX mode
;;if Font Lock necessary for other than .tex files, uncomment following
(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)

;; stig-paren.el, a parentheses mathing much better than the default paren.el
;*************** (for better view of matched parentheses)
(cond (window-system
(require 'stig-paren)
;; XEmacs
(global-set-key [(control leftparen)] 'stig-paren-toggle-dingaling-mode)
(global-set-key [(control rightparen)] 'stig-paren-toggle-sexp-mode))
(t

;;settings for bib-cite.el
;**************************

;; load default lisp file (.el or .elc) for improved LaTeX mode
;; all settings are located in tex-site, hence
;**************************************************************

;;end of _emacs
```

# Other useful LATEX related links

This document was generated using the LaTeX2HTML translator Version 97.1 (release) (July 13th, 1997)

Copyright © 1993, 1994, 1995, 1996, 1997, Nikos Drakos, Computer Based Learning Unit, University of Leeds.

The command line arguments were:
latex2html -split 0 NTTeXing.tex.

The translation was initiated by Willem Minten on 6/29/1998

#### Footnotes

...PC
Note that this is cakeware. All credits go to Lars Schmidt-Thieme and the people who helped me.

...filename
Thanks Ross Darnell <darnell@usq.edu.au>

...files
Pre-compiled lisp files (with extension .elc) run always faster. By default emacs will load the most recent one of the two.

...is
Thanks Michael Uchanski <mikeu@vehicle.ME.Berkeley.EDU>

Willem Minten
6/29/1998